Add templates for clients, hardware, restore, session and setup

These templates were not added in previous commits.
multi-ogserver
Roberto Hueso Gómez 2020-10-27 11:15:19 +01:00
parent 8fa8ca3f42
commit 282984d0ac
5 changed files with 73 additions and 0 deletions

View File

@ -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 %}

View File

@ -0,0 +1,28 @@
{% extends 'base.html' %}
{% import "bootstrap/wtf.html" as wtf %}
{% block content %}
<table class="table table-striped">
<thead class="thead-dark">
<tr>
<th scope="col">{{ _('Item') }}</th>
<th scope="col">{{ _('Type') }}</th>
</tr>
</thead>
<tbody>
{% for item in hardware %}
<tr>
<td>{{ item['description'] }}</td>
<td>{{ item['type'] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ wtf.quick_form(form,
action=url_for('action_hardware'),
method='post',
button_map={'refresh': 'primary'}) }}
{% endblock %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}