mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
improve test, modify exportInterface, use constants for ExportType keys
- add a test for 'generate' ; - the ExportType declare keys, and those keys are used in ExportManager; - the export interface does not require the "has form" function, and export form is taken into account
This commit is contained in:
@@ -50,6 +50,16 @@
|
||||
{{ form_row(form.children.export.children.pick_formatter.children.alias) }}
|
||||
</div>
|
||||
|
||||
{% if form.children.export.children.export.children|length > 0 %}
|
||||
<div>
|
||||
<h2>{{ 'Export'|trans }}</h2>
|
||||
{{ form_widget(form.children.export.children.export) }}
|
||||
</div>
|
||||
{% else %}
|
||||
{# render the children, to mark the widget as 'rendered' #}
|
||||
{{ form_widget(form.children.export.children.export) }}
|
||||
{% endif %}
|
||||
|
||||
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' } } ) }}</p>
|
||||
{{ form_end(form) }}
|
||||
|
||||
|
Reference in New Issue
Block a user