Permalink
Browse files

Update edit_device.html

  • Loading branch information...
directman66 committed Feb 6, 2019
1 parent 431b5ac commit c9b262d8f063873bd76447bd497625cdb2168362
Showing with 46 additions and 4 deletions.
  1. +46 −4 templates/zigbee2mqtt/edit_device.html
@@ -42,8 +42,46 @@
<div class="input-group-btn">
</div> </div> </div>





<!----------------------------------------->
<div class="form-group">
<label class="control-label"[#if ERR_LOCATION_ID#] style="color:red;font-weight:bold"[#endif#]>

<label class="control-label"[#if NEEDSAVEVENDOR="1"#] style="color:red;font-weight:bold"[#endif#]>
SELECTVENDOR:
</label>



<div class="col-md-6 input-group">



<select name="selectvendor" class="selectpicker show-tick form-control">
[#if SELECTVENDOR=""#]
<option ></option > [#else#]
<option data-content="<img src='../templates/zigbee2mqtt/img/[#SELECTVENDOR#].jpg' height='40'> [#SELECTVENDOR#]" value="[#SELECTVENDOR#]" ></option>

[#endif#]

[#begin SELECTVENDORARRAY#]

<!--<option data-content="<img src='../templates/zigbee2mqtt/img/[#model#].jpg' width='40' height='40'> [#vendor#]: [#model#]" value="[#model#]" [#if DEVICE_TYPE="<#SELECTTYPE#>"#] selected[#endif#]></option>-->
<option data-content="<img src='../templates/zigbee2mqtt/img/[#vendor#].jpg' height='40'> [#vendor#] " value="[#vendor#]" ></option>

[#end SELECTVENDORARRAY#]

</select>

</div>
</div>


<!----------------------------------------->
<div class="form-group">
<label class="control-label"[#if NEEDSAVETYPE="1"#] style="color:red;font-weight:bold"[#endif#]>
SELECTTYPE:
</label>

@@ -56,7 +94,7 @@
<select name="selecttype" class="selectpicker show-tick form-control">
[#if SELECTTYPE=""#]
<option ></option > [#else#]
<option data-content="<img src='../templates/zigbee2mqtt/img/[#SELECTTYPE#].jpg' width='40' height='40'> [#VENDOR#]: [#SELECTTYPE#]" value="[#SELECTTYPE#]" ></option>
<option data-content="<img src='../templates/zigbee2mqtt/img/[#SELECTTYPE#].jpg' width='40' height='40'> [#SELECTVENDOR#]: [#SELECTTYPE#]" value="[#SELECTTYPE#]" ></option>
<optgroup label="Zigbee">
[#endif#]

@@ -68,13 +106,17 @@
[#end SELECTTYPEARRAY#]
</optgroup>
</select>

</div>
</div>










<div class="form-group">
<label class="control-label">VENDOR:</label>
@@ -128,7 +170,7 @@


[#if MODELNAME#]
<img src="../templates/zigbee2mqtt/img/[#MODELNAME#].jpg" class="img-rounded" height="300" width="300">
<img src="../templates/zigbee2mqtt/img/[#SELECTTYPE#].jpg" class="img-rounded" height="300" width="300">
[#endif#]
<!--
[#if TITLE="bridge"#]

0 comments on commit c9b262d

Please sign in to comment.