Release 2.18 (#4878)
This commit is contained in:
@@ -6,15 +6,21 @@
|
||||
{% embed '@theme/embeds/card.html.twig' %}
|
||||
{% import "macros/widgets.html.twig" as widgets %}
|
||||
{% block box_attributes %}id="quick_entry_box"{% endblock %}
|
||||
{% block box_class %}mt-2{% endblock %}
|
||||
{% block box_before %}
|
||||
{{ form_start(form, {attr: {id: 'quick-entries-form', class: 'form-dataTable quick-entries'}}) }}
|
||||
{{ form_widget(form._token) }}
|
||||
{% endblock %}
|
||||
{% block box_after %}{{ form_end(form) }}{% endblock %}
|
||||
{% block box_title %}
|
||||
{{ form_widget(form.date) }}
|
||||
{{ form_errors(form) }}
|
||||
{% endblock %}
|
||||
{% block box_after %}
|
||||
<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>
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
{# "table-responsive" does not work, because that would render dropdowns at the bottom behind the container #}
|
||||
{% block box_body_class %}p-0 maybe-table-responsive{% endblock %}
|
||||
{% block box_body %}
|
||||
@@ -46,13 +52,6 @@
|
||||
</tfoot>
|
||||
</table>
|
||||
{% endblock %}
|
||||
{% block box_footer %}
|
||||
<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>
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user