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

{% block content %}
{%include 'inc/menu.html'%}
<div class="pannel">
    <div class="ul6 mt10">
    	{% for v in data['list'] %}
		<dl>
            <dt>
                <img src="{{v['pic']}}" width="100%">
            </dt>
            <dd class="tit">
                <b>{{v['name']}}</b>
                <p>
                    <a href="javascript:;" onclick="Farm.Page('修改产品', '/main/product_update?id={{v['id']}}')">修改</a>
                    {% if v['status'] == False %}
                    <a href="javascript:;" onclick="Farm.Cancel(this, '{{v['id']}}', '/main/product_update?id={{v['id']}}&state=1')">显示</a>
                    {% else %}
                    <a href="javascript:;" onclick="Farm.Cancel(this, '{{v['id']}}', '/main/product_update?id={{v['id']}}&state=2')">隐藏</a>
                    {% end %}
                </p>
            </dd>
            <dd><label>产品特点：</label>{{v['charact']}}</dd>          
            <dd><label>食用须知：</label>{{v['notice']}}</dd>          
            <dd><label>种植：</label>{{v['area']}}，产量：{{v['yields']}}</dd>          
        </dl>
        {% end %}
    </div>
</div>
{%set url = data['url']['product'] %}
{%include '../inc/page.html'%}
{% end %}

{% block script %}
<script type="text/javascript" src="{{static_url('pc/lib/layui/layui.js')}}"></script>
{% end %}