{# templates/plot.html #}
{% extends 'base.html' %}
{% block h1 %}あらすじの選択{% endblock %}
{% block content %}

    <p>以下のあらすじ案から1つを選択してください。</p>
    <form method="post" action="{{ url_for('select_plot') }}">
        {% for plot in plots %}
            <div class="form-check">
                <input class="form-check-input" type="radio" name="plot" id="plot{{ loop.index0 }}" value="{{ loop.index0 }}" required>
                <label class="form-check-label" for="plot{{ loop.index0 }}">
                    {{ plot.plot }}
                </label>
            </div>
        {% endfor %}
        <button type="submit" class="btn btn-primary">次へ</button>
    </form>
{% endblock %}