/app/cache/dev/twig/7c/ba/4d1aadc854894a46959394647055.php
https://bitbucket.org/ealexandru/pos · PHP · 1179 lines · 868 code · 44 blank · 267 comment · 52 complexity · b4fdcaec98cf5db646d7c776a8a8d0ca MD5 · raw file
- <?php
- /* form_div_layout.html.twig */
- class __TwigTemplate_7cba4d1aadc854894a46959394647055 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 ((isset($context["compound"]) ? $context["compound"] : $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((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "text")) : ("text"));
- // line 16
- echo " <input type=\"";
- echo twig_escape_filter($this->env, (isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "html", null, true);
- echo "\" ";
- $this->displayBlock("widget_attributes", $context, $blocks);
- echo " ";
- if ((!twig_test_empty((isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))))) {
- echo "value=\"";
- echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $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((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "parent"))) {
- // line 24
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $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((isset($context["form"]) ? $context["form"] : $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((isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")), array("data-prototype" => $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["prototype"]) ? $context["prototype"] : $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, (isset($context["value"]) ? $context["value"] : $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 ((isset($context["expanded"]) ? $context["expanded"] : $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((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")));
- foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
- // line 61
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), 'widget');
- echo "
- ";
- // line 62
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $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 ((isset($context["multiple"]) ? $context["multiple"] : $this->getContext($context, "multiple"))) {
- echo " multiple=\"multiple\"";
- }
- echo ">
- ";
- // line 71
- if ((!(null === (isset($context["empty_value"]) ? $context["empty_value"] : $this->getContext($context, "empty_value"))))) {
- // line 72
- echo " <option value=\"\"";
- if ((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required"))) {
- echo " disabled=\"disabled\"";
- if (twig_test_empty((isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")))) {
- echo " selected=\"selected\"";
- }
- }
- echo ">";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans((isset($context["empty_value"]) ? $context["empty_value"] : $this->getContext($context, "empty_value")), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain"))), "html", null, true);
- echo "</option>
- ";
- }
- // line 74
- echo " ";
- if ((twig_length_filter($this->env, (isset($context["preferred_choices"]) ? $context["preferred_choices"] : $this->getContext($context, "preferred_choices"))) > 0)) {
- // line 75
- echo " ";
- $context["options"] = (isset($context["preferred_choices"]) ? $context["preferred_choices"] : $this->getContext($context, "preferred_choices"));
- // line 76
- echo " ";
- $this->displayBlock("choice_widget_options", $context, $blocks);
- echo "
- ";
- // line 77
- if (((twig_length_filter($this->env, (isset($context["choices"]) ? $context["choices"] : $this->getContext($context, "choices"))) > 0) && (!(null === (isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")))))) {
- // line 78
- echo " <option disabled=\"disabled\">";
- echo twig_escape_filter($this->env, (isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")), "html", null, true);
- echo "</option>
- ";
- }
- // line 80
- echo " ";
- }
- // line 81
- echo " ";
- $context["options"] = (isset($context["choices"]) ? $context["choices"] : $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((isset($context["options"]) ? $context["options"] : $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((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")))) {
- // line 91
- echo " <optgroup label=\"";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans((isset($context["group_label"]) ? $context["group_label"] : $this->getContext($context, "group_label")), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain"))), "html", null, true);
- echo "\">
- ";
- // line 92
- $context["options"] = (isset($context["choice"]) ? $context["choice"] : $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((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")), "value"), "html", null, true);
- echo "\"";
- if ($this->env->getExtension('form')->isSelectedChoice((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")), (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")))) {
- echo " selected=\"selected\"";
- }
- echo ">";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")), "label"), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $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, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
- echo "\"";
- }
- if ((isset($context["checked"]) ? $context["checked"] : $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, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
- echo "\"";
- }
- if ((isset($context["checked"]) ? $context["checked"] : $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 (((isset($context["widget"]) ? $context["widget"] : $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((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "date"), 'errors');
- echo "
- ";
- // line 121
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "time"), 'errors');
- echo "
- ";
- // line 122
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "date"), 'widget');
- echo "
- ";
- // line 123
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $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 (((isset($context["widget"]) ? $context["widget"] : $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((isset($context["date_pattern"]) ? $context["date_pattern"] : $this->getContext($context, "date_pattern")), array("{{ year }}" => // line 136
- $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "year"), 'widget'), "{{ month }}" => // line 137
- $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "month"), 'widget'), "{{ day }}" => // line 138
- $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $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 (((isset($context["widget"]) ? $context["widget"] : $this->getContext($context, "widget")) == "single_text")) {
- // line 148
- echo " ";
- $this->displayBlock("form_widget_simple", $context, $blocks);
- echo "
- ";
- } else {
- // line 150
- echo " ";
- $context["vars"] = ((((isset($context["widget"]) ? $context["widget"] : $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((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "hour"), 'widget', (isset($context["vars"]) ? $context["vars"] : $this->getContext($context, "vars")));
- if ((isset($context["with_minutes"]) ? $context["with_minutes"] : $this->getContext($context, "with_minutes"))) {
- echo ":";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "minute"), 'widget', (isset($context["vars"]) ? $context["vars"] : $this->getContext($context, "vars")));
- }
- if ((isset($context["with_seconds"]) ? $context["with_seconds"] : $this->getContext($context, "with_seconds"))) {
- echo ":";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "second"), 'widget', (isset($context["vars"]) ? $context["vars"] : $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((isset($context["type"]) ? $context["type"] : $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((isset($context["type"]) ? $context["type"] : $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((isset($context["money_pattern"]) ? $context["money_pattern"] : $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((isset($context["type"]) ? $context["type"] : $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((isset($context["type"]) ? $context["type"] : $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((isset($context["type"]) ? $context["type"] : $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((isset($context["type"]) ? $context["type"] : $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((isset($context["type"]) ? $context["type"] : $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((isset($context["type"]) ? $context["type"] : $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 ((!((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")) === false))) {
- // line 226
- echo " ";
- if ((!(isset($context["compound"]) ? $context["compound"] : $this->getContext($context, "compound")))) {
- // line 227
- echo " ";
- $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr")), array("for" => (isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"))));
- // line 228
- echo " ";
- }
- // line 229
- echo " ";
- if ((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required"))) {
- // line 230
- echo " ";
- $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr")), array("class" => trim(((($this->getAttribute((isset($context["label_attr"]) ? $context["label_attr"] : null), "class", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute((isset($context["label_attr"]) ? $context["label_attr"] : null), "class"), "")) : ("")) . " required"))));
- // line 231
- echo " ";
- }
- // line 232
- echo " ";
- if (twig_test_empty((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")))) {
- // line 233
- echo " ";
- $context["label"] = $this->env->getExtension('form')->renderer->humanize((isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")));
- // line 234
- echo " ";
- }
- // line 235
- echo " <label";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr")));
- foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
- echo " ";
- echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
- echo "=\"";
- echo twig_escape_filter($this->env, (isset($context["attrvalue"]) ? $context["attrvalue"] : $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((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $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((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'label');
- echo "
- ";
- // line 256
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'errors');
- echo "
- ";
- // line 257
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $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((isset($context["form"]) ? $context["form"] : $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 ((isset($context["multipart"]) ? $context["multipart"] : $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, (isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors"))) > 0)) {
- // line 277
- echo " <ul>
- ";
- // line 278
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors")));
- foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
- // line 279
- echo " <li>";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["error"]) ? $context["error"] : $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((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")));
- foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
- // line 289
- echo " ";
- if ((!$this->getAttribute((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), "rendered"))) {
- // line 290
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $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((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")));
- foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
- // line 301
- echo " ";
- echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $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, (isset($context["id"]) ? $context["id"] : $this->getContext($context, "id")), "html", null, true);
- echo "\" name=\"";
- echo twig_escape_filter($this->env, (isset($context["full_name"]) ? $context["full_name"] : $this->getContext($context, "full_name")), "html", null, true);
- echo "\"";
- if ((isset($context["read_only"]) ? $context["read_only"] : $this->getContext($context, "read_only"))) {
- echo " readonly=\"readonly\"";
- }
- if ((isset($context["disabled"]) ? $context["disabled"] : $this->getContext($context, "disabled"))) {
- echo " disabled=\"disabled\"";
- }
- if ((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required"))) {
- echo " required=\"required\"";
- }
- if ((isset($context["max_length"]) ? $context["max_length"] : $this->getContext($context, "max_length"))) {
- echo " maxlength=\"";
- echo twig_escape_filter($this->env, (isset($context["max_length"]) ? $context["max_length"] : $this->getContext($context, "max_length")), "html", null, true);
- echo "\"";
- }
- if ((isset($context["pattern"]) ? $context["pattern"] : $this->getContext($context, "pattern"))) {
- echo " pattern=\"";
- echo twig_escape_filter($this->env, (isset($context["pattern"]) ? $context["pattern"] : $this->getContext($context, "pattern")), "html", null, true);
- echo "\"";
- }
- // line 309
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")));
- foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
- if (twig_in_filter((isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), array(0 => "placeholder", 1 => "title"))) {
- echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
- echo "=\"";
- echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans((isset($context["attrvalue"]) ? $context["attrvalue"] : $this->getContext($context, "attrvalue")), array(), (isset($context["translation_domain"]) ? $context["translation_domain"] : $this->getContext($context, "translation_domain"))), "html", null, true);
- echo "\" ";
- } else {
- echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
- echo "=\"";
- echo twig_escape_filter($this->env, (isset($context["attrvalue"]) ? $context["attrvalue"] : $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((isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"))))) {
- echo "id=\"";
- echo twig_escape_filter($this->env, (isset($context["id"]) ? $context["id"] : $this->getContext($context, "id")), "html", null, true);
- echo "\" ";
- }
- // line 316
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")));
- foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
- echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
- echo "=\"";
- echo twig_escape_filter($this->env, (isset($context["attrvalue"]) ? $context["attrvalue"] : $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,