mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
[wip] layout of custom field edition
[ci skip]
This commit is contained in:
@@ -32,10 +32,19 @@
|
||||
|
||||
{% endblock cf_choices_list_widget %}
|
||||
|
||||
{# render the possibility to add different elements in a choice list #}
|
||||
{% block cf_choices_widget %}
|
||||
{# CFChoice : render the different elements in a choice list #}
|
||||
{% block cf_choices_row %}
|
||||
<h3>{{ 'Choices'|trans }}</h3>
|
||||
|
||||
{{ form(form) }}
|
||||
<table><tbody>
|
||||
{% for choice in form %}
|
||||
<tr><td>
|
||||
{{ form_row(choice.name) }}
|
||||
</td></tr>
|
||||
{% endfor %}
|
||||
</tbody></table>
|
||||
|
||||
|
||||
|
||||
{# we use javascrit to add an additional element. All functions are personnalized with the id ( = form.vars.id) #}
|
||||
<script type="text/javascript">
|
||||
@@ -67,7 +76,7 @@
|
||||
jQuery(document).ready(initializeCFChoiceOptionsChoices('{{ form.vars.id }}'));
|
||||
</script>
|
||||
|
||||
{% endblock cf_choices_widget %}
|
||||
{% endblock cf_choices_row %}
|
||||
|
||||
{% block choice_with_other_widget %}
|
||||
<div {{ block('widget_container_attributes') }}>
|
||||
|
Reference in New Issue
Block a user