Report Choice Form - Formatting

This commit is contained in:
Marc Ducobu 2014-11-11 15:19:17 +01:00
parent bdb3e9eabe
commit c120c32064
2 changed files with 10 additions and 7 deletions

View File

@ -38,7 +38,7 @@ class ReportType extends AbstractType
$builder $builder
->add('date', 'date', array('required' => false, 'widget' => 'single_text', 'format' => 'dd-MM-yyyy')) ->add('date', 'date', array('required' => false, 'widget' => 'single_text', 'format' => 'dd-MM-yyyy'))
->add('scope') ->add('scope')
->add('cFData', 'custom_field', array('group' => $options['cFGroup'])) ->add('cFData', 'custom_field', array('attr' => array('class' => 'only-label'), 'group' => $options['cFGroup']))
; ;
} }

View File

@ -22,11 +22,14 @@
{% block personcontent %} {% block personcontent %}
{{ form_start(form) }}
{{ form_row(form) }} {{ form_start(form) }}
<button type="submit"> {{ form_row(form.cFGroup) }}
Create a new report
</button> <button type="submit">
{{ form_end(form) }} Create a new report
</button>
{{ form_end(form) }}
{% endblock %} {% endblock %}