Learning/.checkout/templates/kanban/column.html.twig

20 lines
837 B
Twig
Raw Permalink Normal View History

2023-05-05 18:53:21 +00:00
<div class='column' id='{{ column.getId}}' {{ stimulus_controller('column') }}>
<div class="column-title-bar">
<h2>{{ column.title }}</h2>
{% if column.getId != -2 %}
<button class="add-card-button fa-solid fa-plus fa-xl" {{ stimulus_action('column', 'create_card') }}></button>
{%endif %}
</div>
{% if column.getId != -2 %}
<div class="add-card-textarea-wrapper">
<textarea class="add-card-textarea" {{ stimulus_target('column', 'value') }}></textarea>
</div>
{%endif %}
<div class="card-list-wrapper">
<ul class='card-list' {{ stimulus_target('column', 'output') }}>
{% for card in column.getCards %}
{{ include('kanban/card.html.twig') }}
{% endfor %}
</ul>
</div>
</div>