mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
add switches instead checkboxes
This commit is contained in:
parent
502ab1f86b
commit
bec4c8184d
12 changed files with 134 additions and 57 deletions
|
|
@ -103,8 +103,11 @@ print[[
|
|||
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-12">
|
||||
<label class="form-label">]] print(i18n("category_lists.enabled")) print[[ </label>
|
||||
<input name="list_enabled" type="checkbox" id="form-edit-enable" />
|
||||
<label class="form-label">]] print(i18n("category_lists.enabled")) print[[: </label>
|
||||
<div class="custom-control custom-switch d-inline">
|
||||
<input class="custom-control-input" name="list_enabled" type="checkbox" id="form-edit-enable" />
|
||||
<label class="custom-control-label" for="form-edit-enable"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -122,7 +122,10 @@ print[[
|
|||
<th width=22%>]] print(i18n("remote_assistance.enable_remote_assistance")) print [[</th>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<input id="toggle_remote_assistance" name="toggle_remote_assistance" type="checkbox" value="1" ]] print(assistace_checked) print [[/>
|
||||
<div class="custom-control custom-switch">
|
||||
<input class="custom-control-input" id="toggle_remote_assistance" name="toggle_remote_assistance" type="checkbox" value="1" ]] print(assistace_checked) print [[/>
|
||||
<label for="toggle_remote_assistance" class="custom-control-label"></label>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-left: 0.5em; display:inline">]] print(remote_assistance.statusLabel()) print[[</div>
|
||||
<br><small>]]
|
||||
|
|
@ -153,7 +156,12 @@ print[[
|
|||
|
||||
<tr>
|
||||
<th>]] print(i18n("remote_assistance.admin_access")) print[[</th>
|
||||
<td><input name="allow_admin_access" type="checkbox" value="1" ]] print(admin_checked) print [[/><br>
|
||||
<td>
|
||||
<div class="custom-control custom-switch">
|
||||
<input class="custom-control-input" id="check-allow_admin_access" name="allow_admin_access" type="checkbox" value="1" ]] print(admin_checked) print [[/>
|
||||
<label class="custom-control-label" for="check-allow_admin_access"></label>
|
||||
</div>
|
||||
<br>
|
||||
<small>]] print(i18n("remote_assistance.admin_access_descr", {product = info.product}))
|
||||
|
||||
if((admin_checked == "checked") and (remote_assistance.getStatus() == "active")) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue