Skip to content

Commit

Permalink
fix form - new view (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Goyet authored and lenybernard committed Jul 13, 2016
1 parent 3306142 commit 4bd5cf2
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Resources/views/new.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

{% trans_default_domain "victoire" %}
{% set widgetId = widget.id|default('null') %}
{% block body %}
{% block form %}

{% block form_static %}
<div id="picker-{{ form.mode.vars.data }}" class="vic-tab-pane vic-active">
{{ form_start(form, {'attr' : {'id' : 'victoire_widget_form' }}) }}
<div class="row">
<div class="col-md-4">
<div class="vic-row">
<div class="vic-col-md-4">
{{ form_row(form.title) }}
<div class="row">
<div class="col-md-6">
<div class="vic-row">
<div class="vic-col-md-6">
{{ form_row(form.submitLabel) }}
</div>
<div class="col-md-6">
<div class="vic-col-md-6">
{{ form_row(form.submitIcon) }}
</div>
</div>
Expand Down Expand Up @@ -58,10 +59,11 @@
</div>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock form %}


</div>
{% endblock form_static %}

{% block body %}
{{ parent() }}
<script type="text/javascript">
$vic(document).on('victoire_widget_form_create_presubmit victoire_widget_form_update_presubmit', function(event) {
for ( instance in CKEDITOR.instances ) {
Expand Down

0 comments on commit 4bd5cf2

Please sign in to comment.