summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/import_list.html
blob: 868ca9c9ef4c1636d2a9a6af5b421fa2023c55e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 %}