Skip to content
Permalink
Browse files

Update devlist.html

  • Loading branch information...
directman66 committed Sep 6, 2018
1 parent 475b05b commit c19e29cfb9bf0c478442f14b826b554ba1f9e7c8
Showing with 16 additions and 3 deletions.
  1. +16 −3 templates/magichome/devlist.html
@@ -42,8 +42,21 @@
<td><a href="?view_mode=turnon&id=[#ID#]&tab=info" class="btn btn-default" title="Включить"><i class="glyphicon glyphicon-ok"></i></a>
<a href="?view_mode=turnoff&id=[#ID#]&tab=info" class="btn btn-default" title="Выключить"><i class="glyphicon glyphicon-remove"></i></a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="?view_mode=changerandom&id=[#ID#]&tab=info" class="btn btn-default" title="Сменить цвет на произвольный"><i class="glyphicon glyphicon-asterisk"></i></a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;


<script src='<#ROOTHTML#>js/spectrum/spectrum.min.js'></script>
<link rel='stylesheet' href='<#ROOTHTML#>js/spectrum/spectrum.min.css' />
<input type="text" value="[#VALUE#]" name="[#PARAM_NAME#]_value" class="form-control" id="[#PARAM_NAME#]_value">
<script type="text/javascript">
$("#[#PARAM_NAME#]_value").spectrum({
preferredFormat: "hex",
showInput: true,
chooseText: "OK",
cancelText: "<#LANG_CANCEL#>"
});
</script>

&nbsp;&nbsp;&nbsp;&nbsp;
<a href="?view_mode=changeсolorred&id=[#ID#]&tab=info" class="btn btn-danger" color="red" title="Сменить цвет на красный"><i class="glyphicon glyphicon-asterisk"></i></a>
<a href="?view_mode=changeсolorgreen&id=[#ID#]&tab=info" class="btn btn-success" title="Сменить цвет на зеленый"><i class="glyphicon glyphicon-asterisk"></i></a>
<a href="?view_mode=changeсolorblue&id=[#ID#]&tab=info" class="btn btn-primary" title="Сменить цвет на синий"><i class="glyphicon glyphicon-asterisk"></i></a>
@@ -55,7 +68,7 @@


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="?view_mode=edit_magichome_devices&id=[#ID#]" class="btn btn-default" title="<#LANG_EDIT#>"><i class="glyphicon glyphicon-pencil"></i></a>

<a href="?view_mode=delete_devices&id=[#ID#]" onClick="return confirm('Are you sure? Please confirm.')" class="btn btn-default" title="<#LANG_DELETE#>"><i class="glyphicon glyphicon-trash"></i></a>
</td>
</tr>

0 comments on commit c19e29c

Please sign in to comment.
You can’t perform that action at this time.