summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/base.html
diff options
context:
space:
mode:
authorDaniel GarcĂ­a Moreno <danigm@soleta.eu>2021-06-30 12:40:22 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-06-30 17:19:55 +0200
commit42dc44323e4cf0eaf0b563ba02f368942cf86e3d (patch)
tree807a055b475f7358317239017b38872294a39491 /ogcp/templates/base.html
parent288654722d061591ac834ecf9fb2310280473323 (diff)
Add new partition button in setup action
This patch adds a way to add a new partition to the setup.html template. This button opens a modal dialog with a new form and calls a new endpoint to create the new partition (this endpoint does nothing, it's needed to be implemented in the future). I've followed the initial design for this template, with one form per each partition, so every button will call a function and reload the page. It's possible to do all actions at once, but that will require a rework of this, to do that we can just define an unique form in the whole html, remove all the "Modify" buttons and add just one "Apply" button at the end. But maybe that option is a lot complex in the backend because will require to validate all the changes at once. This patch also improves the setup.html form without using flask-bootstrap and rendering the form in the template directly with the bootstrap4 classes.
Diffstat (limited to 'ogcp/templates/base.html')
-rw-r--r--ogcp/templates/base.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html
index 022801f..68e2e64 100644
--- a/ogcp/templates/base.html
+++ b/ogcp/templates/base.html
@@ -56,6 +56,8 @@
<!-- ChartJS -->
<script src="{{ url_for('static', filename='AdminLTE/plugins/chart.js/Chart.min.js') }}"></script>
+ <script src="{{ url_for('static', filename='js/ogcp.js') }}"></script>
+
<script>
// error messages
{% for category, message in get_flashed_messages(with_categories=True) %}