{% extends 'obj_form.html' %}
{% load i18n %}


{% block subtitle %}
<ol class="breadcrumb">
        <li>{% trans '活动报备' %}</li>
        <li>{% trans '活动申请详情' %}</li>
</ol>
{% endblock %}

{% block form_content %}
<script>

    $(document).ready(function () {

		
    })

</script>

<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">活动信息</h3>
    </div>
    <div class="panel-body">
        <p><b>活动分类：</b>{{ info.category_name }}</p>
        <p><b>活动主题：</b>{{ info.name }}</p> 
        <p><b>活动摘要：</b>{% if info.digest %}{{ info.digest }}{% endif %} </p>
        <p><b>活动地址：</b>{% if info.address %}{{ info.address }}{% endif %}</p> 
        <p><b>费用预算：</b>{% if info.budget %}{{ info.budget }}{% endif %}</p>
        <p><b>开始日期：</b>{% if info.tm_start %}{{ info.tm_start }}{% endif %}</p>
        <p><b>结束日期：</b>{% if info.tm_end %}{{ info.tm_end }}{% endif %}</p>

		<hr />

        <table class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
            <thead> 
                <th>产品名称</th> 
                <th>箱数</th> 
                <th>瓶数</th> 
            </thead>
            <tbody> 
                {% for p in products %}
                    <tr>
                        <td>{{p.name}}</td>
                        <td>
                            {% if p.qty_x %}
                                {{p.qty_x}}
                            {% endif %} 
                        </td>
                        <td>
                            {% if p.qty_p %}
                                {{p.qty_p}}
                            {% endif %}
                        </td>
                    </tr> 
                {% endfor %}  
            </tbody>
        </table>  
		
		<hr />
        <table class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
            <thead> 
                <th>图片</th> 
                <th>备注</th>  
            </thead>
            <tbody> 
                {% for p in photos %}
                    <tr>
                        <td>
                            <img src="{{p.url}}" style="width: 200px;" />
                        </td>
                        <td>
                            {% if p.remark %}
                                {{p.remark}}
                            {% endif %} 
                        </td> 
                    </tr> 
                {% endfor %}  
            </tbody>
        </table>  

    </div>
</div>


<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">审核信息</h3>
    </div>
    <div class="panel-body">
        <p><b>审核状态：</b>{{ info.status_name }}</p>
        <p><b>审核时间：</b>{{ info.permit_tm }}</p>
        <p><b>审核原因：</b>{{ info.reason }}</p>
        <p><b>审核批注：</b>{{ info.annotation }}</p> 

    </div>
</div>


{% endblock %}