/app/cache/dev/twig/94/34/3eb4f783db0d3a46da0cc6346d28.php
PHP | 1205 lines | 888 code | 48 blank | 269 comment | 52 complexity | c31d8ff132c893e72cb86d358b3985e5 MD5 | raw file
Possible License(s): BSD-2-Clause, Apache-2.0, CC-BY-3.0, LGPL-3.0, BSD-3-Clause
- <?php
- /* form_div_layout.html.twig */
- class __TwigTemplate_94343eb4f783db0d3a46da0cc6346d28 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = false;
- $this->blocks = array(
- 'form_widget' => array($this, 'block_form_widget'),
- 'form_widget_simple' => array($this, 'block_form_widget_simple'),
- 'form_widget_compound' => array($this, 'block_form_widget_compound'),
- 'collection_widget' => array($this, 'block_collection_widget'),
- 'textarea_widget' => array($this, 'block_textarea_widget'),
- 'choice_widget' => array($this, 'block_choice_widget'),
- 'choice_widget_expanded' => array($this, 'block_choice_widget_expanded'),
- 'choice_widget_collapsed' => array($this, 'block_choice_widget_collapsed'),
- 'choice_widget_options' => array($this, 'block_choice_widget_options'),
- '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'),
- 'password_widget' => array($this, 'block_password_widget'),
- 'hidden_widget' => array($this, 'block_hidden_widget'),
- 'email_widget' => array($this, 'block_email_widget'),
- 'form_label' => array($this, 'block_form_label'),
- 'repeated_row' => array($this, 'block_repeated_row'),
- 'form_row' => array($this, 'block_form_row'),
- 'hidden_row' => array($this, 'block_hidden_row'),
- 'form_enctype' => array($this, 'block_form_enctype'),
- 'form_errors' => array($this, 'block_form_errors'),
- 'form_rest' => array($this, 'block_form_rest'),
- 'form_rows' => array($this, 'block_form_rows'),
- 'widget_attributes' => array($this, 'block_widget_attributes'),
- 'widget_container_attributes' => array($this, 'block_widget_container_attributes'),
- 'generic_label' => array($this, 'block_generic_label'),
- 'widget_choice_options' => array($this, 'block_widget_choice_options'),
- 'field_widget' => array($this, 'block_field_widget'),
- 'field_label' => array($this, 'block_field_label'),
- 'field_row' => array($this, 'block_field_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'),
- );
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- // line 2
- echo "
- ";
- // line 3
- $this->displayBlock('form_widget', $context, $blocks);
- // line 12
- echo "
- ";
- // line 13
- $this->displayBlock('form_widget_simple', $context, $blocks);
- // line 19
- echo "
- ";
- // line 20
- $this->displayBlock('form_widget_compound', $context, $blocks);
- // line 31
- echo "
- ";
- // line 32
- $this->displayBlock('collection_widget', $context, $blocks);
- // line 40
- echo "
- ";
- // line 41
- $this->displayBlock('textarea_widget', $context, $blocks);
- // line 46
- echo "
- ";
- // line 47
- $this->displayBlock('choice_widget', $context, $blocks);
- // line 56
- echo "
- ";
- // line 57
- $this->displayBlock('choice_widget_expanded', $context, $blocks);
- // line 67
- echo "
- ";
- // line 68
- $this->displayBlock('choice_widget_collapsed', $context, $blocks);
- // line 86
- echo "
- ";
- // line 87
- $this->displayBlock('choice_widget_options', $context, $blocks);
- // line 101
- echo "
- ";
- // line 102
- $this->displayBlock('checkbox_widget', $context, $blocks);
- // line 107
- echo "
- ";
- // line 108
- $this->displayBlock('radio_widget', $context, $blocks);
- // line 113
- echo "
- ";
- // line 114
- $this->displayBlock('datetime_widget', $context, $blocks);
- // line 128
- echo "
- ";
- // line 129
- $this->displayBlock('date_widget', $context, $blocks);
- // line 144
- echo "
- ";
- // line 145
- $this->displayBlock('time_widget', $context, $blocks);
- // line 157
- echo "
- ";
- // line 158
- $this->displayBlock('number_widget', $context, $blocks);
- // line 165
- echo "
- ";
- // line 166
- $this->displayBlock('integer_widget', $context, $blocks);
- // line 172
- echo "
- ";
- // line 173
- $this->displayBlock('money_widget', $context, $blocks);
- // line 178
- echo "
- ";
- // line 179
- $this->displayBlock('url_widget', $context, $blocks);
- // line 185
- echo "
- ";
- // line 186
- $this->displayBlock('search_widget', $context, $blocks);
- // line 192
- echo "
- ";
- // line 193
- $this->displayBlock('percent_widget', $context, $blocks);
- // line 199
- echo "
- ";
- // line 200
- $this->displayBlock('password_widget', $context, $blocks);
- // line 206
- echo "
- ";
- // line 207
- $this->displayBlock('hidden_widget', $context, $blocks);
- // line 213
- echo "
- ";
- // line 214
- $this->displayBlock('email_widget', $context, $blocks);
- // line 220
- echo "
- ";
- // line 222
- echo "
- ";
- // line 223
- $this->displayBlock('form_label', $context, $blocks);
- // line 239
- echo "
- ";
- // line 241
- echo "
- ";
- // line 242
- $this->displayBlock('repeated_row', $context, $blocks);
- // line 251
- echo "
- ";
- // line 252
- $this->displayBlock('form_row', $context, $blocks);
- // line 261
- echo "
- ";
- // line 262
- $this->displayBlock('hidden_row', $context, $blocks);
- // line 265
- echo "
- ";
- // line 267
- echo "
- ";
- // line 268
- $this->displayBlock('form_enctype', $context, $blocks);
- // line 273
- echo "
- ";
- // line 274
- $this->displayBlock('form_errors', $context, $blocks);
- // line 285
- echo "
- ";
- // line 286
- $this->displayBlock('form_rest', $context, $blocks);
- // line 295
- echo "
- ";
- // line 297
- echo "
- ";
- // line 298
- $this->displayBlock('form_rows', $context, $blocks);
- // line 305
- echo "
- ";
- // line 306
- $this->displayBlock('widget_attributes', $context, $blocks);
- // line 312
- echo "
- ";
- // line 313
- $this->displayBlock('widget_container_attributes', $context, $blocks);
- // line 319
- echo "
- ";
- // line 321
- echo "
- ";
- // line 322
- $this->displayBlock('generic_label', $context, $blocks);
- // line 323
- $this->displayBlock('widget_choice_options', $context, $blocks);
- // line 324
- $this->displayBlock('field_widget', $context, $blocks);
- // line 325
- $this->displayBlock('field_label', $context, $blocks);
- // line 326
- $this->displayBlock('field_row', $context, $blocks);
- // line 327
- $this->displayBlock('field_enctype', $context, $blocks);
- // line 328
- $this->displayBlock('field_errors', $context, $blocks);
- // line 329
- $this->displayBlock('field_rest', $context, $blocks);
- // line 330
- $this->displayBlock('field_rows', $context, $blocks);
- }
- // line 3
- public function block_form_widget($context, array $blocks = array())
- {
- // line 4
- ob_start();
- // line 5
- echo " ";
- if ($this->getContext($context, "compound")) {
- // line 6
- echo " ";
- $this->displayBlock("form_widget_compound", $context, $blocks);
- echo "
- ";
- } else {
- // line 8
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 13
- public function block_form_widget_simple($context, array $blocks = array())
- {
- // line 14
- ob_start();
- // line 15
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "text")) : ("text"));
- // line 16
- echo " <input type=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "type"), "html", null, true);
- echo "\" ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- echo " ";
- if ((!twig_test_empty($this->getContext($context, "value")))) {
- echo "value=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
- echo "\" ";
- }
- echo "/>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 20
- public function block_form_widget_compound($context, array $blocks = array())
- {
- // line 21
- ob_start();
- // line 22
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 23
- if (twig_test_empty($this->getAttribute($this->getContext($context, "form"), "parent"))) {
- // line 24
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'errors');
- echo "
- ";
- }
- // line 26
- echo " ";
- $this->displayBlock("form_rows", $context, $blocks);
- echo "
- ";
- // line 27
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'rest');
- echo "
- </div>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 32
- public function block_collection_widget($context, array $blocks = array())
- {
- // line 33
- ob_start();
- // line 34
- echo " ";
- if (array_key_exists("prototype", $context)) {
- // line 35
- echo " ";
- $context["attr"] = twig_array_merge($this->getContext($context, "attr"), array("data-prototype" => $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "prototype"), 'row')));
- // line 36
- echo " ";
- }
- // line 37
- echo " ";
- $this->displayBlock("form_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 41
- public function block_textarea_widget($context, array $blocks = array())
- {
- // line 42
- ob_start();
- // line 43
- echo " <textarea ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- echo ">";
- echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
- echo "</textarea>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 47
- public function block_choice_widget($context, array $blocks = array())
- {
- // line 48
- ob_start();
- // line 49
- echo " ";
- if ($this->getContext($context, "expanded")) {
- // line 50
- echo " ";
- $this->displayBlock("choice_widget_expanded", $context, $blocks);
- echo "
- ";
- } else {
- // line 52
- echo " ";
- $this->displayBlock("choice_widget_collapsed", $context, $blocks);
- echo "
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 57
- public function block_choice_widget_expanded($context, array $blocks = array())
- {
- // line 58
- ob_start();
- // line 59
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 60
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "form"));
- foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
- // line 61
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "child"), 'widget');
- echo "
- ";
- // line 62
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "child"), 'label');
- 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 64
- echo " </div>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 68
- public function block_choice_widget_collapsed($context, array $blocks = array())
- {
- // line 69
- ob_start();
- // line 70
- echo " <select ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- if ($this->getContext($context, "multiple")) {
- echo " multiple=\"multiple\"";
- }
- echo ">
- ";
- // line 71
- if ((!(null === $this->getContext($context, "empty_value")))) {
- // line 72
- echo " <option value=\"\"";
- if ($this->getContext($context, "required")) {
- echo " disabled=\"disabled\"";
- if (twig_test_empty($this->getContext($context, "value"))) {
- echo " selected=\"selected\"";
- }
- }
- echo ">";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, "empty_value"), array(), $this->getContext($context, "translation_domain")), "html", null, true);
- echo "</option>
- ";
- }
- // line 74
- echo " ";
- if ((twig_length_filter($this->env, $this->getContext($context, "preferred_choices")) > 0)) {
- // line 75
- echo " ";
- $context["options"] = $this->getContext($context, "preferred_choices");
- // line 76
- echo " ";
- $this->displayBlock("choice_widget_options", $context, $blocks);
- echo "
- ";
- // line 77
- if (((twig_length_filter($this->env, $this->getContext($context, "choices")) > 0) && (!(null === $this->getContext($context, "separator"))))) {
- // line 78
- echo " <option disabled=\"disabled\">";
- echo twig_escape_filter($this->env, $this->getContext($context, "separator"), "html", null, true);
- echo "</option>
- ";
- }
- // line 80
- echo " ";
- }
- // line 81
- echo " ";
- $context["options"] = $this->getContext($context, "choices");
- // line 82
- echo " ";
- $this->displayBlock("choice_widget_options", $context, $blocks);
- echo "
- </select>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 87
- public function block_choice_widget_options($context, array $blocks = array())
- {
- // line 88
- ob_start();
- // line 89
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "options"));
- $context['loop'] = array(
- 'parent' => $context['_parent'],
- 'index0' => 0,
- 'index' => 1,
- 'first' => true,
- );
- if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
- $length = count($context['_seq']);
- $context['loop']['revindex0'] = $length - 1;
- $context['loop']['revindex'] = $length;
- $context['loop']['length'] = $length;
- $context['loop']['last'] = 1 === $length;
- }
- foreach ($context['_seq'] as $context["group_label"] => $context["choice"]) {
- // line 90
- echo " ";
- if (twig_test_iterable($this->getContext($context, "choice"))) {
- // line 91
- echo " <optgroup label=\"";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, "group_label"), array(), $this->getContext($context, "translation_domain")), "html", null, true);
- echo "\">
- ";
- // line 92
- $context["options"] = $this->getContext($context, "choice");
- // line 93
- echo " ";
- $this->displayBlock("choice_widget_options", $context, $blocks);
- echo "
- </optgroup>
- ";
- } else {
- // line 96
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "choice"), "value"), "html", null, true);
- echo "\"";
- if ($this->env->getExtension('form')->isSelectedChoice($this->getContext($context, "choice"), $this->getContext($context, "value"))) {
- echo " selected=\"selected\"";
- }
- echo ">";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($this->getContext($context, "choice"), "label"), array(), $this->getContext($context, "translation_domain")), "html", null, true);
- echo "</option>
- ";
- }
- // line 98
- echo " ";
- ++$context['loop']['index0'];
- ++$context['loop']['index'];
- $context['loop']['first'] = false;
- if (isset($context['loop']['length'])) {
- --$context['loop']['revindex0'];
- --$context['loop']['revindex'];
- $context['loop']['last'] = 0 === $context['loop']['revindex0'];
- }
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['group_label'], $context['choice'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 102
- public function block_checkbox_widget($context, array $blocks = array())
- {
- // line 103
- ob_start();
- // line 104
- 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", null, true);
- echo "\"";
- }
- if ($this->getContext($context, "checked")) {
- echo " checked=\"checked\"";
- }
- echo " />
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 108
- public function block_radio_widget($context, array $blocks = array())
- {
- // line 109
- ob_start();
- // line 110
- 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", null, true);
- echo "\"";
- }
- if ($this->getContext($context, "checked")) {
- echo " checked=\"checked\"";
- }
- echo " />
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 114
- public function block_datetime_widget($context, array $blocks = array())
- {
- // line 115
- ob_start();
- // line 116
- echo " ";
- if (($this->getContext($context, "widget") == "single_text")) {
- // line 117
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- } else {
- // line 119
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 120
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "date"), 'errors');
- echo "
- ";
- // line 121
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "time"), 'errors');
- echo "
- ";
- // line 122
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "date"), 'widget');
- echo "
- ";
- // line 123
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "time"), 'widget');
- echo "
- </div>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 129
- public function block_date_widget($context, array $blocks = array())
- {
- // line 130
- ob_start();
- // line 131
- echo " ";
- if (($this->getContext($context, "widget") == "single_text")) {
- // line 132
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- } else {
- // line 134
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 135
- echo strtr($this->getContext($context, "date_pattern"), array("{{ year }}" => // line 136
- $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "year"), 'widget'), "{{ month }}" => // line 137
- $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "month"), 'widget'), "{{ day }}" => // line 138
- $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "day"), 'widget')));
- // line 139
- echo "
- </div>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 145
- public function block_time_widget($context, array $blocks = array())
- {
- // line 146
- ob_start();
- // line 147
- echo " ";
- if (($this->getContext($context, "widget") == "single_text")) {
- // line 148
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- } else {
- // line 150
- echo " ";
- $context["vars"] = ((($this->getContext($context, "widget") == "text")) ? (array("attr" => array("size" => 1))) : (array()));
- // line 151
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 152
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "hour"), 'widget', $this->getContext($context, "vars"));
- if ($this->getContext($context, "with_minutes")) {
- echo ":";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "minute"), 'widget', $this->getContext($context, "vars"));
- }
- if ($this->getContext($context, "with_seconds")) {
- echo ":";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "second"), 'widget', $this->getContext($context, "vars"));
- }
- // line 153
- echo " </div>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 158
- public function block_number_widget($context, array $blocks = array())
- {
- // line 159
- ob_start();
- // line 160
- echo " ";
- // line 161
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "text")) : ("text"));
- // line 162
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 166
- public function block_integer_widget($context, array $blocks = array())
- {
- // line 167
- ob_start();
- // line 168
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "number")) : ("number"));
- // line 169
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 173
- public function block_money_widget($context, array $blocks = array())
- {
- // line 174
- ob_start();
- // line 175
- echo " ";
- echo strtr($this->getContext($context, "money_pattern"), array("{{ widget }}" => $this->renderBlock("form_widget_simple", $context, $blocks)));
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 179
- public function block_url_widget($context, array $blocks = array())
- {
- // line 180
- ob_start();
- // line 181
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "url")) : ("url"));
- // line 182
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 186
- public function block_search_widget($context, array $blocks = array())
- {
- // line 187
- ob_start();
- // line 188
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "search")) : ("search"));
- // line 189
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 193
- public function block_percent_widget($context, array $blocks = array())
- {
- // line 194
- ob_start();
- // line 195
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "text")) : ("text"));
- // line 196
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo " %
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 200
- public function block_password_widget($context, array $blocks = array())
- {
- // line 201
- ob_start();
- // line 202
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "password")) : ("password"));
- // line 203
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 207
- public function block_hidden_widget($context, array $blocks = array())
- {
- // line 208
- ob_start();
- // line 209
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "hidden")) : ("hidden"));
- // line 210
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 214
- public function block_email_widget($context, array $blocks = array())
- {
- // line 215
- ob_start();
- // line 216
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "email")) : ("email"));
- // line 217
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 223
- public function block_form_label($context, array $blocks = array())
- {
- // line 224
- ob_start();
- // line 225
- echo " ";
- if ((!($this->getContext($context, "label") === false))) {
- // line 226
- echo " ";
- if ((!$this->getContext($context, "compound"))) {
- // line 227
- echo " ";
- $context["label_attr"] = twig_array_merge($this->getContext($context, "label_attr"), array("for" => $this->getContext($context, "id")));
- // line 228
- echo " ";
- }
- // line 229
- echo " ";
- if ($this->getContext($context, "required")) {
- // line 230
- echo " ";
- $context["label_attr"] = twig_array_merge($this->getContext($context, "label_attr"), array("class" => trim(((($this->getAttribute($this->getContext($context, "label_attr", true), "class", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getContext($context, "label_attr", true), "class"), "")) : ("")) . " required"))));
- // line 231
- echo " ";
- }
- // line 232
- echo " ";
- if (twig_test_empty($this->getContext($context, "label"))) {
- // line 233
- echo " ";
- $context["label"] = $this->env->getExtension('form')->renderer->humanize($this->getContext($context, "name"));
- // line 234
- echo " ";
- }
- // line 235
- echo " <label";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "label_attr"));
- foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
- echo " ";
- echo twig_escape_filter($this->env, $this->getContext($context, "attrname"), "html", null, true);
- echo "=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "attrvalue"), "html", null, true);
- 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"), array(), $this->getContext($context, "translation_domain")), "html", null, true);
- echo "</label>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 242
- public function block_repeated_row($context, array $blocks = array())
- {
- // line 243
- ob_start();
- // line 244
- echo " ";
- // line 248
- echo " ";
- $this->displayBlock("form_rows", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 252
- public function block_form_row($context, array $blocks = array())
- {
- // line 253
- ob_start();
- // line 254
- echo " <div>
- ";
- // line 255
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'label');
- echo "
- ";
- // line 256
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'errors');
- echo "
- ";
- // line 257
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'widget');
- echo "
- </div>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 262
- public function block_hidden_row($context, array $blocks = array())
- {
- // line 263
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'widget');
- echo "
- ";
- }
- // line 268
- public function block_form_enctype($context, array $blocks = array())
- {
- // line 269
- ob_start();
- // line 270
- echo " ";
- if ($this->getContext($context, "multipart")) {
- echo "enctype=\"multipart/form-data\"";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 274
- public function block_form_errors($context, array $blocks = array())
- {
- // line 275
- ob_start();
- // line 276
- echo " ";
- if ((twig_length_filter($this->env, $this->getContext($context, "errors")) > 0)) {
- // line 277
- echo " <ul>
- ";
- // line 278
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "errors"));
- foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
- // line 279
- echo " <li>";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "error"), "message"), "html", null, true);
- 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 281
- echo " </ul>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 286
- public function block_form_rest($context, array $blocks = array())
- {
- // line 287
- ob_start();
- // line 288
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "form"));
- foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
- // line 289
- echo " ";
- if ((!$this->getAttribute($this->getContext($context, "child"), "rendered"))) {
- // line 290
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "child"), 'row');
- echo "
- ";
- }
- // line 292
- 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 298
- public function block_form_rows($context, array $blocks = array())
- {
- // line 299
- ob_start();
- // line 300
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "form"));
- foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
- // line 301
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "child"), 'row');
- 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 306
- public function block_widget_attributes($context, array $blocks = array())
- {
- // line 307
- ob_start();
- // line 308
- echo " id=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
- echo "\" name=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "full_name"), "html", null, true);
- echo "\"";
- if ($this->getContext($context, "read_only")) {
- echo " readonly=\"readonly\"";
- }
- if ($this->getContext($context, "disabled")) {
- 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", null, true);
- echo "\"";
- }
- if ($this->getContext($context, "pattern")) {
- echo " pattern=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "pattern"), "html", null, true);
- echo "\"";
- }
- // line 309
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "attr"));
- foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
- if (twig_in_filter($this->getContext($context, "attrname"), array(0 => "placeholder", 1 => "title"))) {
- echo twig_escape_filter($this->env, $this->getContext($context, "attrname"), "html", null, true);
- echo "=\"";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getContext($context, "attrvalue"), array(), $this->getContext($context, "translation_domain")), "html", null, true);
- echo "\" ";
- } else {
- echo twig_escape_filter($this->env, $this->getContext($context, "attrname"), "html", null, true);
- echo "=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "attrvalue"), "html", null, true);
- 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 313
- public function block_widget_container_attributes($context, array $blocks = array())
- {
- // line 314
- ob_start();
- // line 315
- echo " ";
- if ((!twig_test_empty($this->getContext($context, "id")))) {
- echo "id=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
- echo "\" ";
- }
- // line 316
- 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", null, true);
- echo "=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "attrvalue"), "html", null, true);
- 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 322
- public function block_generic_label($context, array $blocks = array())
- {
- $this->displayBlock("form_label", $context, $blocks);
- }
- // line 323
- public function block_widget_choice_options($context, array $blocks = array())
- {
- $this->displayBlock("choice_widget_options", $context, $blocks);
- }
- // line 324
- public function block_field_widget($context, array $blocks = array())
- {
- $this->displayBlock("form_widget_simple", $context, $blocks);
- }
- // line 325
- public function block_field_label($context, array $blocks = array())
- {
- $this->displayBlock("form_label", $context, $blocks);
- }
- // line 326
- public function block_field_row($context, array $blocks = array())
- {
- $this->displayBlock("form_row", $context, $blocks);
- }
- // line 327
- public function block_field_enctype($context, array $blocks = array())
- {
- $this->displayBlock("form_enctype", $context, $blocks);
- }
- // line 328
- public function block_field_errors($context, array $blocks = array())
- {
- $this->displayBlock("form_errors", $context, $blocks);
- }
- // line 329
- public function block_field_rest($context, array $blocks = array())
- {
- $this->displayBlock("form_rest", $context, $blocks);
- }
- // line 330
- public function block_field_rows($context, array $blocks = array())
- {
- $this->displayBlock("form_rows", $context, $blocks);
- }
- public function getTemplateName()
- {
- return "form_div_layout.html.twig";
- }
- public function getDebugInfo()
- {
- return array ( 1191 => 330, 1185 => 329, 1179 => 328, 1173 => 327, 1167 => 326, 1161 => 325, 1155 => 324, 1149 => 323, 1143 => 322, 1127 => 316, 1120 => 315, 1118 => 314, 1115 => 313, 1092 => 309, 1067 => 308, 1065 => 307, 1062 => 306, 1050 => 301, 1045 => 300, 1043 => 299, 1040 => 298, 1031 => 292, 1025 => 290, 1022 => 289, 1017 => 288, 1015 => 287, 1012 => 286, 1005 => 281, 996 => 279, 992 => 278, 989 => 277, 986 => 276, 984 => 275, 981 => 274, 973 => 270, 971 => 269, 968 => 268, 961 => 263, 958 => 262, 950 => 257, 946 => 256, 942 => 255, 939 => 254, 937 => 253, 934 => 252, 926 => 248, 924 => 244, 922 => 243, 919 => 242, 897 => 235, 894 => 234, 891 => 233, 888 => 232, 885 => 231, 882 => 230, 879 => 229, 876 => 228, 873 => 227, 870 => 226, 867 => 225, 865 => 224, 862 => 223, 854 => 217, 851 => 216, 849 => 215, 846 => 214, 838 => 210, 835 => 209, 833 => 208, 830 => 207, 822 => 203, 819 => 202, 817 => 201, 814 => 200, 806 => 196, 803 => 195, 801 => 194, 798 => 193, 790 => 189, 787 => 188, 785 => 187, 782 => 186, 774 => 182, 771 => 181, 769 => 180, 766 => 179, 758 => 175, 756 => 174, 753 => 173, 745 => 169, 742 => 168, 740 => 167, 737 => 166, 729 => 162, 726 => 161, 724 => 160, 722 => 159, 719 => 158, 712 => 153, 702 => 152, 697 => 151, 694 => 150, 688 => 148, 685 => 147, 683 => 146, 680 => 145, 672 => 139, 670 => 138, 669 => 137, 668 => 136, 667 => 135, 662 => 134, 656 => 132, 653 => 131, 651 => 130, 648 => 129, 639 => 123, 635 => 122, 631 => 121, 627 => 120, 622 => 119, 616 => 117, 613 => 116, 611 => 115, 608 => 114, 592 => 110, 590 => 109, 587 => 108, 571 => 104, 569 => 103, 566 => 102, 549 => 98, 537 => 96, 530 => 93, 528 => 92, 523 => 91, 520 => 90, 502 => 89, 500 => 88, 497 => 87, 488 => 82, 485 => 81, 482 => 80, 476 => 78, 474 => 77, 469 => 76, 466 => 75, 463 => 74, 450 => 72, 448 => 71, 440 => 70, 438 => 69, 435 => 68, 429 => 64, 421 => 62, 416 => 61, 412 => 60, 407 => 59, 405 => 58, 402 => 57, 393 => 52, 387 => 50, 384 => 49, 382 => 48, 379 => 47, 369 => 43, 367 => 42, 364 => 41, 356 => 37, 353 => 36, 350 => 35, 347 => 34, 345 => 33, 342 => 32, 334 => 27, 329 => 26, 323 => 24, 321 => 23, 316 => 22, 314 => 21, 311 => 20, 295 => 16, 292 => 15, 290 => 14, 287 => 13, 278 => 8, 272 => 6, 269 => 5, 267 => 4, 264 => 3, 260 => 330, 258 => 329, 256 => 328, 254 => 327, 252 => 326, 250 => 325, 248 => 324, 246 => 323, 244 => 322, 241 => 321, 238 => 319, 236 => 313, 233 => 312, 231 => 306, 228 => 305, 226 => 298, 223 => 297, 220 => 295, 218 => 286, 215 => 285, 213 => 274, 210 => 273, 208 => 268, 205 => 267, 202 => 265, 200 => 262, 197 => 261, 195 => 252, 192 => 251, 190 => 242, 187 => 241, 184 => 239, 182 => 223, 179 => 222, 176 => 220, 174 => 214, 171 => 213, 169 => 207, 166 => 206, 164 => 200, 161 => 199, 159 => 193, 156 => 192, 154 => 186, 151 => 185, 149 => 179, 146 => 178, 144 => 173, 141 => 172, 139 => 166, 136 => 165, 134 => 158, 131 => 157, 129 => 145, 126 => 144, 124 => 129, 121 => 128, 119 => 114, 116 => 113, 114 => 108, 111 => 107, 109 => 102, 106 => 101, 101 => 86, 99 => 68, 96 => 67, 94 => 57, 91 => 56, 89 => 47, 79 => 32, 74 => 20, 71 => 19, 69 => 13, 61 => 2, 108 => 33, 104 => 87, 102 => 30, 90 => 27, 87 => 26, 84 => 41, 81 => 40, 72 => 18, 67 => 16, 59 => 13, 56 => 12, 33 => 4, 30 => 3, 52 => 13, 48 => 11, 43 => 9, 37 => 7, 26 => 3, 19 => 1, 98 => 29, 93 => 28, 88 => 6, 78 => 40, 46 => 10, 44 => 9, 40 => 8, 36 => 5, 32 => 6, 27 => 4, 22 => 2, 64 => 3, 58 => 14, 55 => 12, 50 => 10, 34 => 4, 31 => 5, 86 => 46, 80 => 41, 76 => 31, 70 => 19, 66 => 12, 62 => 14, 57 => 15, 53 => 11, 47 => 9, 45 => 8, 41 => 7, 38 => 6, 35 => 5, 29 => 4,);
- }
- }