PageRenderTime 273ms CodeModel.GetById 142ms app.highlight 91ms RepoModel.GetById 22ms app.codeStats 1ms

/app/cache/dev/twig/5f/b3/dc57bade89249b099cd00b3b2d209d0425f9d6800f14fdc95240ee8324bc.php

https://gitlab.com/Jlb/jlbdigitalserviceswebsiteproject
PHP | 1100 lines | 768 code | 48 blank | 284 comment | 64 complexity | 09fbfac3528aee38978baa7ab4269cc3 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1<?php
   2
   3/* form_div_layout.html.twig */
   4class __TwigTemplate_5fb3dc57bade89249b099cd00b3b2d209d0425f9d6800f14fdc95240ee8324bc extends Twig_Template
   5{
   6    public function __construct(Twig_Environment $env)
   7    {
   8        parent::__construct($env);
   9
  10        $this->parent = false;
  11
  12        $this->blocks = array(
  13            'form_widget' => array($this, 'block_form_widget'),
  14            'form_widget_simple' => array($this, 'block_form_widget_simple'),
  15            'form_widget_compound' => array($this, 'block_form_widget_compound'),
  16            'collection_widget' => array($this, 'block_collection_widget'),
  17            'textarea_widget' => array($this, 'block_textarea_widget'),
  18            'choice_widget' => array($this, 'block_choice_widget'),
  19            'choice_widget_expanded' => array($this, 'block_choice_widget_expanded'),
  20            'choice_widget_collapsed' => array($this, 'block_choice_widget_collapsed'),
  21            'choice_widget_options' => array($this, 'block_choice_widget_options'),
  22            'checkbox_widget' => array($this, 'block_checkbox_widget'),
  23            'radio_widget' => array($this, 'block_radio_widget'),
  24            'datetime_widget' => array($this, 'block_datetime_widget'),
  25            'date_widget' => array($this, 'block_date_widget'),
  26            'time_widget' => array($this, 'block_time_widget'),
  27            'number_widget' => array($this, 'block_number_widget'),
  28            'integer_widget' => array($this, 'block_integer_widget'),
  29            'money_widget' => array($this, 'block_money_widget'),
  30            'url_widget' => array($this, 'block_url_widget'),
  31            'search_widget' => array($this, 'block_search_widget'),
  32            'percent_widget' => array($this, 'block_percent_widget'),
  33            'password_widget' => array($this, 'block_password_widget'),
  34            'hidden_widget' => array($this, 'block_hidden_widget'),
  35            'email_widget' => array($this, 'block_email_widget'),
  36            'button_widget' => array($this, 'block_button_widget'),
  37            'submit_widget' => array($this, 'block_submit_widget'),
  38            'reset_widget' => array($this, 'block_reset_widget'),
  39            'form_label' => array($this, 'block_form_label'),
  40            'button_label' => array($this, 'block_button_label'),
  41            'repeated_row' => array($this, 'block_repeated_row'),
  42            'form_row' => array($this, 'block_form_row'),
  43            'button_row' => array($this, 'block_button_row'),
  44            'hidden_row' => array($this, 'block_hidden_row'),
  45            'form' => array($this, 'block_form'),
  46            'form_start' => array($this, 'block_form_start'),
  47            'form_end' => array($this, 'block_form_end'),
  48            'form_enctype' => array($this, 'block_form_enctype'),
  49            'form_errors' => array($this, 'block_form_errors'),
  50            'form_rest' => array($this, 'block_form_rest'),
  51            'form_rows' => array($this, 'block_form_rows'),
  52            'widget_attributes' => array($this, 'block_widget_attributes'),
  53            'widget_container_attributes' => array($this, 'block_widget_container_attributes'),
  54            'button_attributes' => array($this, 'block_button_attributes'),
  55        );
  56    }
  57
  58    protected function doDisplay(array $context, array $blocks = array())
  59    {
  60        // line 2
  61        echo "
  62";
  63        // line 3
  64        $this->displayBlock('form_widget', $context, $blocks);
  65        // line 10
  66        echo "
  67";
  68        // line 11
  69        $this->displayBlock('form_widget_simple', $context, $blocks);
  70        // line 15
  71        echo "
  72";
  73        // line 16
  74        $this->displayBlock('form_widget_compound', $context, $blocks);
  75        // line 25
  76        echo "
  77";
  78        // line 26
  79        $this->displayBlock('collection_widget', $context, $blocks);
  80        // line 32
  81        echo "
  82";
  83        // line 33
  84        $this->displayBlock('textarea_widget', $context, $blocks);
  85        // line 36
  86        echo "
  87";
  88        // line 37
  89        $this->displayBlock('choice_widget', $context, $blocks);
  90        // line 44
  91        echo "
  92";
  93        // line 45
  94        $this->displayBlock('choice_widget_expanded', $context, $blocks);
  95        // line 53
  96        echo "
  97";
  98        // line 54
  99        $this->displayBlock('choice_widget_collapsed', $context, $blocks);
 100        // line 73
 101        echo "
 102";
 103        // line 74
 104        $this->displayBlock('choice_widget_options', $context, $blocks);
 105        // line 86
 106        echo "
 107";
 108        // line 87
 109        $this->displayBlock('checkbox_widget', $context, $blocks);
 110        // line 90
 111        echo "
 112";
 113        // line 91
 114        $this->displayBlock('radio_widget', $context, $blocks);
 115        // line 94
 116        echo "
 117";
 118        // line 95
 119        $this->displayBlock('datetime_widget', $context, $blocks);
 120        // line 107
 121        echo "
 122";
 123        // line 108
 124        $this->displayBlock('date_widget', $context, $blocks);
 125        // line 121
 126        echo "
 127";
 128        // line 122
 129        $this->displayBlock('time_widget', $context, $blocks);
 130        // line 132
 131        echo "
 132";
 133        // line 133
 134        $this->displayBlock('number_widget', $context, $blocks);
 135        // line 138
 136        echo "
 137";
 138        // line 139
 139        $this->displayBlock('integer_widget', $context, $blocks);
 140        // line 143
 141        echo "
 142";
 143        // line 144
 144        $this->displayBlock('money_widget', $context, $blocks);
 145        // line 147
 146        echo "
 147";
 148        // line 148
 149        $this->displayBlock('url_widget', $context, $blocks);
 150        // line 152
 151        echo "
 152";
 153        // line 153
 154        $this->displayBlock('search_widget', $context, $blocks);
 155        // line 157
 156        echo "
 157";
 158        // line 158
 159        $this->displayBlock('percent_widget', $context, $blocks);
 160        // line 162
 161        echo "
 162";
 163        // line 163
 164        $this->displayBlock('password_widget', $context, $blocks);
 165        // line 167
 166        echo "
 167";
 168        // line 168
 169        $this->displayBlock('hidden_widget', $context, $blocks);
 170        // line 173
 171        $this->displayBlock('email_widget', $context, $blocks);
 172        // line 177
 173        echo "
 174";
 175        // line 178
 176        $this->displayBlock('button_widget', $context, $blocks);
 177        // line 184
 178        echo "
 179";
 180        // line 185
 181        $this->displayBlock('submit_widget', $context, $blocks);
 182        // line 189
 183        echo "
 184";
 185        // line 190
 186        $this->displayBlock('reset_widget', $context, $blocks);
 187        // line 194
 188        echo "
 189";
 190        // line 196
 191        echo "
 192";
 193        // line 197
 194        $this->displayBlock('form_label', $context, $blocks);
 195        // line 211
 196        echo "
 197";
 198        // line 212
 199        $this->displayBlock('button_label', $context, $blocks);
 200        // line 213
 201        echo "
 202";
 203        // line 215
 204        echo "
 205";
 206        // line 216
 207        $this->displayBlock('repeated_row', $context, $blocks);
 208        // line 223
 209        echo "
 210";
 211        // line 224
 212        $this->displayBlock('form_row', $context, $blocks);
 213        // line 231
 214        echo "
 215";
 216        // line 232
 217        $this->displayBlock('button_row', $context, $blocks);
 218        // line 237
 219        echo "
 220";
 221        // line 238
 222        $this->displayBlock('hidden_row', $context, $blocks);
 223        // line 241
 224        echo "
 225";
 226        // line 243
 227        echo "
 228";
 229        // line 244
 230        $this->displayBlock('form', $context, $blocks);
 231        // line 249
 232        echo "
 233";
 234        // line 250
 235        $this->displayBlock('form_start', $context, $blocks);
 236        // line 262
 237        echo "
 238";
 239        // line 263
 240        $this->displayBlock('form_end', $context, $blocks);
 241        // line 269
 242        echo "
 243";
 244        // line 270
 245        $this->displayBlock('form_enctype', $context, $blocks);
 246        // line 273
 247        echo "
 248";
 249        // line 274
 250        $this->displayBlock('form_errors', $context, $blocks);
 251        // line 283
 252        echo "
 253";
 254        // line 284
 255        $this->displayBlock('form_rest', $context, $blocks);
 256        // line 291
 257        echo "
 258";
 259        // line 293
 260        echo "
 261";
 262        // line 294
 263        $this->displayBlock('form_rows', $context, $blocks);
 264        // line 299
 265        echo "
 266";
 267        // line 300
 268        $this->displayBlock('widget_attributes', $context, $blocks);
 269        // line 316
 270        echo "
 271";
 272        // line 317
 273        $this->displayBlock('widget_container_attributes', $context, $blocks);
 274        // line 330
 275        echo "
 276";
 277        // line 331
 278        $this->displayBlock('button_attributes', $context, $blocks);
 279    }
 280
 281    // line 3
 282    public function block_form_widget($context, array $blocks = array())
 283    {
 284        // line 4
 285        if ((isset($context["compound"]) ? $context["compound"] : $this->getContext($context, "compound"))) {
 286            // line 5
 287            $this->displayBlock("form_widget_compound", $context, $blocks);
 288        } else {
 289            // line 7
 290            $this->displayBlock("form_widget_simple", $context, $blocks);
 291        }
 292    }
 293
 294    // line 11
 295    public function block_form_widget_simple($context, array $blocks = array())
 296    {
 297        // line 12
 298        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "text")) : ("text"));
 299        // line 13
 300        echo "<input type=\"";
 301        echo twig_escape_filter($this->env, (isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "html", null, true);
 302        echo "\" ";
 303        $this->displayBlock("widget_attributes", $context, $blocks);
 304        echo " ";
 305        if ((!twig_test_empty((isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))))) {
 306            echo "value=\"";
 307            echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
 308            echo "\" ";
 309        }
 310        echo "/>";
 311    }
 312
 313    // line 16
 314    public function block_form_widget_compound($context, array $blocks = array())
 315    {
 316        // line 17
 317        echo "<div ";
 318        $this->displayBlock("widget_container_attributes", $context, $blocks);
 319        echo ">";
 320        // line 18
 321        if (twig_test_empty($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "parent"))) {
 322            // line 19
 323            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'errors');
 324        }
 325        // line 21
 326        $this->displayBlock("form_rows", $context, $blocks);
 327        // line 22
 328        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'rest');
 329        // line 23
 330        echo "</div>";
 331    }
 332
 333    // line 26
 334    public function block_collection_widget($context, array $blocks = array())
 335    {
 336        // line 27
 337        if (array_key_exists("prototype", $context)) {
 338            // line 28
 339            $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')));
 340        }
 341        // line 30
 342        $this->displayBlock("form_widget", $context, $blocks);
 343    }
 344
 345    // line 33
 346    public function block_textarea_widget($context, array $blocks = array())
 347    {
 348        // line 34
 349        echo "<textarea ";
 350        $this->displayBlock("widget_attributes", $context, $blocks);
 351        echo ">";
 352        echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
 353        echo "</textarea>";
 354    }
 355
 356    // line 37
 357    public function block_choice_widget($context, array $blocks = array())
 358    {
 359        // line 38
 360        if ((isset($context["expanded"]) ? $context["expanded"] : $this->getContext($context, "expanded"))) {
 361            // line 39
 362            $this->displayBlock("choice_widget_expanded", $context, $blocks);
 363        } else {
 364            // line 41
 365            $this->displayBlock("choice_widget_collapsed", $context, $blocks);
 366        }
 367    }
 368
 369    // line 45
 370    public function block_choice_widget_expanded($context, array $blocks = array())
 371    {
 372        // line 46
 373        echo "<div ";
 374        $this->displayBlock("widget_container_attributes", $context, $blocks);
 375        echo ">";
 376        // line 47
 377        $context['_parent'] = (array) $context;
 378        $context['_seq'] = twig_ensure_traversable((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")));
 379        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
 380            // line 48
 381            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), 'widget');
 382            // line 49
 383            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), 'label');
 384        }
 385        $_parent = $context['_parent'];
 386        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
 387        $context = array_intersect_key($context, $_parent) + $_parent;
 388        // line 51
 389        echo "</div>
 390";
 391    }
 392
 393    // line 54
 394    public function block_choice_widget_collapsed($context, array $blocks = array())
 395    {
 396        // line 55
 397        if (((((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required")) && (null === (isset($context["empty_value"]) ? $context["empty_value"] : $this->getContext($context, "empty_value")))) && (!(isset($context["empty_value_in_choices"]) ? $context["empty_value_in_choices"] : $this->getContext($context, "empty_value_in_choices")))) && (!(isset($context["multiple"]) ? $context["multiple"] : $this->getContext($context, "multiple"))))) {
 398            // line 56
 399            $context["required"] = false;
 400        }
 401        // line 58
 402        echo "<select ";
 403        $this->displayBlock("widget_attributes", $context, $blocks);
 404        if ((isset($context["multiple"]) ? $context["multiple"] : $this->getContext($context, "multiple"))) {
 405            echo " multiple=\"multiple\"";
 406        }
 407        echo ">
 408        ";
 409        // line 59
 410        if ((!(null === (isset($context["empty_value"]) ? $context["empty_value"] : $this->getContext($context, "empty_value"))))) {
 411            // line 60
 412            echo "<option value=\"\"";
 413            if (((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required")) && twig_test_empty((isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"))))) {
 414                echo " selected=\"selected\"";
 415            }
 416            echo ">";
 417            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);
 418            echo "</option>";
 419        }
 420        // line 62
 421        if ((twig_length_filter($this->env, (isset($context["preferred_choices"]) ? $context["preferred_choices"] : $this->getContext($context, "preferred_choices"))) > 0)) {
 422            // line 63
 423            $context["options"] = (isset($context["preferred_choices"]) ? $context["preferred_choices"] : $this->getContext($context, "preferred_choices"));
 424            // line 64
 425            $this->displayBlock("choice_widget_options", $context, $blocks);
 426            // line 65
 427            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")))))) {
 428                // line 66
 429                echo "<option disabled=\"disabled\">";
 430                echo twig_escape_filter($this->env, (isset($context["separator"]) ? $context["separator"] : $this->getContext($context, "separator")), "html", null, true);
 431                echo "</option>";
 432            }
 433        }
 434        // line 69
 435        $context["options"] = (isset($context["choices"]) ? $context["choices"] : $this->getContext($context, "choices"));
 436        // line 70
 437        $this->displayBlock("choice_widget_options", $context, $blocks);
 438        // line 71
 439        echo "</select>";
 440    }
 441
 442    // line 74
 443    public function block_choice_widget_options($context, array $blocks = array())
 444    {
 445        // line 75
 446        $context['_parent'] = (array) $context;
 447        $context['_seq'] = twig_ensure_traversable((isset($context["options"]) ? $context["options"] : $this->getContext($context, "options")));
 448        $context['loop'] = array(
 449          'parent' => $context['_parent'],
 450          'index0' => 0,
 451          'index'  => 1,
 452          'first'  => true,
 453        );
 454        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
 455            $length = count($context['_seq']);
 456            $context['loop']['revindex0'] = $length - 1;
 457            $context['loop']['revindex'] = $length;
 458            $context['loop']['length'] = $length;
 459            $context['loop']['last'] = 1 === $length;
 460        }
 461        foreach ($context['_seq'] as $context["group_label"] => $context["choice"]) {
 462            // line 76
 463            if (twig_test_iterable((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")))) {
 464                // line 77
 465                echo "<optgroup label=\"";
 466                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);
 467                echo "\">
 468                ";
 469                // line 78
 470                $context["options"] = (isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice"));
 471                // line 79
 472                $this->displayBlock("choice_widget_options", $context, $blocks);
 473                // line 80
 474                echo "</optgroup>";
 475            } else {
 476                // line 82
 477                echo "<option value=\"";
 478                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")), "value"), "html", null, true);
 479                echo "\"";
 480                if ($this->env->getExtension('form')->isSelectedChoice((isset($context["choice"]) ? $context["choice"] : $this->getContext($context, "choice")), (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")))) {
 481                    echo " selected=\"selected\"";
 482                }
 483                echo ">";
 484                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);
 485                echo "</option>";
 486            }
 487            ++$context['loop']['index0'];
 488            ++$context['loop']['index'];
 489            $context['loop']['first'] = false;
 490            if (isset($context['loop']['length'])) {
 491                --$context['loop']['revindex0'];
 492                --$context['loop']['revindex'];
 493                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
 494            }
 495        }
 496        $_parent = $context['_parent'];
 497        unset($context['_seq'], $context['_iterated'], $context['group_label'], $context['choice'], $context['_parent'], $context['loop']);
 498        $context = array_intersect_key($context, $_parent) + $_parent;
 499    }
 500
 501    // line 87
 502    public function block_checkbox_widget($context, array $blocks = array())
 503    {
 504        // line 88
 505        echo "<input type=\"checkbox\" ";
 506        $this->displayBlock("widget_attributes", $context, $blocks);
 507        if (array_key_exists("value", $context)) {
 508            echo " value=\"";
 509            echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
 510            echo "\"";
 511        }
 512        if ((isset($context["checked"]) ? $context["checked"] : $this->getContext($context, "checked"))) {
 513            echo " checked=\"checked\"";
 514        }
 515        echo " />";
 516    }
 517
 518    // line 91
 519    public function block_radio_widget($context, array $blocks = array())
 520    {
 521        // line 92
 522        echo "<input type=\"radio\" ";
 523        $this->displayBlock("widget_attributes", $context, $blocks);
 524        if (array_key_exists("value", $context)) {
 525            echo " value=\"";
 526            echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
 527            echo "\"";
 528        }
 529        if ((isset($context["checked"]) ? $context["checked"] : $this->getContext($context, "checked"))) {
 530            echo " checked=\"checked\"";
 531        }
 532        echo " />";
 533    }
 534
 535    // line 95
 536    public function block_datetime_widget($context, array $blocks = array())
 537    {
 538        // line 96
 539        if (((isset($context["widget"]) ? $context["widget"] : $this->getContext($context, "widget")) == "single_text")) {
 540            // line 97
 541            $this->displayBlock("form_widget_simple", $context, $blocks);
 542        } else {
 543            // line 99
 544            echo "        <div ";
 545            $this->displayBlock("widget_container_attributes", $context, $blocks);
 546            echo ">";
 547            // line 100
 548            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "date"), 'errors');
 549            // line 101
 550            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "time"), 'errors');
 551            // line 102
 552            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "date"), 'widget');
 553            // line 103
 554            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "time"), 'widget');
 555            // line 104
 556            echo "</div>
 557    ";
 558        }
 559    }
 560
 561    // line 108
 562    public function block_date_widget($context, array $blocks = array())
 563    {
 564        // line 109
 565        if (((isset($context["widget"]) ? $context["widget"] : $this->getContext($context, "widget")) == "single_text")) {
 566            // line 110
 567            $this->displayBlock("form_widget_simple", $context, $blocks);
 568        } else {
 569            // line 112
 570            echo "<div ";
 571            $this->displayBlock("widget_container_attributes", $context, $blocks);
 572            echo ">";
 573            // line 113
 574            echo strtr((isset($context["date_pattern"]) ? $context["date_pattern"] : $this->getContext($context, "date_pattern")), array("{{ year }}" =>             // line 114
 575$this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "year"), 'widget'), "{{ month }}" =>             // line 115
 576$this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "month"), 'widget'), "{{ day }}" =>             // line 116
 577$this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "day"), 'widget')));
 578            // line 118
 579            echo "</div>";
 580        }
 581    }
 582
 583    // line 122
 584    public function block_time_widget($context, array $blocks = array())
 585    {
 586        // line 123
 587        if (((isset($context["widget"]) ? $context["widget"] : $this->getContext($context, "widget")) == "single_text")) {
 588            // line 124
 589            $this->displayBlock("form_widget_simple", $context, $blocks);
 590        } else {
 591            // line 126
 592            $context["vars"] = ((((isset($context["widget"]) ? $context["widget"] : $this->getContext($context, "widget")) == "text")) ? (array("attr" => array("size" => 1))) : (array()));
 593            // line 127
 594            echo "        <div ";
 595            $this->displayBlock("widget_container_attributes", $context, $blocks);
 596            echo ">
 597            ";
 598            // line 128
 599            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")));
 600            if ((isset($context["with_minutes"]) ? $context["with_minutes"] : $this->getContext($context, "with_minutes"))) {
 601                echo ":";
 602                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")));
 603            }
 604            if ((isset($context["with_seconds"]) ? $context["with_seconds"] : $this->getContext($context, "with_seconds"))) {
 605                echo ":";
 606                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")));
 607            }
 608            // line 129
 609            echo "        </div>";
 610        }
 611    }
 612
 613    // line 133
 614    public function block_number_widget($context, array $blocks = array())
 615    {
 616        // line 135
 617        echo "    ";
 618        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "text")) : ("text"));
 619        // line 136
 620        $this->displayBlock("form_widget_simple", $context, $blocks);
 621    }
 622
 623    // line 139
 624    public function block_integer_widget($context, array $blocks = array())
 625    {
 626        // line 140
 627        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "number")) : ("number"));
 628        // line 141
 629        $this->displayBlock("form_widget_simple", $context, $blocks);
 630    }
 631
 632    // line 144
 633    public function block_money_widget($context, array $blocks = array())
 634    {
 635        // line 145
 636        echo strtr((isset($context["money_pattern"]) ? $context["money_pattern"] : $this->getContext($context, "money_pattern")), array("{{ widget }}" => $this->renderBlock("form_widget_simple", $context, $blocks)));
 637    }
 638
 639    // line 148
 640    public function block_url_widget($context, array $blocks = array())
 641    {
 642        // line 149
 643        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "url")) : ("url"));
 644        // line 150
 645        $this->displayBlock("form_widget_simple", $context, $blocks);
 646    }
 647
 648    // line 153
 649    public function block_search_widget($context, array $blocks = array())
 650    {
 651        // line 154
 652        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "search")) : ("search"));
 653        // line 155
 654        $this->displayBlock("form_widget_simple", $context, $blocks);
 655    }
 656
 657    // line 158
 658    public function block_percent_widget($context, array $blocks = array())
 659    {
 660        // line 159
 661        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "text")) : ("text"));
 662        // line 160
 663        $this->displayBlock("form_widget_simple", $context, $blocks);
 664        echo "%";
 665    }
 666
 667    // line 163
 668    public function block_password_widget($context, array $blocks = array())
 669    {
 670        // line 164
 671        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "password")) : ("password"));
 672        // line 165
 673        echo "    ";
 674        $this->displayBlock("form_widget_simple", $context, $blocks);
 675    }
 676
 677    // line 168
 678    public function block_hidden_widget($context, array $blocks = array())
 679    {
 680        // line 169
 681        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "hidden")) : ("hidden"));
 682        // line 170
 683        $this->displayBlock("form_widget_simple", $context, $blocks);
 684    }
 685
 686    // line 173
 687    public function block_email_widget($context, array $blocks = array())
 688    {
 689        // line 174
 690        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "email")) : ("email"));
 691        // line 175
 692        $this->displayBlock("form_widget_simple", $context, $blocks);
 693    }
 694
 695    // line 178
 696    public function block_button_widget($context, array $blocks = array())
 697    {
 698        // line 179
 699        if (twig_test_empty((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")))) {
 700            // line 180
 701            $context["label"] = $this->env->getExtension('form')->humanize((isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")));
 702        }
 703        // line 182
 704        echo "<button type=\"";
 705        echo twig_escape_filter($this->env, ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "button")) : ("button")), "html", null, true);
 706        echo "\" ";
 707        $this->displayBlock("button_attributes", $context, $blocks);
 708        echo ">";
 709        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);
 710        echo "</button>";
 711    }
 712
 713    // line 185
 714    public function block_submit_widget($context, array $blocks = array())
 715    {
 716        // line 186
 717        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "submit")) : ("submit"));
 718        // line 187
 719        $this->displayBlock("button_widget", $context, $blocks);
 720    }
 721
 722    // line 190
 723    public function block_reset_widget($context, array $blocks = array())
 724    {
 725        // line 191
 726        $context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter((isset($context["type"]) ? $context["type"] : $this->getContext($context, "type")), "reset")) : ("reset"));
 727        // line 192
 728        $this->displayBlock("button_widget", $context, $blocks);
 729    }
 730
 731    // line 197
 732    public function block_form_label($context, array $blocks = array())
 733    {
 734        // line 198
 735        if ((!((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")) === false))) {
 736            // line 199
 737            if ((!(isset($context["compound"]) ? $context["compound"] : $this->getContext($context, "compound")))) {
 738                // line 200
 739                $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"))));
 740            }
 741            // line 202
 742            echo "        ";
 743            if ((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required"))) {
 744                // line 203
 745                $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"))));
 746            }
 747            // line 205
 748            echo "        ";
 749            if (twig_test_empty((isset($context["label"]) ? $context["label"] : $this->getContext($context, "label")))) {
 750                // line 206
 751                $context["label"] = $this->env->getExtension('form')->humanize((isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")));
 752            }
 753            // line 208
 754            echo "<label";
 755            $context['_parent'] = (array) $context;
 756            $context['_seq'] = twig_ensure_traversable((isset($context["label_attr"]) ? $context["label_attr"] : $this->getContext($context, "label_attr")));
 757            foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
 758                echo " ";
 759                echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
 760                echo "=\"";
 761                echo twig_escape_filter($this->env, (isset($context["attrvalue"]) ? $context["attrvalue"] : $this->getContext($context, "attrvalue")), "html", null, true);
 762                echo "\"";
 763            }
 764            $_parent = $context['_parent'];
 765            unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
 766            $context = array_intersect_key($context, $_parent) + $_parent;
 767            echo ">";
 768            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);
 769            echo "</label>";
 770        }
 771    }
 772
 773    // line 212
 774    public function block_button_label($context, array $blocks = array())
 775    {
 776    }
 777
 778    // line 216
 779    public function block_repeated_row($context, array $blocks = array())
 780    {
 781        // line 221
 782        $this->displayBlock("form_rows", $context, $blocks);
 783    }
 784
 785    // line 224
 786    public function block_form_row($context, array $blocks = array())
 787    {
 788        // line 225
 789        echo "<div>";
 790        // line 226
 791        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'label');
 792        // line 227
 793        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'errors');
 794        // line 228
 795        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'widget');
 796        // line 229
 797        echo "</div>";
 798    }
 799
 800    // line 232
 801    public function block_button_row($context, array $blocks = array())
 802    {
 803        // line 233
 804        echo "<div>";
 805        // line 234
 806        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'widget');
 807        // line 235
 808        echo "</div>";
 809    }
 810
 811    // line 238
 812    public function block_hidden_row($context, array $blocks = array())
 813    {
 814        // line 239
 815        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'widget');
 816    }
 817
 818    // line 244
 819    public function block_form($context, array $blocks = array())
 820    {
 821        // line 245
 822        echo         $this->env->getExtension('form')->renderer->renderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'form_start');
 823        // line 246
 824        echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'widget');
 825        // line 247
 826        echo         $this->env->getExtension('form')->renderer->renderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'form_end');
 827    }
 828
 829    // line 250
 830    public function block_form_start($context, array $blocks = array())
 831    {
 832        // line 251
 833        $context["method"] = twig_upper_filter($this->env, (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")));
 834        // line 252
 835        if (twig_in_filter((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), array(0 => "GET", 1 => "POST"))) {
 836            // line 253
 837            $context["form_method"] = (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"));
 838        } else {
 839            // line 255
 840            $context["form_method"] = "POST";
 841        }
 842        // line 257
 843        echo "<form name=\"";
 844        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), "vars"), "name"), "html", null, true);
 845        echo "\" method=\"";
 846        echo twig_escape_filter($this->env, twig_lower_filter($this->env, (isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method"))), "html", null, true);
 847        echo "\" action=\"";
 848        echo twig_escape_filter($this->env, (isset($context["action"]) ? $context["action"] : $this->getContext($context, "action")), "html", null, true);
 849        echo "\"";
 850        $context['_parent'] = (array) $context;
 851        $context['_seq'] = twig_ensure_traversable((isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")));
 852        foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
 853            echo " ";
 854            echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
 855            echo "=\"";
 856            echo twig_escape_filter($this->env, (isset($context["attrvalue"]) ? $context["attrvalue"] : $this->getContext($context, "attrvalue")), "html", null, true);
 857            echo "\"";
 858        }
 859        $_parent = $context['_parent'];
 860        unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
 861        $context = array_intersect_key($context, $_parent) + $_parent;
 862        if ((isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart"))) {
 863            echo " enctype=\"multipart/form-data\"";
 864        }
 865        echo ">";
 866        // line 258
 867        if (((isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")) != (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")))) {
 868            // line 259
 869            echo "<input type=\"hidden\" name=\"_method\" value=\"";
 870            echo twig_escape_filter($this->env, (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "html", null, true);
 871            echo "\" />";
 872        }
 873    }
 874
 875    // line 263
 876    public function block_form_end($context, array $blocks = array())
 877    {
 878        // line 264
 879        if (((!array_key_exists("render_rest", $context)) || (isset($context["render_rest"]) ? $context["render_rest"] : $this->getContext($context, "render_rest")))) {
 880            // line 265
 881            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'rest');
 882        }
 883        // line 267
 884        echo "</form>";
 885    }
 886
 887    // line 270
 888    public function block_form_enctype($context, array $blocks = array())
 889    {
 890        // line 271
 891        if ((isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart"))) {
 892            echo "enctype=\"multipart/form-data\"";
 893        }
 894    }
 895
 896    // line 274
 897    public function block_form_errors($context, array $blocks = array())
 898    {
 899        // line 275
 900        if ((twig_length_filter($this->env, (isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors"))) > 0)) {
 901            // line 276
 902            echo "<ul>";
 903            // line 277
 904            $context['_parent'] = (array) $context;
 905            $context['_seq'] = twig_ensure_traversable((isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors")));
 906            foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
 907                // line 278
 908                echo "<li>";
 909                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["error"]) ? $context["error"] : $this->getContext($context, "error")), "message"), "html", null, true);
 910                echo "</li>";
 911            }
 912            $_parent = $context['_parent'];
 913            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
 914            $context = array_intersect_key($context, $_parent) + $_parent;
 915            // line 280
 916            echo "</ul>";
 917        }
 918    }
 919
 920    // line 284
 921    public function block_form_rest($context, array $blocks = array())
 922    {
 923        // line 285
 924        $context['_parent'] = (array) $context;
 925        $context['_seq'] = twig_ensure_traversable((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")));
 926        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
 927            // line 286
 928            if ((!$this->getAttribute((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), "rendered"))) {
 929                // line 287
 930                echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), 'row');
 931            }
 932        }
 933        $_parent = $context['_parent'];
 934        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
 935        $context = array_intersect_key($context, $_parent) + $_parent;
 936    }
 937
 938    // line 294
 939    public function block_form_rows($context, array $blocks = array())
 940    {
 941        // line 295
 942        $context['_parent'] = (array) $context;
 943        $context['_seq'] = twig_ensure_traversable((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")));
 944        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
 945            // line 296
 946            echo $this->env->getExtension('form')->renderer->searchAndRenderBlock((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), 'row');
 947        }
 948        $_parent = $context['_parent'];
 949        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
 950        $context = array_intersect_key($context, $_parent) + $_parent;
 951    }
 952
 953    // line 300
 954    public function block_widget_attributes($context, array $blocks = array())
 955    {
 956        // line 301
 957        echo "id=\"";
 958        echo twig_escape_filter($this->env, (isset($context["id"]) ? $context["id"] : $this->getContext($context, "id")), "html", null, true);
 959        echo "\" name=\"";
 960        echo twig_escape_filter($this->env, (isset($context["full_name"]) ? $context["full_name"] : $this->getContext($context, "full_name")), "html", null, true);
 961        echo "\"";
 962        // line 302
 963        if ((isset($context["read_only"]) ? $context["read_only"] : $this->getContext($context, "read_only"))) {
 964            echo " readonly=\"readonly\"";
 965        }
 966        // line 303
 967        if ((isset($context["disabled"]) ? $context["disabled"] : $this->getContext($context, "disabled"))) {
 968            echo " disabled=\"disabled\"";
 969        }
 970        // line 304
 971        if ((isset($context["required"]) ? $context["required"] : $this->getContext($context, "required"))) {
 972            echo " required=\"required\"";
 973        }
 974        // line 305
 975        $context['_parent'] = (array) $context;
 976        $context['_seq'] = twig_ensure_traversable((isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")));
 977        foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
 978            // line 306
 979            echo " ";
 980            // line 307
 981            if (twig_in_filter((isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), array(0 => "placeholder", 1 => "title"))) {
 982                // line 308
 983                echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
 984                echo "=\"";
 985                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);
 986                echo "\"";
 987            } elseif (((isset($context["attrvalue"]) ? $context["attrvalue"] : $this->getContext($context, "attrvalue")) === true)) {
 988                // line 310
 989                echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
 990                echo "=\"";
 991                echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
 992                echo "\"";
 993            } elseif ((!((isset($context["attrvalue"]) ? $context["attrvalue"] : $this->getContext($context, "attrvalue")) === false))) {
 994                // line 312
 995                echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
 996                echo "=\"";
 997                echo twig_escape_filter($this->env, (isset($context["attrvalue"]) ? $context["attrvalue"] : $this->getContext($context, "attrvalue")), "html", null, true);
 998                echo "\"";
 999            }
1000        }
1001        $_parent = $context['_parent'];
1002        unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
1003        $context = array_intersect_key($context, $_parent) + $_parent;
1004    }
1005
1006    // line 317
1007    public function block_widget_container_attributes($context, array $blocks = array())
1008    {
1009        // line 318
1010        if ((!twig_test_empty((isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"))))) {
1011            echo "id=\"";
1012            echo twig_escape_filter($this->env, (isset($context["id"]) ? $context["id"] : $this->getContext($context, "id")), "html", null, true);
1013            echo "\"";
1014        }
1015        // line 319
1016        $context['_parent'] = (array) $context;
1017        $context['_seq'] = twig_ensure_traversable((isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")));
1018        foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
1019            // line 320
1020            echo " ";
1021            // line 321
1022            if (twig_in_filter((isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), array(0 => "placeholder", 1 => "title"))) {
1023                // line 322
1024                echo twig_escape_filter($this->env, (isset($context["attrname"]) ? $context["attrname"] : $this->getContext($context, "attrname")), "html", null, true);
1025                echo "=\"";
1026                echo twig_escape_filter($this->env, $this->env->g…

Large files files are truncated, but you can click here to view the full file