{% extends 'core_main_app/_render/admin/theme/tools/box.html' %} {% load staticfiles %} {% block box_title %} Log Files{% endblock %} {% block box_body %} {% if data.number_log_files > 0 %}
{% csrf_token %} {{ data.log_file_formset.management_form }} {{ data.formset.non_form_errors.as_ul }} {% for form in data.formset.forms %} {% if forloop.first %} {% for field in form.visible_fields %} {% if field.label|capfirst == "Application" %} {% elif field.label|capfirst == "Timestamp" %} {% elif field.label|capfirst == "Error message" %} {% elif field.label|capfirst == "Delete" %} {% endif %} {% endfor %} {% endif %} {% for field in form.visible_fields %} {% endfor %} {% endfor %}
{{ field.label|capfirst }}{{ field.label|capfirst }}{{ field.label|capfirst }}{{ field.label|capfirst }}
{# Include the hidden fields in the form #} {% if forloop.first %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {% endif %} {{ field.errors.as_ul }} {% if field.label|capfirst == "Timestamp" %} {{ field }} {{ field.value|date:"D j M Y, H:i:s" }} {% elif field.label|capfirst == "Delete" %} {{ field }} {% else %} {{ field }} {{ field.value }} {% endif %}


{{ data.log_file_details_formset.management_form }} {% endif %} {% endblock %}