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 | 46 |
1 files changed, 32 insertions, 14 deletions
diff --git a/ishtar_common/templates/ishtar/import_step_by_step.html b/ishtar_common/templates/ishtar/import_step_by_step.html index 2d80f2386..44c5389d3 100644 --- a/ishtar_common/templates/ishtar/import_step_by_step.html +++ b/ishtar_common/templates/ishtar/import_step_by_step.html @@ -3,21 +3,39 @@ {% block content %} -{% comment %} -<nav aria-label="Page navigation example"> - <ul class="pagination justify-content-center"> - <li class="page-item disabled"> - <a class="page-link" href="#" tabindex="-1">Previous</a> - </li> - <li class="page-item"><a class="page-link" href="#">1</a></li> - <li class="page-item"><a class="page-link" href="#">2</a></li> - <li class="page-item"><a class="page-link" href="#">3</a></li> - <li class="page-item"> - <a class="page-link" href="#">Next</a> - </li> - </ul> +<nav class="row"> + <ul class="pagination col-md-6 justify-content-center"> + {% for label, page_number, enabled, imported 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 %}"> + {{label}} + </a> + </li> + {% endfor %} + </ul> + <div class="col-md-6 justify-content-center"> + <form action="." method="post" name='step-by-step-page'> + {% csrf_token %} + <div class="input-group"> + <div class="input-group-prepend"> + <span class="input-group-text">{% trans "Line" %}</span> + </div> + <input type="number" class="form-control small-input" + name="line-to-go" + required="required"/> + <div class="input-group-append"> + <button type="submit" name="valid" + value="change-page" class="btn btn-secondary"> + {% trans "Go" %} + </button> + </div> + </div> + </form> + </div> </nav> -{% endcomment %} <h2>{% trans "Import step by step" %} – {{import.name}} – {% trans "line " %} {{line_number_displayed}}</h2> |