diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index d618f24..e8b607f 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -110,6 +110,11 @@ class BootModeForm(FlaskForm): boot = SelectField(label=_('Boot mode')) ok = SubmitField(label=_('Ok')) +class OgliveForm(FlaskForm): + ips = HiddenField() + oglive = SelectField(label=_('ogLive')) + ok = SubmitField(label=_('Ok')) + class ImageCreateForm(FlaskForm): ip = HiddenField() os = SelectField(label=_('OS'), choices=[]) diff --git a/ogcp/templates/actions/oglive.html b/ogcp/templates/actions/oglive.html new file mode 100644 index 0000000..f35b371 --- /dev/null +++ b/ogcp/templates/actions/oglive.html @@ -0,0 +1,22 @@ +{% extends 'commands.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + +{% set ip_list = form.ips.data.split(' ') %} +{% set ip_count = ip_list | length %} +