12345678910111213141516171819202122232425262728293031323334353637 |
- <!DOCTYPE html>
- <html>
- <head>
- {%include '../../inc/header.html'%}
- </head>
- <body>
- {%set data['topName'] = data['info']['name'] %}
- {%set data['topUrl'] = '/device/data?type='+data['input']['type']+'&id='+data['input']['id'] %}
- {%include '../../inc/top.html'%}
- <section class="has-bbar">
- <h2 class="common-tit">{{data['type']['name']}}限值设置</h2>
- <form method="post" action="/device/update_device" target="f1">
- {% module xsrf_form_html() %}
- <input type="hidden" name="function" id="function" value="msg"/>
- <input type="hidden" name="url" id="url" value="/device/data?type={{data['input']['type']}}&id={{data['input']['id']}}"/>
- <iframe id="f1" name="f1" style="display:none;"></iframe>
- <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 %}" />
- <div class="form-group-head">单位:{{data['type']['unit']}}</div>
- <ul>
- <li class="form-input">
- <label>最大上限</label>
- <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="最大上限" />
- </li>
- <li class="form-input">
- <label>最小下限</label>
- <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="最小下限" />
- </li>
- </ul>
- <input type="submit" name="" class="button primary btn-mt" value="确认设置">
- </form>
- </section>
- {%include '../inc/menu.html'%}
- {%include '../../inc/script.html'%}
- </body>
- </html>
|