timing.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {% extends "../../theme.html" %}
  2. {% block content %}
  3. {%include 'menu.html'%}
  4. <div class="pannel">
  5. <div class="ul5">
  6. {% for v in data['list'] %}
  7. <dl>
  8. <dt>{{v['zdates']}}
  9. <div class="right r-btns">
  10. {% if v['status'] != 1 and v['status'] != 2 %}
  11. <a href="javascript:;" onclick="Farm.Delete(this, '{{v['id']}}', '/device/update_set_timing?id={{v['id']}}')" class="link primary">删除命令</a>
  12. {% elif v['status'] == 2 %}
  13. <a href="javascript:;" class="link error">执行失败</a>
  14. {% elif v['status'] == 1 %}
  15. <a href="javascript:;" class="link success">执行成功</a>
  16. {% end %}
  17. </div>
  18. </dt>
  19. <dt>{{v['oper']}}</dt>
  20. {% for dv in v['device'] %}
  21. <dd>{{dv['name']}}</dd>
  22. {% end %}
  23. </dl>
  24. {% end %}
  25. </div>
  26. </div>
  27. {%set url = data['url']['timing'] %}
  28. {%include '../../inc/page.html'%}
  29. {% end %}
  30. {% block script %}
  31. <script type="text/javascript" src="{{static_url('pc/lib/laydate/laydate.js')}}"></script>
  32. <script>
  33. function load() {
  34. dateTheme = '#247ed0'
  35. laydate.render({
  36. elem: '#update_date'
  37. ,theme: dateTheme
  38. ,min: 0
  39. ,type: 'datetime'
  40. });
  41. }
  42. </script>
  43. {% end %}