Improve weekly hours form (#5528)

This commit is contained in:
Kevin Papst
2025-06-06 15:20:00 +02:00
committed by GitHub
parent 2f2ebd6293
commit c8b4e4eabb
7 changed files with 119 additions and 82 deletions

View File

@@ -13,11 +13,15 @@
{{ form_errors(form) }}
{% endblock %}
{% block box_after %}
{% if locked %}
{{ widgets.alert('warning', 'The chosen date is already locked.'|trans({}, 'validators')) }}
{% else %}
<input type="submit" value="{{ 'action.save'|trans }}" class="btn btn-primary" />
<button type="button" class="btn btn-success add-item-link" data-collection-prototype="{{ form.rows.vars.id }}" data-collection-holder="ts-collection">
{{ icon('create', true) }}
{{ 'action.add'|trans }}
</button>
{% endif %}
{{ form_end(form) }}
{% endblock %}
{# "table-responsive" does not work, because that would render dropdowns at the bottom behind the container #}