diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/import_list.html')
-rw-r--r-- | ishtar_common/templates/ishtar/import_list.html | 47 |
1 files changed, 47 insertions, 0 deletions
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 %} + |