summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-09-04 11:09:44 +0200
committerRoberto Hueso Gómez <rhueso@soleta.eu>2020-09-04 11:09:44 +0200
commitd5eaf699a7dd5215403b626762b68cd09bc846b5 (patch)
tree53cd84e4cde844350a55278ade8b2daade44e40e /ogcp/templates/actions
parent73a6e07b83b76f9677494502bc6e32a7bf48cfd7 (diff)
Add WoL action
This action can be applied on one or multiple scopes. This implementation use Flask-WTF as a way to build and valdiate forms. As a side effect, this adds CSRF protection to all forms.
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r--ogcp/templates/actions/wol.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/ogcp/templates/actions/wol.html b/ogcp/templates/actions/wol.html
new file mode 100644
index 0000000..27bb3d3
--- /dev/null
+++ b/ogcp/templates/actions/wol.html
@@ -0,0 +1,11 @@
+{% extends 'base.html' %}
+{% import "bootstrap/wtf.html" as wtf %}
+
+{% block content %}
+
+{{ wtf.quick_form(form,
+ action=url_for('action_wol'),
+ method='post',
+ button_map={'submit': 'primary'}) }}
+
+{% endblock %}