/parivartree260614/parivartree/app/cache/dev/twig/53/0e/843d80d3a97d59eb0770fa5b0b6ad15071908f64c67c2c2700b50af22845.php
PHP | 1423 lines | 1043 code | 48 blank | 332 comment | 64 complexity | 6c65c3cb1274d0b91a6cbaf1fa59cd6c MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- <?php
- /* form_div_layout.html.twig */
- class __TwigTemplate_530e843d80d3a97d59eb0770fa5b0b6ad15071908f64c67c2c2700b50af22845 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'),
- 'button_widget' => array($this, 'block_button_widget'),
- 'submit_widget' => array($this, 'block_submit_widget'),
- 'reset_widget' => array($this, 'block_reset_widget'),
- 'form_label' => array($this, 'block_form_label'),
- 'button_label' => array($this, 'block_button_label'),
- 'repeated_row' => array($this, 'block_repeated_row'),
- 'form_row' => array($this, 'block_form_row'),
- 'button_row' => array($this, 'block_button_row'),
- 'hidden_row' => array($this, 'block_hidden_row'),
- 'form' => array($this, 'block_form'),
- 'form_start' => array($this, 'block_form_start'),
- 'form_end' => array($this, 'block_form_end'),
- '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'),
- 'button_attributes' => array($this, 'block_button_attributes'),
- );
- }
- 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 89
- echo "
- ";
- // line 90
- $this->displayBlock('choice_widget_options', $context, $blocks);
- // line 104
- echo "
- ";
- // line 105
- $this->displayBlock('checkbox_widget', $context, $blocks);
- // line 110
- echo "
- ";
- // line 111
- $this->displayBlock('radio_widget', $context, $blocks);
- // line 116
- echo "
- ";
- // line 117
- $this->displayBlock('datetime_widget', $context, $blocks);
- // line 131
- echo "
- ";
- // line 132
- $this->displayBlock('date_widget', $context, $blocks);
- // line 147
- echo "
- ";
- // line 148
- $this->displayBlock('time_widget', $context, $blocks);
- // line 160
- echo "
- ";
- // line 161
- $this->displayBlock('number_widget', $context, $blocks);
- // line 168
- echo "
- ";
- // line 169
- $this->displayBlock('integer_widget', $context, $blocks);
- // line 175
- echo "
- ";
- // line 176
- $this->displayBlock('money_widget', $context, $blocks);
- // line 181
- echo "
- ";
- // line 182
- $this->displayBlock('url_widget', $context, $blocks);
- // line 188
- echo "
- ";
- // line 189
- $this->displayBlock('search_widget', $context, $blocks);
- // line 195
- echo "
- ";
- // line 196
- $this->displayBlock('percent_widget', $context, $blocks);
- // line 202
- echo "
- ";
- // line 203
- $this->displayBlock('password_widget', $context, $blocks);
- // line 209
- echo "
- ";
- // line 210
- $this->displayBlock('hidden_widget', $context, $blocks);
- // line 216
- echo "
- ";
- // line 217
- $this->displayBlock('email_widget', $context, $blocks);
- // line 223
- echo "
- ";
- // line 224
- $this->displayBlock('button_widget', $context, $blocks);
- // line 232
- echo "
- ";
- // line 233
- $this->displayBlock('submit_widget', $context, $blocks);
- // line 239
- echo "
- ";
- // line 240
- $this->displayBlock('reset_widget', $context, $blocks);
- // line 246
- echo "
- ";
- // line 248
- echo "
- ";
- // line 249
- $this->displayBlock('form_label', $context, $blocks);
- // line 265
- echo "
- ";
- // line 266
- $this->displayBlock('button_label', $context, $blocks);
- // line 267
- echo "
- ";
- // line 269
- echo "
- ";
- // line 270
- $this->displayBlock('repeated_row', $context, $blocks);
- // line 279
- echo "
- ";
- // line 280
- $this->displayBlock('form_row', $context, $blocks);
- // line 289
- echo "
- ";
- // line 290
- $this->displayBlock('button_row', $context, $blocks);
- // line 297
- echo "
- ";
- // line 298
- $this->displayBlock('hidden_row', $context, $blocks);
- // line 301
- echo "
- ";
- // line 303
- echo "
- ";
- // line 304
- $this->displayBlock('form', $context, $blocks);
- // line 311
- echo "
- ";
- // line 312
- $this->displayBlock('form_start', $context, $blocks);
- // line 326
- echo "
- ";
- // line 327
- $this->displayBlock('form_end', $context, $blocks);
- // line 335
- echo "
- ";
- // line 336
- $this->displayBlock('form_enctype', $context, $blocks);
- // line 341
- echo "
- ";
- // line 342
- $this->displayBlock('form_errors', $context, $blocks);
- // line 353
- echo "
- ";
- // line 354
- $this->displayBlock('form_rest', $context, $blocks);
- // line 363
- echo "
- ";
- // line 365
- echo "
- ";
- // line 366
- $this->displayBlock('form_rows', $context, $blocks);
- // line 373
- echo "
- ";
- // line 374
- $this->displayBlock('widget_attributes', $context, $blocks);
- // line 392
- echo "
- ";
- // line 393
- $this->displayBlock('widget_container_attributes', $context, $blocks);
- // line 408
- echo "
- ";
- // line 409
- $this->displayBlock('button_attributes', $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_intersect_key($context, $_parent) + $_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 " ";
- if (((($this->getContext($context, "required") && (null === $this->getContext($context, "empty_value"))) && (!$this->getContext($context, "empty_value_in_choices"))) && (!$this->getContext($context, "multiple")))) {
- // line 71
- echo " ";
- $context["required"] = false;
- // line 72
- echo " ";
- }
- // line 73
- echo " <select ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- if ($this->getContext($context, "multiple")) {
- echo " multiple=\"multiple\"";
- }
- echo ">
- ";
- // line 74
- if ((!(null === $this->getContext($context, "empty_value")))) {
- // line 75
- echo " <option value=\"\"";
- if (($this->getContext($context, "required") && 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 77
- echo " ";
- if ((twig_length_filter($this->env, $this->getContext($context, "preferred_choices")) > 0)) {
- // line 78
- echo " ";
- $context["options"] = $this->getContext($context, "preferred_choices");
- // line 79
- echo " ";
- $this->displayBlock("choice_widget_options", $context, $blocks);
- echo "
- ";
- // line 80
- if (((twig_length_filter($this->env, $this->getContext($context, "choices")) > 0) && (!(null === $this->getContext($context, "separator"))))) {
- // line 81
- echo " <option disabled=\"disabled\">";
- echo twig_escape_filter($this->env, $this->getContext($context, "separator"), "html", null, true);
- echo "</option>
- ";
- }
- // line 83
- echo " ";
- }
- // line 84
- echo " ";
- $context["options"] = $this->getContext($context, "choices");
- // line 85
- echo " ";
- $this->displayBlock("choice_widget_options", $context, $blocks);
- echo "
- </select>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 90
- public function block_choice_widget_options($context, array $blocks = array())
- {
- // line 91
- ob_start();
- // line 92
- 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 93
- echo " ";
- if (twig_test_iterable($this->getContext($context, "choice"))) {
- // line 94
- 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 95
- $context["options"] = $this->getContext($context, "choice");
- // line 96
- echo " ";
- $this->displayBlock("choice_widget_options", $context, $blocks);
- echo "
- </optgroup>
- ";
- } else {
- // line 99
- 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 101
- 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_intersect_key($context, $_parent) + $_parent;
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 105
- public function block_checkbox_widget($context, array $blocks = array())
- {
- // line 106
- ob_start();
- // line 107
- 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 111
- public function block_radio_widget($context, array $blocks = array())
- {
- // line 112
- ob_start();
- // line 113
- 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 117
- public function block_datetime_widget($context, array $blocks = array())
- {
- // line 118
- ob_start();
- // line 119
- echo " ";
- if (($this->getContext($context, "widget") == "single_text")) {
- // line 120
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- } else {
- // line 122
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 123
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "date"), 'errors');
- echo "
- ";
- // line 124
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "time"), 'errors');
- echo "
- ";
- // line 125
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "date"), 'widget');
- echo "
- ";
- // line 126
- 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 132
- public function block_date_widget($context, array $blocks = array())
- {
- // line 133
- ob_start();
- // line 134
- echo " ";
- if (($this->getContext($context, "widget") == "single_text")) {
- // line 135
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- } else {
- // line 137
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 138
- echo strtr($this->getContext($context, "date_pattern"), array("{{ year }}" => // line 139
- $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "year"), 'widget'), "{{ month }}" => // line 140
- $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "month"), 'widget'), "{{ day }}" => // line 141
- $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "day"), 'widget')));
- // line 142
- echo "
- </div>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 148
- public function block_time_widget($context, array $blocks = array())
- {
- // line 149
- ob_start();
- // line 150
- echo " ";
- if (($this->getContext($context, "widget") == "single_text")) {
- // line 151
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- } else {
- // line 153
- echo " ";
- $context["vars"] = ((($this->getContext($context, "widget") == "text")) ? (array("attr" => array("size" => 1))) : (array()));
- // line 154
- echo " <div ";
- $this->displayBlock("widget_container_attributes", $context, $blocks);
- echo ">
- ";
- // line 155
- 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 156
- echo " </div>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 161
- public function block_number_widget($context, array $blocks = array())
- {
- // line 162
- ob_start();
- // line 163
- echo " ";
- // line 164
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "text")) : ("text"));
- // line 165
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 169
- public function block_integer_widget($context, array $blocks = array())
- {
- // line 170
- ob_start();
- // line 171
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "number")) : ("number"));
- // line 172
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 176
- public function block_money_widget($context, array $blocks = array())
- {
- // line 177
- ob_start();
- // line 178
- 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 182
- public function block_url_widget($context, array $blocks = array())
- {
- // line 183
- ob_start();
- // line 184
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "url")) : ("url"));
- // line 185
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 189
- public function block_search_widget($context, array $blocks = array())
- {
- // line 190
- ob_start();
- // line 191
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "search")) : ("search"));
- // line 192
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 196
- public function block_percent_widget($context, array $blocks = array())
- {
- // line 197
- ob_start();
- // line 198
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "text")) : ("text"));
- // line 199
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo " %
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 203
- public function block_password_widget($context, array $blocks = array())
- {
- // line 204
- ob_start();
- // line 205
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "password")) : ("password"));
- // line 206
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 210
- public function block_hidden_widget($context, array $blocks = array())
- {
- // line 211
- ob_start();
- // line 212
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "hidden")) : ("hidden"));
- // line 213
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 217
- public function block_email_widget($context, array $blocks = array())
- {
- // line 218
- ob_start();
- // line 219
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "email")) : ("email"));
- // line 220
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 224
- public function block_button_widget($context, array $blocks = array())
- {
- // line 225
- ob_start();
- // line 226
- echo " ";
- if (twig_test_empty($this->getContext($context, "label"))) {
- // line 227
- echo " ";
- $context["label"] = call_user_func_array($this->env->getFilter('humanize')->getCallable(), array($this->getContext($context, "name")));
- // line 228
- echo " ";
- }
- // line 229
- echo " <button type=\"";
- echo twig_escape_filter($this->env, ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "button")) : ("button")), "html", null, true);
- echo "\" ";
- $this->displayBlock("button_attributes", $context, $blocks);
- 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 "</button>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 233
- public function block_submit_widget($context, array $blocks = array())
- {
- // line 234
- ob_start();
- // line 235
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "submit")) : ("submit"));
- // line 236
- echo " ";
- $this->displayBlock("button_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 240
- public function block_reset_widget($context, array $blocks = array())
- {
- // line 241
- ob_start();
- // line 242
- echo " ";
- $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter($this->getContext($context, "type"), "reset")) : ("reset"));
- // line 243
- echo " ";
- $this->displayBlock("button_widget", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 249
- public function block_form_label($context, array $blocks = array())
- {
- // line 250
- ob_start();
- // line 251
- echo " ";
- if ((!($this->getContext($context, "label") === false))) {
- // line 252
- echo " ";
- if ((!$this->getContext($context, "compound"))) {
- // line 253
- echo " ";
- $context["label_attr"] = twig_array_merge($this->getContext($context, "label_attr"), array("for" => $this->getContext($context, "id")));
- // line 254
- echo " ";
- }
- // line 255
- echo " ";
- if ($this->getContext($context, "required")) {
- // line 256
- 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 257
- echo " ";
- }
- // line 258
- echo " ";
- if (twig_test_empty($this->getContext($context, "label"))) {
- // line 259
- echo " ";
- $context["label"] = call_user_func_array($this->env->getFilter('humanize')->getCallable(), array($this->getContext($context, "name")));
- // line 260
- echo " ";
- }
- // line 261
- 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_intersect_key($context, $_parent) + $_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 266
- public function block_button_label($context, array $blocks = array())
- {
- }
- // line 270
- public function block_repeated_row($context, array $blocks = array())
- {
- // line 271
- ob_start();
- // line 272
- echo " ";
- // line 276
- echo " ";
- $this->displayBlock("form_rows", $context, $blocks);
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 280
- public function block_form_row($context, array $blocks = array())
- {
- // line 281
- ob_start();
- // line 282
- echo " <div>
- ";
- // line 283
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'label');
- echo "
- ";
- // line 284
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'errors');
- echo "
- ";
- // line 285
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'widget');
- echo "
- </div>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 290
- public function block_button_row($context, array $blocks = array())
- {
- // line 291
- ob_start();
- // line 292
- echo " <div>
- ";
- // line 293
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'widget');
- echo "
- </div>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 298
- public function block_hidden_row($context, array $blocks = array())
- {
- // line 299
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'widget');
- echo "
- ";
- }
- // line 304
- public function block_form($context, array $blocks = array())
- {
- // line 305
- ob_start();
- // line 306
- echo " ";
- echo $this->env->getExtension('form')->renderer->renderBlock($this->getContext($context, "form"), 'form_start');
- echo "
- ";
- // line 307
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'widget');
- echo "
- ";
- // line 308
- echo $this->env->getExtension('form')->renderer->renderBlock($this->getContext($context, "form"), 'form_end');
- echo "
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 312
- public function block_form_start($context, array $blocks = array())
- {
- // line 313
- ob_start();
- // line 314
- echo " ";
- $context["method"] = twig_upper_filter($this->env, $this->getContext($context, "method"));
- // line 315
- echo " ";
- if (twig_in_filter($this->getContext($context, "method"), array(0 => "GET", 1 => "POST"))) {
- // line 316
- echo " ";
- $context["form_method"] = $this->getContext($context, "method");
- // line 317
- echo " ";
- } else {
- // line 318
- echo " ";
- $context["form_method"] = "POST";
- // line 319
- echo " ";
- }
- // line 320
- echo " <form name=\"";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "form"), "vars"), "name"), "html", null, true);
- echo "\" method=\"";
- echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getContext($context, "form_method")), "html", null, true);
- echo "\" action=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "action"), "html", null, true);
- echo "\"";
- $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", 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_intersect_key($context, $_parent) + $_parent;
- if ($this->getContext($context, "multipart")) {
- echo " enctype=\"multipart/form-data\"";
- }
- echo ">
- ";
- // line 321
- if (($this->getContext($context, "form_method") != $this->getContext($context, "method"))) {
- // line 322
- echo " <input type=\"hidden\" name=\"_method\" value=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "method"), "html", null, true);
- echo "\" />
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 327
- public function block_form_end($context, array $blocks = array())
- {
- // line 328
- ob_start();
- // line 329
- echo " ";
- if (((!array_key_exists("render_rest", $context)) || $this->getContext($context, "render_rest"))) {
- // line 330
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'rest');
- echo "
- ";
- }
- // line 332
- echo " </form>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 336
- public function block_form_enctype($context, array $blocks = array())
- {
- // line 337
- ob_start();
- // line 338
- echo " ";
- if ($this->getContext($context, "multipart")) {
- echo "enctype=\"multipart/form-data\"";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 342
- public function block_form_errors($context, array $blocks = array())
- {
- // line 343
- ob_start();
- // line 344
- echo " ";
- if ((twig_length_filter($this->env, $this->getContext($context, "errors")) > 0)) {
- // line 345
- echo " <ul>
- ";
- // line 346
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "errors"));
- foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
- // line 347
- 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_intersect_key($context, $_parent) + $_parent;
- // line 349
- echo " </ul>
- ";
- }
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 354
- public function block_form_rest($context, array $blocks = array())
- {
- // line 355
- ob_start();
- // line 356
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "form"));
- foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
- // line 357
- echo " ";
- if ((!$this->getAttribute($this->getContext($context, "child"), "rendered"))) {
- // line 358
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "child"), 'row');
- echo "
- ";
- }
- // line 360
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 366
- public function block_form_rows($context, array $blocks = array())
- {
- // line 367
- ob_start();
- // line 368
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "form"));
- foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
- // line 369
- 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_intersect_key($context, $_parent) + $_parent;
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 374
- public function block_widget_attributes($context, array $blocks = array())
- {
- // line 375
- ob_start();
- // line 376
- 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 "\"";
- // line 377
- if ($this->getContext($context, "read_only")) {
- echo " readonly=\"readonly\"";
- }
- // line 378
- if ($this->getContext($context, "disabled")) {
- echo " disabled=\"disabled\"";
- }
- // line 379
- if ($this->getContext($context, "required")) {
- echo " required=\"required\"";
- }
- // line 380
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "attr"));
- foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
- // line 381
- echo " ";
- // line 382
- if (twig_in_filter($this->getContext($context, "attrname"), array(0 => "placeholder", 1 => "title"))) {
- // line 383
- 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 "\"";
- } elseif (($this->getContext($context, "attrvalue") === true)) {
- // line 385
- echo twig_escape_filter($this->env, $this->getContext($context, "attrname"), "html", null, true);
- echo "=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "attrname"), "html", null, true);
- echo "\"";
- } elseif ((!($this->getContext($context, "attrvalue") === false))) {
- // line 387
- 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_intersect_key($context, $_parent) + $_parent;
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- }
- // line 393
- public function block_widget_container_attributes($context, array $blocks = array())
- {
- // line 394
- ob_start();
- // line 395
- 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 396
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getContext($context, "attr"));
- foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
- // line 397
- echo " ";
- // line 398
- if (twig_in_filter($this->getContext($context, "attrname"), array(0 => "placeholder", 1 => "title"))) {
- // line 399
- 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…
Large files files are truncated, but you can click here to view the full file