diff options
author | Javier Hernandez <jhernandez@soleta.eu> | 2024-01-10 11:23:36 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-01-10 11:31:08 +0100 |
commit | 695fcfe6255fd53b19b416e8375b48d2dc5595e4 (patch) | |
tree | 72927876587a1ca19b2e8cc6172346fa133ceb96 /ogcp/templates | |
parent | 58b5b2eca00acc14510dbf2c741f12d7e799a264 (diff) |
src: Add support for adding folders
Add support to create a folder able to contain multiple computers.
Add support for adding a folder able to contain rooms
Diffstat (limited to 'ogcp/templates')
-rw-r--r-- | ogcp/templates/actions/folder_add.html | 19 | ||||
-rw-r--r-- | ogcp/templates/scopes.html | 11 |
2 files changed, 30 insertions, 0 deletions
diff --git a/ogcp/templates/actions/folder_add.html b/ogcp/templates/actions/folder_add.html new file mode 100644 index 0000000..70f7e57 --- /dev/null +++ b/ogcp/templates/actions/folder_add.html @@ -0,0 +1,19 @@ +{% extends 'scopes.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% set sidebar_state = 'disabled' %} +{% set btn_back = true %} + +{% block nav_folder %} active{% endblock %} +{% block nav_folder_add %} active{% endblock %} +{% block content %} + +<h1 class="m-5">{{_('Add folder')}}</h1> + +{{ wtf.quick_form(form, + method='post', + button_map={'submit': 'primary'}, + extra_classes="mx-5") }} + +{% endblock %} + diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html index 8a0701f..ecc8433 100644 --- a/ogcp/templates/scopes.html +++ b/ogcp/templates/scopes.html @@ -56,6 +56,17 @@ form="scopesForm" formaction="{{ url_for('action_center_delete') }}" formmethod="get"> </div> </div> + + <div class="dropdown btn"> + <button class="btn btn-secondary btn-light dropdown-toggle {% block nav_folder %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false"> + {{ _('Folder') }} + </button> + <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> + <input class="btn btn-light dropdown-item {% block nav_folder_add %}{% endblock %}" type="submit" value="{{ _('Add folder') }}" + form="scopesForm" formaction="{{ url_for('action_folder_add') }}" formmethod="get"> + </div> + </div> + {% endif %} {% if btn_back %} <button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()"> |