cours-ending/src/CoursEndingBundle/Resources/views/Main/index.html.twig

31 lines
599 B
Twig
Raw Normal View History

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