From 573b3a8743253036eecbeb9c183a201e81ed85c7 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 26 Oct 2016 19:31:54 +0800 Subject: [PATCH] Update log_command modal --- .../audits/_proxy_log_command_modal.html | 27 ++++++++ .../templates/audits/proxy_log_list.html | 68 ++++++++++--------- 2 files changed, 63 insertions(+), 32 deletions(-) create mode 100644 apps/audits/templates/audits/_proxy_log_command_modal.html diff --git a/apps/audits/templates/audits/_proxy_log_command_modal.html b/apps/audits/templates/audits/_proxy_log_command_modal.html new file mode 100644 index 000000000..a0e4290ea --- /dev/null +++ b/apps/audits/templates/audits/_proxy_log_command_modal.html @@ -0,0 +1,27 @@ +{% extends '_modal.html' %} +{% load i18n %} +{% block modal_id %}Proxy command list{% endblock %} +{% block modal_title%}{% trans "Proxy command list" %}{% endblock %} +{% block modal_body %} +
+ + + + + + + + + + + {% for command in object_list %} + + + + + + + {% endfor %} + +
IDCommandOutputDatetime
{{ command.command_no }}{{ command.command }}{{ command.output_decode |safe }}{{ command.datetime }}
+{% endblock %} diff --git a/apps/audits/templates/audits/proxy_log_list.html b/apps/audits/templates/audits/proxy_log_list.html index 237fe1efb..3865660fa 100644 --- a/apps/audits/templates/audits/proxy_log_list.html +++ b/apps/audits/templates/audits/proxy_log_list.html @@ -1,49 +1,53 @@ {% extends '_base_list.html' %} {% load i18n static %} {% block custom_head_css_js %} -{{ block.super }} - {% endblock %} {% block table_search %}{% endblock %} {% block table_container %} {##} - - - - - - - -{# #} - - - - - - - - - - -
-
- -
-
{% trans 'Username' %}{% trans 'IP' %}{% trans 'System user' %}{% trans 'Login type' %}{% trans 'Command' %}{% trans 'Success' %}{% trans 'Finished' %}{% trans 'Date start' %}{% trans 'Time' %}{% trans 'Action' %}
+ + + + + + + + {# #} + + + + + + + + + + +
+
+ +
+
{% trans 'Username' %}{% trans 'IP' %}{% trans 'System user' %}{% trans 'Login type' %}{% trans 'Command' %}{% trans 'Success' %}{% trans 'Finished' %}{% trans 'Date start' %}{% trans 'Time' %}{% trans 'Action' %}
+ {% include 'audits/_proxy_log_command_modal.html' %} {% endblock %} {% block custom_foot_js %} +