cours-ending/src/CoursEndingBundle/Resources/views/Main/index.html.twig
2016-03-21 09:32:19 +01:00

31 lines
599 B
Twig

{% extends '::base.html.twig' %}
{% block body %}
{{form_row(form.forms)}}
{{ form_rest(form) }}
<div id="foo"></div>
<div id="forms-render" class="collection">
<div class="collection-item" v-for="form in forms">
{% raw %}
<div class="collection-item-title">
<input type="text" v-model="form.label" />
{{ form.label }}
</div>
<hr />
<div class="collection-item-content">
{{ form.active ? 'ACTVITÉ' : 'NON ACTIVÉ' }}
</div>
{% endraw %}
</div>
<input v-on:click="save" type="button" value="Enregistrer" />
</div>
{% endblock %}