{% extends "exodus-template.html" %}

{% block content %}

<h1>{{ title }} - {{ mode }}</h1>
{% ifnotequal mode "delete" %}
<h2><em> {{ message }} </em></h2>
{% endifnotequal %}

<form method="post" action=".">
{# On delete, make sure not to enable editing, and view detail instead #}
{% ifequal mode "delete" %}
<table>
{% for key, value in object.as_list %}
<tr><th>{{ key }}</th><td>:</td><td>{{ value }}</td><tr>
{% endfor %}
</table>
{% include delInclude %}
<h3>Are you sure you want to <b>DELETE</b> this data <b>PERMANENTLY</b>?</h3>
{% else %}
	{# Include custom code, like the javascript code #}
	{% ifequal mode "add" %}
		{% include addInclude %}
	{% else %}
		{% include editInclude %}
	{% endifequal %}
	<table>{{ form.as_table }}</table>
{% endifequal %}
<input type="submit" name="cancel" value="NO, cancel">
<input type="submit" name="proceed" value="OK, proceed">
</form>

{% endblock %}
