{% extends 'checkIn/layout.html' %}
{% load staticfiles %}
{% block script %}
<script src="{% static '/JS/checkDetail.js' %}"></script>
{% endblock %}

{% block body %}
<div class="container">
    <div class="row">
        <div style="text-align:center" class="panel panel-default">
            <div id="list" class="panel panel-default" style="text-align:center; background-color:lightgoldenrodyellow; border-style:solid">
                <div class="panel-heading"><h3>你目前管理<u>{{checkIn.description}}</u></h3></div>
                <div class="panel-body">
                    <ul class="list-group">
                        <li class="list-group-item"><a href="/checkIn/checkInStatus/?ID={{checkIn.ID}}">查看参与者信息</a></li>
                        <li class="list-group-item"><a href="/checkIn/public/?ID={{checkIn.ID}}">开启活动并发布活动二维码</a></li>
                        <li class="list-group-item"><a href="/checkIn/newCheckIn/?ID={{checkIn.ID}}">修改活动设置</a></li>
                        {% if checkIn.status == 'draft'%}
                        <li class="list-group-item"><a href="/checkIn/newItems/?ID={{checkIn.ID}}">修改活动收集内容</a> &nbsp;&nbsp; 发布后的活动无法修改收集的内容</li>
                        {% endif %}
                        <li class="list-group-item"><a href="#" onclick="delCheckIn('{{checkIn.description}}',{{checkIn.ID}})">删除这个活动</a></li>
                        <li class="list-group-item"><a href="#" onclick="delContent('{{checkIn.description}}',{{checkIn.ID}})">重置这个活动（用户输入的信息将被清空，活动回到准备状态）</a></li>
                        <li class="list-group-item"><a href="/checkIn/main">返回</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}