123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023 |
- <?php
-
- /* form_div_layout.html.twig */
- class __TwigTemplate_b5bcd626d1228e6630bbef6f88f4c952 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
-
- $this->parent = array();
- $this->blocks = array(
- 'form_widget' => array($this, 'block_form_widget'),
- 'collection_widget' => array($this, 'block_collection_widget'),
- 'textarea_widget' => array($this, 'block_textarea_widget'),
- 'widget_choice_options' => array($this, 'block_widget_choice_options'),
- 'choice_widget' => array($this, 'block_choice_widget'),
- 'checkbox_widget' => array($this, 'block_checkbox_widget'),
- 'radio_widget' => array($this, 'block_radio_widget'),
- 'datetime_widget' => array($this, 'block_datetime_widget'),
- 'date_widget' => array($this, 'block_date_widget'),
- 'time_widget' => array($this, 'block_time_widget'),
- 'number_widget' => array($this, 'block_number_widget'),
- 'integer_widget' => array($this, 'block_integer_widget'),
- 'money_widget' => array($this, 'block_money_widget'),
- 'url_widget' => array($this, 'block_url_widget'),
- 'search_widget' => array($this, 'block_search_widget'),
- 'percent_widget' => array($this, 'block_percent_widget'),
- 'field_widget' => array($this, 'block_field_widget'),
- 'password_widget' => array($this, 'block_password_widget'),
- 'hidden_widget' => array($this, 'block_hidden_widget'),
- 'email_widget' => array($this, 'block_email_widget'),
- 'generic_label' => array($this, 'block_generic_label'),
- 'field_label' => array($this, 'block_field_label'),
- 'form_label' => array($this, 'block_form_label'),
- 'repeated_row' => array($this, 'block_repeated_row'),
- 'field_row' => array($this, 'block_field_row'),
- 'hidden_row' => array($this, 'block_hidden_row'),
- 'field_enctype' => array($this, 'block_field_enctype'),
- 'field_errors' => array($this, 'block_field_errors'),
- 'field_rest' => array($this, 'block_field_rest'),
- 'field_rows' => array($this, 'block_field_rows'),
- 'widget_attributes' => array($this, 'block_widget_attributes'),
- 'widget_container_attributes' => array($this, 'block_widget_container_attributes'),
- );
- }
-
- protected function doDisplay(array $context, array $blocks = array())
- {
- $context = array_merge($this->env->getGlobals(), $context);
-
- // line 2
- echo "
- ";
- // line 3
- $this->displayBlock('form_widget', $context, $blocks);
- // line 11
- echo "
- ";
- // line 12
- $this->displayBlock('collection_widget', $context, $blocks);
- // line 20
- echo "
- ";
- // line 21
- $this->displayBlock('textarea_widget', $context, $blocks);
- // line 26
- echo "
- ";
- // line 27
- $this->displayBlock('widget_choice_options', $context, $blocks);
- // line 42
- echo "
- ";
- // line 43
- $this->displayBlock('choice_widget', $context, $blocks);
- // line 70
- echo "
- ";
- // line 71
- $this->displayBlock('checkbox_widget', $context, $blocks);
- // line 76
- echo "
- ";
- // line 77
- $this->displayBlock('radio_widget', $context, $blocks);
- // line 82
- echo "
- ";
- // line 83
- $this->displayBlock('datetime_widget', $context, $blocks);
- // line 97
- echo "
- ";
- // line 98
- $this->displayBlock('date_widget', $context, $blocks);
- // line 113
- echo "
- ";
- // line 114
- $this->displayBlock('time_widget', $context, $blocks);
- // line 125
- echo "
- ";
- // line 126
- $this->displayBlock('number_widget', $context, $blocks);
- // line 133
- echo "
- ";
- // line 134
- $this->displayBlock('integer_widget', $context, $blocks);
- // line 140
- echo "
- ";
- // line 141
- $this->displayBlock('money_widget', $context, $blocks);
- // line 146
- echo "
- ";
- // line 147
- $this->displayBlock('url_widget', $context, $blocks);
- // line 153
- echo "
- ";
- // line 154
- $this->displayBlock('search_widget', $context, $blocks);
- // line 160
- echo "
- ";
- // line 161
- $this->displayBlock('percent_widget', $context, $blocks);
- // line 167
- echo "
- ";
- // line 168
- $this->displayBlock('field_widget', $context, $blocks);
- // line 174
- echo "
- ";
- // line 175
- $this->displayBlock('password_widget', $context, $blocks);
- // line 181
- echo "
- ";
- // line 182
- $this->displayBlock('hidden_widget', $context, $blocks);
- // line 186
- echo "
- ";
- // line 187
- $this->displayBlock('email_widget', $context, $blocks);
- // line 193
- echo "
- ";
- // line 195
- echo "
- ";
- // line 196
- $this->displayBlock('generic_label', $context, $blocks);
- // line 204
- echo "
- ";
- // line 205
- $this->displayBlock('field_label', $context, $blocks);
- // line 211
- echo "
- ";
- // line 212
- $this->displayBlock('form_label', $context, $blocks);
- // line 217
- echo "
- ";
- // line 219
- echo "
- ";
- // line 220
- $this->displayBlock('repeated_row', $context, $blocks);
- // line 225
- echo "
- ";
- // line 226
- $this->displayBlock('field_row', $context, $blocks);
- // line 235
- echo "
- ";
- // line 236
- $this->displayBlock('hidden_row', $context, $blocks);
- // line 239
- echo "
- ";
- // line 241
- echo "
- ";
- // line 242
- $this->displayBlock('field_enctype', $context, $blocks);
- // line 247
- echo "
- ";
- // line 248
- $this->displayBlock('field_errors', $context, $blocks);
- // line 259
- echo "
- ";
- // line 260
- $this->displayBlock('field_rest', $context, $blocks);
- // line 269
- echo "
- ";
- // line 271
- echo "
- ";
- // line 272
- $this->displayBlock('field_rows', $context, $blocks);
- // line 280
- echo "
- ";
- // line 281
- $this->displayBlock('widget_attributes', $context, $blocks);
- // line 287
- echo "
- ";
- // line 288
- $this->displayBlock('widget_container_attributes', $context, $blocks);
- }
-
- // line 3
- public function block_form_widget($context, array $blocks = array())
- {
- // line 4
- ob_start();
- // line 5
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 6
- $this->displayBlock("field_rows", $context, $blocks);
- echo "
- ";
- // line 7
- echo $this->env->getExtension('form')->renderRest($this->getContext($context, 'form'));
- echo "
- </div>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 12
- public function block_collection_widget($context, array $blocks = array())
- {
- // line 13
- ob_start();
- // line 14
- echo " ";
- if (array_key_exists("prototype", $context)) {
- // line 15
- echo " ";
- $context['attr'] = twig_array_merge($this->getContext($context, 'attr'), array("data-prototype" => $this->env->getExtension('form')->renderRow($this->getContext($context, 'prototype'))));
- // line 16
- echo " ";
- }
- // line 17
- echo " ";
- $this->displayBlock("form_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 21
- public function block_textarea_widget($context, array $blocks = array())
- {
- // line 22
- ob_start();
- // line 23
- echo " <textarea ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- echo ">";
- echo twig_escape_filter($this->env, $this->getContext($context, 'value'), "html");
- echo "</textarea>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 27
- public function block_widget_choice_options($context, array $blocks = array())
- {
- // line 28
- ob_start();
- // line 29
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'options'));
- foreach ($context['_seq'] as $context['choice'] => $context['label']) {
- // line 30
- echo " ";
- if ($this->env->getExtension('form')->isChoiceGroup($this->getContext($context, 'label'))) {
- // line 31
- echo " <optgroup label=\"";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, 'choice')), "html");
- echo "\">
- ";
- // line 32
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'label'));
- foreach ($context['_seq'] as $context['nestedChoice'] => $context['nestedLabel']) {
- // line 33
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'nestedChoice'), "html");
- echo "\"";
- if ($this->env->getExtension('form')->isChoiceSelected($this->getContext($context, 'form'), $this->getContext($context, 'nestedChoice'))) {
- echo " selected=\"selected\"";
- }
- echo ">";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, 'nestedLabel')), "html");
- echo "</option>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['nestedChoice'], $context['nestedLabel'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 35
- echo " </optgroup>
- ";
- } else {
- // line 37
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'choice'), "html");
- echo "\"";
- if ($this->env->getExtension('form')->isChoiceSelected($this->getContext($context, 'form'), $this->getContext($context, 'choice'))) {
- echo " selected=\"selected\"";
- }
- echo ">";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, 'label')), "html");
- echo "</option>
- ";
- }
- // line 39
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['choice'], $context['label'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 43
- public function block_choice_widget($context, array $blocks = array())
- {
- // line 44
- ob_start();
- // line 45
- echo " ";
- if ($this->getContext($context, 'expanded')) {
- // line 46
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 47
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'form'));
- foreach ($context['_seq'] as $context['_key'] => $context['child']) {
- // line 48
- echo " ";
- echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'child'));
- echo "
- ";
- // line 49
- echo $this->env->getExtension('form')->renderLabel($this->getContext($context, 'child'));
- echo "
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 51
- echo " </div>
- ";
- } else {
- // line 53
- echo " <select ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- if ($this->getContext($context, 'multiple')) {
- echo " multiple=\"multiple\"";
- }
- echo ">
- ";
- // line 54
- if ((!twig_test_none($this->getContext($context, 'empty_value')))) {
- // line 55
- echo " <option value=\"\">";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, 'empty_value')), "html");
- echo "</option>
- ";
- }
- // line 57
- echo " ";
- if ((twig_length_filter($this->env, $this->getContext($context, 'preferred_choices')) > 0)) {
- // line 58
- echo " ";
- $context['options'] = $this->getContext($context, 'preferred_choices');
- // line 59
- echo " ";
- $this->displayBlock("widget_choice_options", $context, $blocks);
- echo "
- ";
- // line 60
- if ((twig_length_filter($this->env, $this->getContext($context, 'choices')) > 0)) {
- // line 61
- echo " <option disabled=\"disabled\">";
- echo twig_escape_filter($this->env, $this->getContext($context, 'separator'), "html");
- echo "</option>
- ";
- }
- // line 63
- echo " ";
- }
- // line 64
- echo " ";
- $context['options'] = $this->getContext($context, 'choices');
- // line 65
- echo " ";
- $this->displayBlock("widget_choice_options", $context, $blocks);
- echo "
- </select>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 71
- public function block_checkbox_widget($context, array $blocks = array())
- {
- // line 72
- ob_start();
- // line 73
- echo " <input type=\"checkbox\" ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- if (array_key_exists("value", $context)) {
- echo " value=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'value'), "html");
- echo "\"";
- }
- if ($this->getContext($context, 'checked')) {
- echo " checked=\"checked\"";
- }
- echo " />
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 77
- public function block_radio_widget($context, array $blocks = array())
- {
- // line 78
- ob_start();
- // line 79
- echo " <input type=\"radio\" ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- if (array_key_exists("value", $context)) {
- echo " value=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'value'), "html");
- echo "\"";
- }
- if ($this->getContext($context, 'checked')) {
- echo " checked=\"checked\"";
- }
- echo " />
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 83
- public function block_datetime_widget($context, array $blocks = array())
- {
- // line 84
- ob_start();
- // line 85
- echo " ";
- if (($this->getContext($context, 'widget') == "single_text")) {
- // line 86
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- } else {
- // line 88
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 89
- echo $this->env->getExtension('form')->renderErrors($this->getAttribute($this->getContext($context, 'form'), "date", array(), "any", false));
- echo "
- ";
- // line 90
- echo $this->env->getExtension('form')->renderErrors($this->getAttribute($this->getContext($context, 'form'), "time", array(), "any", false));
- echo "
- ";
- // line 91
- echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "date", array(), "any", false));
- echo "
- ";
- // line 92
- echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "time", array(), "any", false));
- echo "
- </div>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 98
- public function block_date_widget($context, array $blocks = array())
- {
- // line 99
- ob_start();
- // line 100
- echo " ";
- if (($this->getContext($context, 'widget') == "single_text")) {
- // line 101
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- } else {
- // line 103
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 104
- echo twig_strtr($this->getContext($context, 'date_pattern'), array("{{ year }}" => $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "year", array(), "any", false)), "{{ month }}" => $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "month", array(), "any", false)), "{{ day }}" => $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "day", array(), "any", false))));
- // line 108
- echo "
- </div>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 114
- public function block_time_widget($context, array $blocks = array())
- {
- // line 115
- ob_start();
- // line 116
- echo " ";
- if (($this->getContext($context, 'widget') == "single_text")) {
- // line 117
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- } else {
- // line 119
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 120
- echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "hour", array(), "any", false), array("attr" => array("size" => "1")));
- echo ":";
- echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "minute", array(), "any", false), array("attr" => array("size" => "1")));
- if ($this->getContext($context, 'with_seconds')) {
- echo ":";
- echo $this->env->getExtension('form')->renderWidget($this->getAttribute($this->getContext($context, 'form'), "second", array(), "any", false), array("attr" => array("size" => "1")));
- }
- // line 121
- echo " </div>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 126
- public function block_number_widget($context, array $blocks = array())
- {
- // line 127
- ob_start();
- // line 128
- echo " ";
- // line 129
- echo " ";
- $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "text")) : ("text"));
- // line 130
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 134
- public function block_integer_widget($context, array $blocks = array())
- {
- // line 135
- ob_start();
- // line 136
- echo " ";
- $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "number")) : ("number"));
- // line 137
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 141
- public function block_money_widget($context, array $blocks = array())
- {
- // line 142
- ob_start();
- // line 143
- echo " ";
- echo twig_strtr($this->getContext($context, 'money_pattern'), array("{{ widget }}" => $this->renderBlock("field_widget", $context, $blocks)));
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 147
- public function block_url_widget($context, array $blocks = array())
- {
- // line 148
- ob_start();
- // line 149
- echo " ";
- $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "url")) : ("url"));
- // line 150
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 154
- public function block_search_widget($context, array $blocks = array())
- {
- // line 155
- ob_start();
- // line 156
- echo " ";
- $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "search")) : ("search"));
- // line 157
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 161
- public function block_percent_widget($context, array $blocks = array())
- {
- // line 162
- ob_start();
- // line 163
- echo " ";
- $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "text")) : ("text"));
- // line 164
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo " %
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 168
- public function block_field_widget($context, array $blocks = array())
- {
- // line 169
- ob_start();
- // line 170
- echo " ";
- $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "text")) : ("text"));
- // line 171
- echo " <input type=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'type'), "html");
- echo "\" ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- echo " value=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'value'), "html");
- echo "\" />
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 175
- public function block_password_widget($context, array $blocks = array())
- {
- // line 176
- ob_start();
- // line 177
- echo " ";
- $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "password")) : ("password"));
- // line 178
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 182
- public function block_hidden_widget($context, array $blocks = array())
- {
- // line 183
- echo " ";
- $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "hidden")) : ("hidden"));
- // line 184
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- }
-
- // line 187
- public function block_email_widget($context, array $blocks = array())
- {
- // line 188
- ob_start();
- // line 189
- echo " ";
- $context['type'] = ((array_key_exists("type", $context)) ? (twig_default_filter($this->getContext($context, 'type'), "email")) : ("email"));
- // line 190
- echo " ";
- $this->displayBlock("field_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 196
- public function block_generic_label($context, array $blocks = array())
- {
- // line 197
- ob_start();
- // line 198
- echo " ";
- if ($this->getContext($context, 'required')) {
- // line 199
- echo " ";
- $context['attr'] = twig_array_merge($this->getContext($context, 'attr'), array("class" => ((($this->getAttribute(((array_key_exists("attr", $context)) ? (twig_default_filter($this->getContext($context, 'attr'))) : ("")), "class", array(), "any", true)) ? (twig_default_filter($this->getAttribute($this->getContext($context, 'attr'), "class", array(), "any", false), "")) : ("")) . " required")));
- // line 200
- echo " ";
- }
- // line 201
- echo " <label";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'attr'));
- foreach ($context['_seq'] as $context['attrname'] => $context['attrvalue']) {
- echo " ";
- echo twig_escape_filter($this->env, $this->getContext($context, 'attrname'), "html");
- echo "=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'attrvalue'), "html");
- echo "\"";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- echo ">";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, 'label')), "html");
- echo "</label>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 205
- public function block_field_label($context, array $blocks = array())
- {
- // line 206
- ob_start();
- // line 207
- echo " ";
- $context['attr'] = twig_array_merge($this->getContext($context, 'attr'), array("for" => $this->getContext($context, 'id')));
- // line 208
- echo " ";
- $this->displayBlock("generic_label", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 212
- public function block_form_label($context, array $blocks = array())
- {
- // line 213
- ob_start();
- // line 214
- echo " ";
- $this->displayBlock("generic_label", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 220
- public function block_repeated_row($context, array $blocks = array())
- {
- // line 221
- ob_start();
- // line 222
- echo " ";
- $this->displayBlock("field_rows", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 226
- public function block_field_row($context, array $blocks = array())
- {
- // line 227
- ob_start();
- // line 228
- echo " <div>
- ";
- // line 229
- echo $this->env->getExtension('form')->renderLabel($this->getContext($context, 'form'), ((array_key_exists("label", $context)) ? (twig_default_filter($this->getContext($context, 'label'), null)) : (null)));
- echo "
- ";
- // line 230
- echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form'));
- echo "
- ";
- // line 231
- echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'form'));
- echo "
- </div>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 236
- public function block_hidden_row($context, array $blocks = array())
- {
- // line 237
- echo " ";
- echo $this->env->getExtension('form')->renderWidget($this->getContext($context, 'form'));
- echo "
- ";
- }
-
- // line 242
- public function block_field_enctype($context, array $blocks = array())
- {
- // line 243
- ob_start();
- // line 244
- echo " ";
- if ($this->getContext($context, 'multipart')) {
- echo "enctype=\"multipart/form-data\"";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 248
- public function block_field_errors($context, array $blocks = array())
- {
- // line 249
- ob_start();
- // line 250
- echo " ";
- if ((twig_length_filter($this->env, $this->getContext($context, 'errors')) > 0)) {
- // line 251
- echo " <ul>
- ";
- // line 252
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'errors'));
- foreach ($context['_seq'] as $context['_key'] => $context['error']) {
- // line 253
- echo " <li>";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($this->getContext($context, 'error'), "messageTemplate", array(), "any", false), $this->getAttribute($this->getContext($context, 'error'), "messageParameters", array(), "any", false), "validators"), "html");
- echo "</li>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 255
- echo " </ul>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 260
- public function block_field_rest($context, array $blocks = array())
- {
- // line 261
- ob_start();
- // line 262
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'form'));
- foreach ($context['_seq'] as $context['_key'] => $context['child']) {
- // line 263
- echo " ";
- if ((!$this->getAttribute($this->getContext($context, 'child'), "rendered", array(), "any", false))) {
- // line 264
- echo " ";
- echo $this->env->getExtension('form')->renderRow($this->getContext($context, 'child'));
- echo "
- ";
- }
- // line 266
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 272
- public function block_field_rows($context, array $blocks = array())
- {
- // line 273
- ob_start();
- // line 274
- echo " ";
- echo $this->env->getExtension('form')->renderErrors($this->getContext($context, 'form'));
- echo "
- ";
- // line 275
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'form'));
- foreach ($context['_seq'] as $context['_key'] => $context['child']) {
- // line 276
- echo " ";
- echo $this->env->getExtension('form')->renderRow($this->getContext($context, 'child'));
- echo "
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 281
- public function block_widget_attributes($context, array $blocks = array())
- {
- // line 282
- ob_start();
- // line 283
- echo " id=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'id'), "html");
- echo "\" name=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'full_name'), "html");
- echo "\"";
- if ($this->getContext($context, 'read_only')) {
- echo " disabled=\"disabled\"";
- }
- if ($this->getContext($context, 'required')) {
- echo " required=\"required\"";
- }
- if ($this->getContext($context, 'max_length')) {
- echo " maxlength=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'max_length'), "html");
- echo "\"";
- }
- if ($this->getContext($context, 'pattern')) {
- echo " pattern=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'pattern'), "html");
- echo "\"";
- }
- // line 284
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'attr'));
- foreach ($context['_seq'] as $context['attrname'] => $context['attrvalue']) {
- echo twig_escape_filter($this->env, $this->getContext($context, 'attrname'), "html");
- echo "=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'attrvalue'), "html");
- echo "\" ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- // line 288
- public function block_widget_container_attributes($context, array $blocks = array())
- {
- // line 289
- ob_start();
- // line 290
- echo " id=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'id'), "html");
- echo "\"
- ";
- // line 291
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'attr'));
- foreach ($context['_seq'] as $context['attrname'] => $context['attrvalue']) {
- echo twig_escape_filter($this->env, $this->getContext($context, 'attrname'), "html");
- echo "=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'attrvalue'), "html");
- echo "\" ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
-
- public function getTemplateName()
- {
- return "form_div_layout.html.twig";
- }
-
- public function isTraitable()
- {
- return true;
- }
- }
|