- {% with errors = get_flashed_messages(category_filter=["error"]) %}
- {% if errors %}
-
-
-
-
+
+
+{% endblock %}
+
+{% block head_styles %}
+
{% endblock %}
{% block extrascripts %}
-
+ // handle delete button
+ $(document.body).on("click", ".button_delete", function (e) {
+ var template = $(this).prop('id');
+ $.post($SCRIPT_ROOT + '/admin/template/' + template + '/delete', {
+ '_csrf_token': '{{ csrf_token() }}'
+ }, function () {
+ window.location.href = '{{ url_for('admin.templates') }}';
+ });
+ });
+
{% endblock %}
{% block modals %}
-
-
+
- {% endif %}
- {% endwith %}
- - Error! -
- +
+ {% with errors = get_flashed_messages(category_filter=["error"]) %}
+ {% if errors %}
+
+
+
+ {% endif %}
+ {% endwith %}
+
+
+
+
+
+
+ + Error! +
+ +
+
-
+
+
+
+
+
+
+
+ Templates
+
+
+
+
+
+
+
+
+
+
+
+ Name | +Description | +Total Records | +Actions | +
---|---|---|---|
+ + {{ template.name }} + + | +{{ template.description }} | +{{ template.records|count }} | +
+
+
+
+
+ |
+
-
-
-
-
-
-
-
- Templates
- - - -
-
-
-
-
- Name | -Description | -Number of Records | -Actions | -
---|---|---|---|
- - {{ template.name }} - - | -- {{ template.description }} - | -- {{ template.records|count }} - | -
-
-
-
-
- |
-