{% extends "bee_django_crm/base.html" %}
{% load static %}
{% block content %}
    {% include 'bee_django_crm/logo.html' %}
    {% include 'bee_django_crm/nav.html' %}
    <h4>问题详情</h4>
    <a href="{% url 'bee_django_crm:application_question_update' question.id %}">修改</a>
    <table class="table">
        <tr>
            <td>问题</td>
            <td>{{ question.name }}</td>
        </tr>
        <tr>
            <td>类型</td>
            <td>{{ question.get_type_name }}</td>
        </tr>
        {% if not  question.input_type == 1 %}
            <tr>

                <td>已有选项</td>
                <td>
                    {% for option in question.applicationoption_set.all %}
                        <div>{{ option.order_by }}-{{ option.name }}</div>
                    {% endfor %}
                    <div><a href="{% url 'bee_django_crm:application_option_add' question.id %}">添加新选项</a></div>
                </td>
            </tr>
        {% endif %}


    </table>

{% endblock %}


{% block scripts %}
    <script>
        $(document).ready(function () {

        });
    </script>
{% endblock %}