summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/templates/header.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/rebootcontrol/templates/header.html')
-rw-r--r--modules-available/rebootcontrol/templates/header.html49
1 files changed, 36 insertions, 13 deletions
diff --git a/modules-available/rebootcontrol/templates/header.html b/modules-available/rebootcontrol/templates/header.html
index 6d38b939..47d97714 100644
--- a/modules-available/rebootcontrol/templates/header.html
+++ b/modules-available/rebootcontrol/templates/header.html
@@ -27,29 +27,52 @@
<span class="glyphicon glyphicon-refresh"></span>
{{lang_genNew}}
</button>
- <div class="clearfix"></div>
+ <div class="clearfix slx-space"></div>
</div>
- <div class="modal-body">
- <label>{{lang_wolDiscoverHeading}}</label>
- <form method="post" action="?do=rebootcontrol">
- <input type="hidden" name="token" value="{{token}}">
- <input type="hidden" name="action" value="toggle-wol">
+ <form method="post" action="?do=rebootcontrol">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="toggle-wol">
+ <div class="modal-body">
+ <label for="port-input">{{lang_wol}}</label>
+ <div class="input-group">
+ <span class="input-group-addon">{{lang_wolDestPort}}</span>
+ <input {{perms.woldiscover.disabled}} type="number" min="1" max="65535"
+ class="form-control" name="port" value="{{port}}" id="port-input">
+ </div>
+ </div>
+ <div class="modal-body">
+ <label>{{lang_wolDiscoverHeading}}</label>
<div class="checkbox">
- <input {{perms.woldiscover.disabled}} id="wol-auto-discover" type="checkbox" name="enabled" {{wol_auto_checked}}>
+ <input {{perms.woldiscover.disabled}} id="wol-auto-discover"
+ type="checkbox" name="enabled" {{wol_auto_checked}}>
<label for="wol-auto-discover">{{lang_wolAutoDiscoverCheck}}</label>
</div>
+ <div class="checkbox">
+ <input {{perms.woldiscover.disabled}} id="wol-c2c"
+ type="checkbox" name="enabled-c2c" {{wol_c2c_checked}}>
+ <label for="wol-c2c">{{lang_wolDiscoverClientToClient}}</label>
+ </div>
<div class="slx-space"></div>
<p>{{lang_wolDiscoverDescription}}</p>
+ </div>
+ <div class="modal-body">
+ <label for="bcast-input">{{lang_directedBroadcastOverrideHeading}}</label>
+ <div class="input-group">
+ <span class="input-group-addon">{{lang_directedBroadcastAddress}}</span>
+ <input {{perms.woldiscover.disabled}} type="text" pattern="[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+"
+ minlength="7" maxlength="15" class="form-control" name="dbcast" value="{{dbcast}}" id="bcast-input">
+ </div>
+ <p>{{lang_directedBroadcastDescription}}</p>
+ </div>
+ <div class="modal-body">
<button {{perms.woldiscover.disabled}} class="btn btn-primary pull-right"
onclick="generateNewKeypair()" type="submit">
<span class="glyphicon glyphicon-floppy-disk"></span>
- {{lang_saveWolAutoDiscover}}
+ {{lang_save}}
</button>
<div class="clearfix"></div>
- </form>
- </div>
- <div class="modal-body">
- </div>
+ </div>
+ </form>
</div>
</div>
</div>
@@ -84,4 +107,4 @@ document.addEventListener('DOMContentLoaded', function() {
});
-</script> \ No newline at end of file
+</script>