Skip to content

Commit

Permalink
rename / group
Browse files Browse the repository at this point in the history
Fix rename / group assignment
  • Loading branch information
asgothian committed Jun 7, 2024
1 parent 7b279c9 commit f379a0d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
3 changes: 3 additions & 0 deletions admin/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ function editName(id, name) {
$('#modaledit').find('.row.epid1').addClass('hide');
$('#modaledit').find('.row.epid2').addClass('hide');
$('#modaledit').find('.row.epid3').addClass('hide');
$('#modaledit').find('.row.epid4').addClass('hide');
$('#modaledit').find('.row.epid5').addClass('hide');
$('#modaledit').find('.row.epid6').addClass('hide');
if (numEP > 0) {
// go through all the groups. Find the ones to list for each groupable
if (numEP == 1) {
Expand Down
19 changes: 17 additions & 2 deletions admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ <h5 id="devActResult" class="card-title"></h5>
<div class="materialize-dialogs m">
<div id="modaledit" class="modal">
<div class="modal-content">
<h3 class="translate">Config device</h3>
<h3 class="translate">Rename / Group device</h3>
<div class="row">
<div class="col1">
<div class="input-field">
Expand Down Expand Up @@ -1072,7 +1072,22 @@ <h3 class="translate">Config device</h3>
</div>
</div>
</div>
</div>
<div class="row epid6">
<div class="col epid">
<div class=endpointid>
<p class="translate device_with_endpoint">Sub Endpoint 6</p>
</div>
</div>
<div class="col">
<div class="input-field groups">
<select id="d_groups_ep6" class="materialSelect" multiple>
<option value="1">select</option>
</select>
<label for="d_groups_ep6" class="translate">Groups</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a name="save" href="#!"
class="modal-action modal-close waves-effect waves-green btn green translate">Save</a>
Expand Down
20 changes: 18 additions & 2 deletions admin/tab_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ <h6>Others</h6>
<div class="materialize-dialogs m">
<div id="modaledit" class="modal">
<div class="modal-content">
<h3 class="translate">Config device</h3>
<h3 class="translate">Rename / Group device</h3>
<div class="row">
<div class="col1">
<div class="input-field">
Expand Down Expand Up @@ -772,7 +772,23 @@ <h3 class="translate">Config device</h3>
</div>
</div>
</div>
<div class="modal-footer">
<div class="row epid6">
<div class="col epid">
<div class=endpointid>
<p class="translate device_with_endpoint">Sub Endpoint 6</p>
</div>
</div>
<div class="col">
<div class="input-field groups">
<select id="d_groups_ep6" class="materialSelect" multiple>
<option value="1">select</option>
</select>
<label for="d_groups_ep6" class="translate">Groups</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a name="save" href="#!" class="modal-action modal-close waves-effect waves-green btn green translate">Save</a>
<a href="#!" class="modal-action modal-close waves-effect waves-red btn-flat translate">Cancel</a>
</div>
Expand Down

0 comments on commit f379a0d

Please sign in to comment.