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

{% block content %}
<link href="{{static_url('pc/css/sy_cplb.css')}}" rel="stylesheet">
<div class="crumbs">
    <h2><i class="icons ico-dt"></i>食品溯源 <a style="margin-left:10px;" href="/origin/update" class="btn">添加</a></h2>
</div>
<div class="pannel">
    <div class="ul7">
        <dl>
            <dt>添加日期</dt>
            <dt>批次名称</dt>
            <dt>产品名称</dt>
            <dt>批号</dt>
            <dt>开始种植</dt>
            <dt>采收时间</dt>
            <dt>采收产量</dt>
            <dt>溯源码</dt>
            <dt>管理</dt>
        </dl>
        {% for v in data['list'] %}
		<dl>
            <dd><p>{{v['cdates']}}</p></dd>
            <dd><p>{{v['name']}}</p></dd>          
            <dd><p>{{v['product']}}</p></dd>    
            <dd><p>{{v['number']}}</p></dd>                
            <dd><p>{{v['zzdates']}}</p></dd>          
            <dd><p>{{v['csdates']}}</p></dd>          
            <dd><p>{{v['amount']}}</p></dd>          
            <dd><p><a style="display:none;" href="javascript:;" onclick="Farm.Alert('<img src={{v['url']}}/>')">查看</a><a href="{{v['url']}}" target="_blank">查看</a></p></dd>          
            <dd><p><a href="/origin/update?id={{v['id']}}">修改</a><a style="display:none;" href="javascript:;" onclick="Farm.Page('打印溯源码', '/origin/printer?table_id={{v['id']}}')">打印溯源码</a><a href="/origin/update?copy_id={{v['id']}}">复制添加</a></p></dd>
        </dl>
        {% end %}
    </div>
</div>
{%set url = '/origin' %}
{%include '../inc/page.html'%}
{% end %}

{% block script %}
{% end %}