From 282984d0ac17236bee19375607fa9a413d0b4057 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Tue, 27 Oct 2020 11:15:19 +0100 Subject: Add templates for clients, hardware, restore, session and setup These templates were not added in previous commits. --- ogcp/templates/actions/client_details.html | 10 ++++++++++ ogcp/templates/actions/hardware.html | 28 ++++++++++++++++++++++++++++ ogcp/templates/actions/image_restore.html | 11 +++++++++++ ogcp/templates/actions/session.html | 11 +++++++++++ ogcp/templates/actions/setup.html | 13 +++++++++++++ 5 files changed, 73 insertions(+) create mode 100644 ogcp/templates/actions/client_details.html create mode 100644 ogcp/templates/actions/hardware.html create mode 100644 ogcp/templates/actions/image_restore.html create mode 100644 ogcp/templates/actions/session.html create mode 100644 ogcp/templates/actions/setup.html diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html new file mode 100644 index 0000000..3ef13a6 --- /dev/null +++ b/ogcp/templates/actions/client_details.html @@ -0,0 +1,10 @@ +{% extends 'base.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + +{{ wtf.quick_form(form, + method='post', + button_map={'create': 'primary'}) }} + +{% endblock %} diff --git a/ogcp/templates/actions/hardware.html b/ogcp/templates/actions/hardware.html new file mode 100644 index 0000000..31f4d81 --- /dev/null +++ b/ogcp/templates/actions/hardware.html @@ -0,0 +1,28 @@ +{% extends 'base.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + + + + + + + + + + {% for item in hardware %} + + + + + {% endfor %} + +
{{ _('Item') }}{{ _('Type') }}
{{ item['description'] }}{{ item['type'] }}
+ +{{ wtf.quick_form(form, + action=url_for('action_hardware'), + method='post', + button_map={'refresh': 'primary'}) }} + +{% endblock %} diff --git a/ogcp/templates/actions/image_restore.html b/ogcp/templates/actions/image_restore.html new file mode 100644 index 0000000..bbc760a --- /dev/null +++ b/ogcp/templates/actions/image_restore.html @@ -0,0 +1,11 @@ +{% extends 'base.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + +{{ wtf.quick_form(form, + action=url_for('action_image_restore'), + method='post', + button_map={'restore': 'primary'}) }} + +{% endblock %} diff --git a/ogcp/templates/actions/session.html b/ogcp/templates/actions/session.html new file mode 100644 index 0000000..3023a57 --- /dev/null +++ b/ogcp/templates/actions/session.html @@ -0,0 +1,11 @@ +{% extends 'base.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + +{{ wtf.quick_form(form, + action=url_for('action_session'), + method='post', + button_map={'run': 'primary'}) }} + +{% endblock %} diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html new file mode 100644 index 0000000..c7c4345 --- /dev/null +++ b/ogcp/templates/actions/setup.html @@ -0,0 +1,13 @@ +{% extends 'base.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + +{% for form in forms %} +{{ wtf.quick_form(form, + method='post', + button_map={'modify': 'primary', + 'delete': 'danger'}) }} +{% endfor %} + +{% endblock %} -- cgit v1.2.3-18-g5258