diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-05-03 23:21:46 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-05-03 23:21:46 +0200 |
| commit | 274b8d44ccf1f099f2e22b5a6a70f9743b746c1d (patch) | |
| tree | 9d23175660bb6b6d1adcbcec722bf4ea88f0b818 /ishtar_common/templates | |
| parent | 40ffb48d6075a14a9591d6a7c83f40ef5afe97e5 (diff) | |
| download | Ishtar-274b8d44ccf1f099f2e22b5a6a70f9743b746c1d.tar.bz2 Ishtar-274b8d44ccf1f099f2e22b5a6a70f9743b746c1d.zip | |
Interface: create new import, management interface
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/ishtar/form.html | 13 | ||||
| -rw-r--r-- | ishtar_common/templates/ishtar/import_list.html | 47 |
2 files changed, 60 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/form.html b/ishtar_common/templates/ishtar/form.html new file mode 100644 index 000000000..1e795c540 --- /dev/null +++ b/ishtar_common/templates/ishtar/form.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% load i18n inline_formset %} +{% block content %} +<h2>{{page_name}}</h2> +<div class='form'> +<form enctype="multipart/form-data" action="." method="post">{% csrf_token %} +<table> +{{form}} +</table> +<input type="submit" value="{% trans "Validate" %}"/> +</form> +</div> +{% endblock %} diff --git a/ishtar_common/templates/ishtar/import_list.html b/ishtar_common/templates/ishtar/import_list.html new file mode 100644 index 000000000..868ca9c9e --- /dev/null +++ b/ishtar_common/templates/ishtar/import_list.html @@ -0,0 +1,47 @@ +{% extends "base.html" %} +{% load i18n inline_formset %} +{% block content %} +<h2>{{page_name}}</h2> +<div class='form'> +{% if not object_list %} +<p>{% trans "No pending imports." %}</p> +{% else %} +<form action="." method="post">{% csrf_token %} +<table> +<tr> + <th>{% trans "Type" %}</th> + <th>{% trans "Filename" %}</th> + <th>{% trans "Creation" %}</th> + <th>{% trans "Status" %}</th> +</tr> +{% for import in object_list %} +<tr> + <td> + {{import.importer_type}} + </td> + <td> + {{import.imported_filename}} + </td> + <td> + {{import.creation_date}} + </td> + <td> + {{import.status}} + </td> + <td> + <select name='import-action-{{import.pk}}'> + <option value=''>--------</option> + {% for action, lbl in import.get_actions %} + <option value='{{action}}'>{{lbl}}</option> + {% endfor%} + </select> + </td> +</tr> +{% endfor %} +</table> + <input type="submit" value="{% trans "Validate" %}"/> +</form> +{% endif %} +</div> +{% endblock %} + |
