|
@@ -15,6 +15,8 @@
|
|
|
color: black;
|
|
|
}
|
|
|
</style>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<div class="container">
|
|
|
<h1 class="mainHeader">{{ title }}</h1>
|
|
@@ -26,42 +28,7 @@
|
|
|
</div>
|
|
|
|
|
|
|
|
|
- <!-- {% comment %} {% if table.page %}
|
|
|
- <nav aria-label="...">
|
|
|
- <ul class="pagination">
|
|
|
- {% if table.page.has_previous %}
|
|
|
- <li class="page-item">
|
|
|
- <a class="page-link" style="width: 10px; text-decoration: none;" href="?page={{ table.page.previous_page_number }}" tabindex="-1">{% trans 'Previous' %}</a>
|
|
|
- </li>
|
|
|
- {% else %}
|
|
|
- <li class="page-item disabled">
|
|
|
- <span class="page-link">{% trans 'Previous' %}</span>
|
|
|
- </li>
|
|
|
- {% endif %}
|
|
|
- {% for page in table.page_range %}
|
|
|
- {% if page == table.page.number %}
|
|
|
- <li class="page-item active">
|
|
|
- <span class="page-link" style="width: 30px;">{{ page }} <span class="sr-only">{% trans '(current)' %}</span></span>
|
|
|
- </li>
|
|
|
- {% else %}
|
|
|
- <li class="page-item">
|
|
|
- <a class="page-link" style="width: 30px;" href="?page={{page }}">{{ page }}</a>
|
|
|
-
|
|
|
- </li>
|
|
|
- {% endif %}
|
|
|
- {% endfor %}
|
|
|
- {% if table.page.has_next %}
|
|
|
- <li class="page-item">
|
|
|
- <a class="page-link" style="width: 30px; text-decoration: none;" href="?page={{ table.page.next_page_number }}">{% trans 'Next' %}</a>
|
|
|
- </li>
|
|
|
- {% else %}
|
|
|
- <li class="page-item disabled">
|
|
|
- <span class="page-link" style="width: 30px;">{% trans 'Next' %}</span>
|
|
|
- </li>
|
|
|
- {% endif %}
|
|
|
- </ul>
|
|
|
- </nav>
|
|
|
- {% endif %} {% endcomment %} -->
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
<div class="container text-end mt-2">
|
|
@@ -74,7 +41,23 @@
|
|
|
<div class="modal-content">
|
|
|
<span id="closeModalBtn" class="close">×</span>
|
|
|
<div class="fields">
|
|
|
-
|
|
|
+ <h1 class="mb-4">{{ title }}</h1>
|
|
|
+ <form method="post" style="overflow: auto">
|
|
|
+ {% csrf_token %}
|
|
|
+ <div class="container m-2">
|
|
|
+ {% for field in form %}
|
|
|
+ {{field.errors}}
|
|
|
+ <div class="row">
|
|
|
+ {{field.label_tag}}
|
|
|
+ {{field}}
|
|
|
+ <p class="fs-6 fst-italic">{{field.help_text|truncatewords:20}}</p>
|
|
|
+ </div>
|
|
|
+ {% endfor %}
|
|
|
+ </div>
|
|
|
+ <div class="text-center mt-2 mb-5">
|
|
|
+ <input class="btn btn-primary center" type="Submit" name="submit" value="{% trans 'Submit' %}"/>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|