printer.html 928 B

1234567891011121314
  1. <input type="hidden" name="id" id="id" value="{% if 'info' in data and data['info'] and 'id' in data['info'] and data['info']['id'] > 0 %}{{data['info']['id']}}{% end %}" />
  2. <input type="hidden" name="update_table_id" id="update_table_id" value="{{data['table_id']}}" />
  3. <div class="block">
  4. <label><span>打印机</span>
  5. <select name="update_printer_id" id="update_printer_id">
  6. {% for v in data['printer'] %}
  7. <option value="{{v['id']}}" {% if 'info' in data and data['info'] and 'printer_id' in data['info'] and data['info']['printer_id'] == v['id'] %}selected{% end %}>{{v['name']}}</option>
  8. {% end %}
  9. </select>
  10. </label>
  11. <label><span>打印张数</span><input type="text" name="update_num" id="update_num" value="{% if 'info' in data and data['info'] and 'num' in data['info'] and data['info']['num'] %}{{data['info']['num']}}{% end %}" placeholder="打印张数" /></label>
  12. </div>