Skip to content

Commit

Permalink
Fix constaints theme
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownSim committed Aug 25, 2023
1 parent 233a8c2 commit c7ad0b4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
26 changes: 26 additions & 0 deletions Resources/views/Form/content.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,19 @@
{% endif %}

{{ form_row(form.alt) }}
{% if form.mime_type is defined %}
{% import "@SherlockodeAdvancedContent/Common/Macros/collapse.html.twig" as macro %}

{% set content %}
{{ form_widget(form.mime_type) }}
{{ form_help(form.mime_type) }}
{{ form_errors(form.mime_type) }}
{% endset %}

{% set data = [{'title': form_label(form.mime_type), 'content': content }] %}

{{ macro.buildAccordion(data) }}
{% endif %}
{{ form_rest(form) }}
</div>
{% endblock %}
Expand Down Expand Up @@ -235,6 +248,19 @@
{% endif %}

{{ form_row(form.title) }}
{% if form.mime_type is defined %}
{% import "@SherlockodeAdvancedContent/Common/Macros/collapse.html.twig" as macro %}

{% set content %}
{{ form_widget(form.mime_type) }}
{{ form_help(form.mime_type) }}
{{ form_errors(form.mime_type) }}
{% endset %}

{% set data = [{'title': form_label(form.mime_type), 'content': content }] %}

{{ macro.buildAccordion(data) }}
{% endif %}
{{ form_rest(form) }}
</div>
{% endblock %}
Expand Down
14 changes: 0 additions & 14 deletions Resources/views/Form/theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,3 @@
{% endif %}
{{ parent() }}
{% endblock %}

{% block ___field_name___value_mime_type_row %}
{% import "@SherlockodeAdvancedContent/Common/Macros/collapse.html.twig" as macro %}

{% set content %}
{{ form_widget(form) }}
{{ form_help(form) }}
{{ form_errors(form) }}
{% endset %}

{% set data = [{'title': form_label(form), 'content': content }] %}

{{ macro.buildAccordion(data) }}
{% endblock %}

0 comments on commit c7ad0b4

Please sign in to comment.