device.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {%include '../../inc/header.html'%}
  5. </head>
  6. <body>
  7. {%set data['topName'] = data['info']['name'] %}
  8. {%set data['topUrl'] = '/device/data?type='+data['input']['type']+'&id='+data['input']['id'] %}
  9. {%include '../../inc/top.html'%}
  10. <section class="has-bbar">
  11. <h2 class="common-tit">{{data['type']['name']}}限值设置</h2>
  12. <form method="post" action="/device/update_device" target="f1">
  13. {% module xsrf_form_html() %}
  14. <input type="hidden" name="function" id="function" value="msg"/>
  15. <input type="hidden" name="url" id="url" value="/device/data?type={{data['input']['type']}}&id={{data['input']['id']}}"/>
  16. <iframe id="f1" name="f1" style="display:none;"></iframe>
  17. <input type="hidden" name="id" id="id" value="{% if 'set' in data and data['set'] and 'id' in data['set'] and data['set']['id'] %}{{data['set']['id']}}{% end %}" />
  18. <div class="form-group-head">单位:{{data['type']['unit']}}</div>
  19. <ul>
  20. <li class="form-input">
  21. <label>最大上限</label>
  22. <input type="text" name="update_max" id="update_max" value="{% if 'set' in data and data['set'] and 'max' in data['set'] and data['set']['max'] %}{{data['set']['max']}}{% end %}" placeholder="最大上限" />
  23. </li>
  24. <li class="form-input">
  25. <label>最小下限</label>
  26. <input type="text" name="update_min" id="update_min" value="{% if 'set' in data and data['set'] and 'min' in data['set'] and data['set']['min'] %}{{data['set']['min']}}{% end %}" placeholder="最小下限" />
  27. </li>
  28. </ul>
  29. <input type="submit" name="" class="button primary btn-mt" value="确认设置">
  30. </form>
  31. </section>
  32. {%include '../inc/menu.html'%}
  33. {%include '../../inc/script.html'%}
  34. </body>
  35. </html>