diff options
author | Simon Rettberg | 2018-06-12 17:15:44 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-06-12 17:15:44 +0200 |
commit | 2e78eec281815d6ba42ff2cf7c3a937abe6d83c5 (patch) | |
tree | d98495500354de9b735b31c64e02856eeb179098 /modules-available/serversetup-bwlp/templates/menu-edit.html | |
parent | [inc/Database] Method to return single-column queries as array (diff) | |
download | slx-admin-2e78eec281815d6ba42ff2cf7c3a937abe6d83c5.tar.gz slx-admin-2e78eec281815d6ba42ff2cf7c3a937abe6d83c5.tar.xz slx-admin-2e78eec281815d6ba42ff2cf7c3a937abe6d83c5.zip |
[serversetup-bwlp] Start rewrite as purely iPXE-based
Diffstat (limited to 'modules-available/serversetup-bwlp/templates/menu-edit.html')
-rw-r--r-- | modules-available/serversetup-bwlp/templates/menu-edit.html | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp/templates/menu-edit.html b/modules-available/serversetup-bwlp/templates/menu-edit.html new file mode 100644 index 00000000..cf10296e --- /dev/null +++ b/modules-available/serversetup-bwlp/templates/menu-edit.html @@ -0,0 +1,114 @@ +<h2>{{lang_editMenuHead}}</h2> + +<div class="panel panel-default"> + <div class="panel-heading"> + {{title}} + {{^title}} + {{lang_newMenu}} + {{/title}} + </div> + <div class="panel-body list-group"> + <form method="post" action="?do=serversetup"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="action" value="savemenu"> + <input type="hidden" name="menuid" value="{{menuid}}"> + <div class="row list-group-item"> + <div class="col-sm-3"> + <label for="panel-title">{{lang_menuTitle}}</label> + </div> + <div class="col-sm-9"> + <input class="form-control" name="title" id="panel-title" type="text" value="{{title}}" {{readonly}}> + </div> + </div> + <div class="row list-group-item"> + <div class="col-sm-3"> + <label for="panel-timeout">{{lang_menuTimeout}}</label> + </div> + <div class="col-sm-9"> + <div class="input-group"> + <input class="form-control" name="timeout" id="panel-timeout" type="number" min="0" max="9999" + value="{{timeout}}" {{readonly}}> + <span class="input-group-addon">{{lang_seconds}}</span> + </div> + </div> + </div> + <div class="row list-group-item"> + <div class="col-sm-3"> + </div> + <div class="col-sm-9"> + <div class="checkbox"> + <input name="defmenu" id="panel-defmenu" type="checkbox" {{#isdefault}}checked{{/isdefault}} {{disabled}}> + <label for="panel-defmenu">{{lang_defaultMenu}}</label> + </div> + </div> + </div> + <div> + <table class="table"> + <thead> + <tr> + <th></th> + <th>{{lang_entryId}}</th> + <th>{{lang_title}}</th> + <th>{{lang_hotkey}}</th> + <th>{{lang_sortOrder}}</th> + <th>{{lang_password}}</th> + </tr> + </thead> + <tbody> + {{#entries}} + <tr> + <td class="slx-smallcol"> + <div class="radio radio-inline"> + <input type="radio" name="defaultentry" value="{{menuentryid}}" + {{#isdefault}}checked{{/isdefault}} {{perms.ipxe.menu.edit.disabled}} {{disabled}}> + <label></label> + </div> + </td> + <td class="text-nowrap"> + {{#entryid}} + <select class="form-control" name="entry[{{menuentryid}}][entryid]" {{readonly}}> + <option value="">{{lang_spacer}}</option> + {{#entrylist}} + <option value="{{entryid}}" {{selected}}>{{title}}</option> + {{/entrylist}} + </select> + {{/entryid}} + {{^entryid}} + <i>{{lang_spacer}}</i> + {{/entryid}} + </td> + <td {{^entryid}}colspan="2"{{/entryid}}> + <input class="form-control" name="entry[{{menuentryid}}][title]" value="{{title}}" + maxlength="100" {{readonly}}> + </td> + {{#entryid}} + <td> + <select class="form-control" name="entry[{{menuentryid}}][hotkey]" {{readonly}}> + <option value="">{{lang_none}}</option> + {{#keys}} + <option {{selected}}>{{key}}</option> + {{/keys}} + </select> + </td> + {{/entryid}} + <td> + <input class="form-control" name="entry[{{menuentryid}}][sortval]" value="{{sortval}}" {{readonly}}> + </td> + <td> + <input class="form-control" name="entry[{{menuentryid}}][plainpass]" id="panel-passwd" type="{{password_type}}" + value="{{plainpass}}" {{readonly}}> + </td> + </tr> + {{/entries}} + </tbody> + </table> + </div> + <div class="text-right"> + <button type="submit" class="btn btn-primary" {{disabled}}> + <span class="glyphicon glyphicon-floppy-disk"></span> + {{lang_save}} + </button> + </div> + </form> + </div> +</div>
\ No newline at end of file |