{% extends "bee_django_mission/base.html" %}
{% load bee_django_mission_filter %}

{% block content %}
    {% include 'bee_django_mission/logo.html' %}
    {% include 'bee_django_mission/nav.html' %}
    <div class="btn-group" role="group" style="margin-top: 20px;">
        <a class="btn btn-success active">周任务</a>
        <a class="btn btn-default"
           href="{% url 'bee_django_mission:user_line_unlimited' user_id=user_stage.user_line.user.id %}">里程</a>
    </div>

    <div class="text-center"><h3>
        【{{ user_stage.user_line.user }}】{{ user_stage.get_name }}
    </h3>
    </div>
    <h3>
        {% if user_stage.stutas == 1 %}
            已于【{{ user_stage.finish_at }}】完成
        {% elif user_stage.stutas == 3 %}
            可完成，但还未完成
        {% elif user_stage.stutas == 2 %}
            未完成
        {% elif user_stage.stutas == 0 %}
            进行中
        {% endif %}</h3>

    {% for user_mission in user_mission_list %}
        <div>
            {{ user_mission.mission.mission_type.name }} -
            {{ user_mission.get_name }}-
            {% if user_mission.get_user_mission_progress == 1 %} 已完成
            {% else %}
                未完成
            {% endif %}
        </div>
    {% endfor %}

{% endblock %}
{% block scripts %}
    
{% endblock %}