diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/import_step_by_step.html')
-rw-r--r-- | ishtar_common/templates/ishtar/import_step_by_step.html | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/ishtar_common/templates/ishtar/import_step_by_step.html b/ishtar_common/templates/ishtar/import_step_by_step.html index 9aca80837..998bf99c6 100644 --- a/ishtar_common/templates/ishtar/import_step_by_step.html +++ b/ishtar_common/templates/ishtar/import_step_by_step.html @@ -2,15 +2,37 @@ {% load i18n inline_formset link_to_window %} {% block content %} +<p class="text-center"> + <a href="{% url 'current_imports' %}">{% trans "Back to import list" %}</a> +</p> + +<nav class="row"> + <ul class="col-md-12 justify-content-center nav nav-pills"> + <li class="nav-item"> + <a class="nav-link{% if not all %} active{% endif %}" + href="{% url 'import_step_by_step' import.pk line_number %}"> + {% trans "Add/modified" %} + </a> + </li> + <li class="nav-item"> + <a class="nav-link{% if all %} active{% endif %}" + href="{% url 'import_step_by_step_all' import.pk line_number %}"> + {% trans "All lines" %} + </a> + </li> + </ul> +</nav> + <nav class="row"> <ul class="pagination col-md-6 justify-content-center"> - {% for label, page_number, enabled, imported in page_numbers %} + {% for label, page_number, enabled, imported, changed in page_numbers %} <li class="page-item{% if not enabled %} disabled{% endif %}" {% if not enabled %} tabindex="-1"{% endif %}> - <a class="page-link{% if imported %} imported-page{% endif %}{% if page_number == line_number_displayed %} current-page{% endif %}" - {% if imported %}title="{% trans 'Already imported' %}"{% endif %} - href="{% url 'import_step_by_step' import.pk page_number %}"> + <a class="page-link{% if imported or not changed %} imported-page{% endif %}{% if page_number == line_number_displayed %} current-page{% endif %}" + {% if imported %}title="{% trans 'Already imported' %}"{% else %} + {% if not changed %}title="{% trans 'No changes' %}"{% endif %}{% endif %} + href="{% url import_url import.pk page_number %}"> {{label}} </a> </li> |