{% extends "../../theme.html" %}

{% block content %}
{%include 'menu.html'%}

<div class="pannel">
    <div class="ul5">
        {% for v in data['list'] %}
        <dl>
            <dt>{{v['zdates']}}
            <div class="right r-btns">
            {% if v['status'] != 1 and v['status'] != 2 %}
            <a href="javascript:;" onclick="Farm.Delete(this, '{{v['id']}}', '/device/update_set_timing?id={{v['id']}}')" class="link primary">删除命令</a>
            {% elif v['status'] == 2 %}
            <a href="javascript:;" class="link error">执行失败</a>
            {% elif v['status'] == 1 %}
            <a href="javascript:;" class="link success">执行成功</a>
            {% end %}
            </div>
            </dt>
            <dt>{{v['oper']}}</dt>
            {% for dv in v['device'] %}
            <dd>{{dv['name']}}</dd>
            {% end %}
        </dl>
        {% end %}
    </div>
</div>
{%set url = data['url']['timing'] %}
{%include '../../inc/page.html'%}

{% end %}

{% block script %}
<script type="text/javascript" src="{{static_url('pc/lib/laydate/laydate.js')}}"></script>
<script>
function load() {
	dateTheme = '#247ed0'
	laydate.render({
	  elem: '#update_date'
	  ,theme: dateTheme
	  ,min: 0
	  ,type: 'datetime'
	});
}
</script>
{% end %}