1152 lines
56 KiB
PHP
1152 lines
56 KiB
PHP
<?php
|
|
|
|
use Twig\Environment;
|
|
use Twig\Error\LoaderError;
|
|
use Twig\Error\RuntimeError;
|
|
use Twig\Markup;
|
|
use Twig\Sandbox\SecurityError;
|
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
|
use Twig\Source;
|
|
use Twig\Template;
|
|
|
|
/* form_div_layout.html.twig */
|
|
class __TwigTemplate_e776eabebd0115e7db1871bfd5035c7bc13379270da1781a458b378acc331278 extends \Twig\Template
|
|
{
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
$this->parent = false;
|
|
|
|
$this->blocks = [
|
|
'form_widget' => [$this, 'block_form_widget'],
|
|
'form_widget_simple' => [$this, 'block_form_widget_simple'],
|
|
'form_widget_compound' => [$this, 'block_form_widget_compound'],
|
|
'collection_widget' => [$this, 'block_collection_widget'],
|
|
'textarea_widget' => [$this, 'block_textarea_widget'],
|
|
'choice_widget' => [$this, 'block_choice_widget'],
|
|
'choice_widget_expanded' => [$this, 'block_choice_widget_expanded'],
|
|
'choice_widget_collapsed' => [$this, 'block_choice_widget_collapsed'],
|
|
'choice_widget_options' => [$this, 'block_choice_widget_options'],
|
|
'checkbox_widget' => [$this, 'block_checkbox_widget'],
|
|
'radio_widget' => [$this, 'block_radio_widget'],
|
|
'datetime_widget' => [$this, 'block_datetime_widget'],
|
|
'date_widget' => [$this, 'block_date_widget'],
|
|
'time_widget' => [$this, 'block_time_widget'],
|
|
'dateinterval_widget' => [$this, 'block_dateinterval_widget'],
|
|
'number_widget' => [$this, 'block_number_widget'],
|
|
'integer_widget' => [$this, 'block_integer_widget'],
|
|
'money_widget' => [$this, 'block_money_widget'],
|
|
'url_widget' => [$this, 'block_url_widget'],
|
|
'search_widget' => [$this, 'block_search_widget'],
|
|
'percent_widget' => [$this, 'block_percent_widget'],
|
|
'password_widget' => [$this, 'block_password_widget'],
|
|
'hidden_widget' => [$this, 'block_hidden_widget'],
|
|
'email_widget' => [$this, 'block_email_widget'],
|
|
'range_widget' => [$this, 'block_range_widget'],
|
|
'button_widget' => [$this, 'block_button_widget'],
|
|
'submit_widget' => [$this, 'block_submit_widget'],
|
|
'reset_widget' => [$this, 'block_reset_widget'],
|
|
'tel_widget' => [$this, 'block_tel_widget'],
|
|
'color_widget' => [$this, 'block_color_widget'],
|
|
'form_label' => [$this, 'block_form_label'],
|
|
'button_label' => [$this, 'block_button_label'],
|
|
'repeated_row' => [$this, 'block_repeated_row'],
|
|
'form_row' => [$this, 'block_form_row'],
|
|
'button_row' => [$this, 'block_button_row'],
|
|
'hidden_row' => [$this, 'block_hidden_row'],
|
|
'form' => [$this, 'block_form'],
|
|
'form_start' => [$this, 'block_form_start'],
|
|
'form_end' => [$this, 'block_form_end'],
|
|
'form_errors' => [$this, 'block_form_errors'],
|
|
'form_rest' => [$this, 'block_form_rest'],
|
|
'form_rows' => [$this, 'block_form_rows'],
|
|
'widget_attributes' => [$this, 'block_widget_attributes'],
|
|
'widget_container_attributes' => [$this, 'block_widget_container_attributes'],
|
|
'button_attributes' => [$this, 'block_button_attributes'],
|
|
'attributes' => [$this, 'block_attributes'],
|
|
];
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = [])
|
|
{
|
|
// line 3
|
|
$this->displayBlock('form_widget', $context, $blocks);
|
|
// line 11
|
|
$this->displayBlock('form_widget_simple', $context, $blocks);
|
|
// line 16
|
|
$this->displayBlock('form_widget_compound', $context, $blocks);
|
|
// line 26
|
|
$this->displayBlock('collection_widget', $context, $blocks);
|
|
// line 33
|
|
$this->displayBlock('textarea_widget', $context, $blocks);
|
|
// line 37
|
|
$this->displayBlock('choice_widget', $context, $blocks);
|
|
// line 45
|
|
$this->displayBlock('choice_widget_expanded', $context, $blocks);
|
|
// line 54
|
|
$this->displayBlock('choice_widget_collapsed', $context, $blocks);
|
|
// line 74
|
|
$this->displayBlock('choice_widget_options', $context, $blocks);
|
|
// line 87
|
|
$this->displayBlock('checkbox_widget', $context, $blocks);
|
|
// line 91
|
|
$this->displayBlock('radio_widget', $context, $blocks);
|
|
// line 95
|
|
$this->displayBlock('datetime_widget', $context, $blocks);
|
|
// line 108
|
|
$this->displayBlock('date_widget', $context, $blocks);
|
|
// line 122
|
|
$this->displayBlock('time_widget', $context, $blocks);
|
|
// line 133
|
|
$this->displayBlock('dateinterval_widget', $context, $blocks);
|
|
// line 168
|
|
$this->displayBlock('number_widget', $context, $blocks);
|
|
// line 174
|
|
$this->displayBlock('integer_widget', $context, $blocks);
|
|
// line 179
|
|
$this->displayBlock('money_widget', $context, $blocks);
|
|
// line 183
|
|
$this->displayBlock('url_widget', $context, $blocks);
|
|
// line 188
|
|
$this->displayBlock('search_widget', $context, $blocks);
|
|
// line 193
|
|
$this->displayBlock('percent_widget', $context, $blocks);
|
|
// line 198
|
|
$this->displayBlock('password_widget', $context, $blocks);
|
|
// line 203
|
|
$this->displayBlock('hidden_widget', $context, $blocks);
|
|
// line 208
|
|
$this->displayBlock('email_widget', $context, $blocks);
|
|
// line 213
|
|
$this->displayBlock('range_widget', $context, $blocks);
|
|
// line 218
|
|
$this->displayBlock('button_widget', $context, $blocks);
|
|
// line 234
|
|
$this->displayBlock('submit_widget', $context, $blocks);
|
|
// line 239
|
|
$this->displayBlock('reset_widget', $context, $blocks);
|
|
// line 244
|
|
$this->displayBlock('tel_widget', $context, $blocks);
|
|
// line 249
|
|
$this->displayBlock('color_widget', $context, $blocks);
|
|
// line 256
|
|
$this->displayBlock('form_label', $context, $blocks);
|
|
// line 284
|
|
$this->displayBlock('button_label', $context, $blocks);
|
|
// line 288
|
|
$this->displayBlock('repeated_row', $context, $blocks);
|
|
// line 296
|
|
$this->displayBlock('form_row', $context, $blocks);
|
|
// line 304
|
|
$this->displayBlock('button_row', $context, $blocks);
|
|
// line 310
|
|
$this->displayBlock('hidden_row', $context, $blocks);
|
|
// line 316
|
|
$this->displayBlock('form', $context, $blocks);
|
|
// line 322
|
|
$this->displayBlock('form_start', $context, $blocks);
|
|
// line 336
|
|
$this->displayBlock('form_end', $context, $blocks);
|
|
// line 343
|
|
$this->displayBlock('form_errors', $context, $blocks);
|
|
// line 353
|
|
$this->displayBlock('form_rest', $context, $blocks);
|
|
// line 374
|
|
echo "
|
|
";
|
|
// line 377
|
|
$this->displayBlock('form_rows', $context, $blocks);
|
|
// line 383
|
|
$this->displayBlock('widget_attributes', $context, $blocks);
|
|
// line 390
|
|
$this->displayBlock('widget_container_attributes', $context, $blocks);
|
|
// line 395
|
|
$this->displayBlock('button_attributes', $context, $blocks);
|
|
// line 400
|
|
$this->displayBlock('attributes', $context, $blocks);
|
|
}
|
|
|
|
// line 3
|
|
public function block_form_widget($context, array $blocks = [])
|
|
{
|
|
// line 4
|
|
if (($context["compound"] ?? null)) {
|
|
// line 5
|
|
$this->displayBlock("form_widget_compound", $context, $blocks);
|
|
} else {
|
|
// line 7
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
}
|
|
|
|
// line 11
|
|
public function block_form_widget_simple($context, array $blocks = [])
|
|
{
|
|
// line 12
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
|
|
// line 13
|
|
echo "<input type=\"";
|
|
echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
|
|
echo "\" ";
|
|
$this->displayBlock("widget_attributes", $context, $blocks);
|
|
echo " ";
|
|
if ( !twig_test_empty(($context["value"] ?? null))) {
|
|
echo "value=\"";
|
|
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
|
|
echo "\" ";
|
|
}
|
|
echo "/>";
|
|
}
|
|
|
|
// line 16
|
|
public function block_form_widget_compound($context, array $blocks = [])
|
|
{
|
|
// line 17
|
|
echo "<div ";
|
|
$this->displayBlock("widget_container_attributes", $context, $blocks);
|
|
echo ">";
|
|
// line 18
|
|
if (Symfony\Bridge\Twig\Extension\twig_is_root_form(($context["form"] ?? null))) {
|
|
// line 19
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
|
|
}
|
|
// line 21
|
|
$this->displayBlock("form_rows", $context, $blocks);
|
|
// line 22
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
|
|
// line 23
|
|
echo "</div>";
|
|
}
|
|
|
|
// line 26
|
|
public function block_collection_widget($context, array $blocks = [])
|
|
{
|
|
// line 27
|
|
if (((isset($context["prototype"]) || array_key_exists("prototype", $context)) && !$this->getAttribute(($context["prototype"] ?? null), "rendered", []))) {
|
|
// line 28
|
|
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["data-prototype" => $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["prototype"] ?? null), 'row')]);
|
|
}
|
|
// line 30
|
|
$this->displayBlock("form_widget", $context, $blocks);
|
|
}
|
|
|
|
// line 33
|
|
public function block_textarea_widget($context, array $blocks = [])
|
|
{
|
|
// line 34
|
|
echo "<textarea ";
|
|
$this->displayBlock("widget_attributes", $context, $blocks);
|
|
echo ">";
|
|
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
|
|
echo "</textarea>";
|
|
}
|
|
|
|
// line 37
|
|
public function block_choice_widget($context, array $blocks = [])
|
|
{
|
|
// line 38
|
|
if (($context["expanded"] ?? null)) {
|
|
// line 39
|
|
$this->displayBlock("choice_widget_expanded", $context, $blocks);
|
|
} else {
|
|
// line 41
|
|
$this->displayBlock("choice_widget_collapsed", $context, $blocks);
|
|
}
|
|
}
|
|
|
|
// line 45
|
|
public function block_choice_widget_expanded($context, array $blocks = [])
|
|
{
|
|
// line 46
|
|
echo "<div ";
|
|
$this->displayBlock("widget_container_attributes", $context, $blocks);
|
|
echo ">";
|
|
// line 47
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
|
|
// line 48
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
|
|
// line 49
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'label', ["translation_domain" => ($context["choice_translation_domain"] ?? null)]);
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 51
|
|
echo "</div>";
|
|
}
|
|
|
|
// line 54
|
|
public function block_choice_widget_collapsed($context, array $blocks = [])
|
|
{
|
|
// line 55
|
|
if (((((($context["required"] ?? null) && (null === ($context["placeholder"] ?? null))) && !($context["placeholder_in_choices"] ?? null)) && !($context["multiple"] ?? null)) && ( !$this->getAttribute(($context["attr"] ?? null), "size", [], "any", true, true) || ($this->getAttribute(($context["attr"] ?? null), "size", []) <= 1)))) {
|
|
// line 56
|
|
$context["required"] = false;
|
|
}
|
|
// line 58
|
|
echo "<select ";
|
|
$this->displayBlock("widget_attributes", $context, $blocks);
|
|
if (($context["multiple"] ?? null)) {
|
|
echo " multiple=\"multiple\"";
|
|
}
|
|
echo ">";
|
|
// line 59
|
|
if ( !(null === ($context["placeholder"] ?? null))) {
|
|
// line 60
|
|
echo "<option value=\"\"";
|
|
if ((($context["required"] ?? null) && twig_test_empty(($context["value"] ?? null)))) {
|
|
echo " selected=\"selected\"";
|
|
}
|
|
echo ">";
|
|
echo twig_escape_filter($this->env, (((($context["placeholder"] ?? null) != "")) ? ((((($context["translation_domain"] ?? null) === false)) ? (($context["placeholder"] ?? null)) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["placeholder"] ?? null), [], ($context["translation_domain"] ?? null))))) : ("")), "html", null, true);
|
|
echo "</option>";
|
|
}
|
|
// line 62
|
|
if ((twig_length_filter($this->env, ($context["preferred_choices"] ?? null)) > 0)) {
|
|
// line 63
|
|
$context["options"] = ($context["preferred_choices"] ?? null);
|
|
// line 64
|
|
$this->displayBlock("choice_widget_options", $context, $blocks);
|
|
// line 65
|
|
if (((twig_length_filter($this->env, ($context["choices"] ?? null)) > 0) && !(null === ($context["separator"] ?? null)))) {
|
|
// line 66
|
|
echo "<option disabled=\"disabled\">";
|
|
echo twig_escape_filter($this->env, ($context["separator"] ?? null), "html", null, true);
|
|
echo "</option>";
|
|
}
|
|
}
|
|
// line 69
|
|
$context["options"] = ($context["choices"] ?? null);
|
|
// line 70
|
|
$this->displayBlock("choice_widget_options", $context, $blocks);
|
|
// line 71
|
|
echo "</select>";
|
|
}
|
|
|
|
// line 74
|
|
public function block_choice_widget_options($context, array $blocks = [])
|
|
{
|
|
// line 75
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(($context["options"] ?? null));
|
|
$context['loop'] = [
|
|
'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 76
|
|
if (twig_test_iterable($context["choice"])) {
|
|
// line 77
|
|
echo "<optgroup label=\"";
|
|
echo twig_escape_filter($this->env, (((($context["choice_translation_domain"] ?? null) === false)) ? ($context["group_label"]) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($context["group_label"], [], ($context["choice_translation_domain"] ?? null)))), "html", null, true);
|
|
echo "\">
|
|
";
|
|
// line 78
|
|
$context["options"] = $context["choice"];
|
|
// line 79
|
|
$this->displayBlock("choice_widget_options", $context, $blocks);
|
|
// line 80
|
|
echo "</optgroup>";
|
|
} else {
|
|
// line 82
|
|
echo "<option value=\"";
|
|
echo twig_escape_filter($this->env, $this->getAttribute($context["choice"], "value", []), "html", null, true);
|
|
echo "\"";
|
|
if ($this->getAttribute($context["choice"], "attr", [])) {
|
|
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ["attr" => $this->getAttribute($context["choice"], "attr", [])];
|
|
if ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof \Traversable) {
|
|
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = iterator_to_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4);
|
|
}
|
|
if (!is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a hash.');
|
|
}
|
|
$context['_parent'] = $context;
|
|
$context = array_merge($context, $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4);
|
|
$this->displayBlock("attributes", $context, $blocks);
|
|
$context = $context['_parent'];
|
|
}
|
|
if (Symfony\Bridge\Twig\Extension\twig_is_selected_choice($context["choice"], ($context["value"] ?? null))) {
|
|
echo " selected=\"selected\"";
|
|
}
|
|
echo ">";
|
|
echo twig_escape_filter($this->env, (((($context["choice_translation_domain"] ?? null) === false)) ? ($this->getAttribute($context["choice"], "label", [])) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute($context["choice"], "label", []), [], ($context["choice_translation_domain"] ?? null)))), "html", null, true);
|
|
echo "</option>";
|
|
}
|
|
++$context['loop']['index0'];
|
|
++$context['loop']['index'];
|
|
$context['loop']['first'] = false;
|
|
if (isset($context['loop']['length'])) {
|
|
--$context['loop']['revindex0'];
|
|
--$context['loop']['revindex'];
|
|
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
|
|
}
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['group_label'], $context['choice'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
}
|
|
|
|
// line 87
|
|
public function block_checkbox_widget($context, array $blocks = [])
|
|
{
|
|
// line 88
|
|
echo "<input type=\"checkbox\" ";
|
|
$this->displayBlock("widget_attributes", $context, $blocks);
|
|
if ((isset($context["value"]) || array_key_exists("value", $context))) {
|
|
echo " value=\"";
|
|
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
|
|
echo "\"";
|
|
}
|
|
if (($context["checked"] ?? null)) {
|
|
echo " checked=\"checked\"";
|
|
}
|
|
echo " />";
|
|
}
|
|
|
|
// line 91
|
|
public function block_radio_widget($context, array $blocks = [])
|
|
{
|
|
// line 92
|
|
echo "<input type=\"radio\" ";
|
|
$this->displayBlock("widget_attributes", $context, $blocks);
|
|
if ((isset($context["value"]) || array_key_exists("value", $context))) {
|
|
echo " value=\"";
|
|
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
|
|
echo "\"";
|
|
}
|
|
if (($context["checked"] ?? null)) {
|
|
echo " checked=\"checked\"";
|
|
}
|
|
echo " />";
|
|
}
|
|
|
|
// line 95
|
|
public function block_datetime_widget($context, array $blocks = [])
|
|
{
|
|
// line 96
|
|
if ((($context["widget"] ?? null) == "single_text")) {
|
|
// line 97
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
} else {
|
|
// line 99
|
|
echo "<div ";
|
|
$this->displayBlock("widget_container_attributes", $context, $blocks);
|
|
echo ">";
|
|
// line 100
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "date", []), 'errors');
|
|
// line 101
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "time", []), 'errors');
|
|
// line 102
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "date", []), 'widget');
|
|
// line 103
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "time", []), 'widget');
|
|
// line 104
|
|
echo "</div>";
|
|
}
|
|
}
|
|
|
|
// line 108
|
|
public function block_date_widget($context, array $blocks = [])
|
|
{
|
|
// line 109
|
|
if ((($context["widget"] ?? null) == "single_text")) {
|
|
// line 110
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
} else {
|
|
// line 112
|
|
echo "<div ";
|
|
$this->displayBlock("widget_container_attributes", $context, $blocks);
|
|
echo ">";
|
|
// line 113
|
|
echo twig_replace_filter(($context["date_pattern"] ?? null), ["{{ year }}" => // line 114
|
|
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "year", []), 'widget'), "{{ month }}" => // line 115
|
|
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "month", []), 'widget'), "{{ day }}" => // line 116
|
|
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "day", []), 'widget')]);
|
|
// line 118
|
|
echo "</div>";
|
|
}
|
|
}
|
|
|
|
// line 122
|
|
public function block_time_widget($context, array $blocks = [])
|
|
{
|
|
// line 123
|
|
if ((($context["widget"] ?? null) == "single_text")) {
|
|
// line 124
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
} else {
|
|
// line 126
|
|
$context["vars"] = (((($context["widget"] ?? null) == "text")) ? (["attr" => ["size" => 1]]) : ([]));
|
|
// line 127
|
|
echo "<div ";
|
|
$this->displayBlock("widget_container_attributes", $context, $blocks);
|
|
echo ">
|
|
";
|
|
// line 128
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "hour", []), 'widget', ($context["vars"] ?? null));
|
|
if (($context["with_minutes"] ?? null)) {
|
|
echo ":";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "minute", []), 'widget', ($context["vars"] ?? null));
|
|
}
|
|
if (($context["with_seconds"] ?? null)) {
|
|
echo ":";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "second", []), 'widget', ($context["vars"] ?? null));
|
|
}
|
|
// line 129
|
|
echo " </div>";
|
|
}
|
|
}
|
|
|
|
// line 133
|
|
public function block_dateinterval_widget($context, array $blocks = [])
|
|
{
|
|
// line 134
|
|
if ((($context["widget"] ?? null) == "single_text")) {
|
|
// line 135
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
} else {
|
|
// line 137
|
|
echo "<div ";
|
|
$this->displayBlock("widget_container_attributes", $context, $blocks);
|
|
echo ">";
|
|
// line 138
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
|
|
// line 139
|
|
echo "<table class=\"";
|
|
echo twig_escape_filter($this->env, (((isset($context["table_class"]) || array_key_exists("table_class", $context))) ? (_twig_default_filter(($context["table_class"] ?? null), "")) : ("")), "html", null, true);
|
|
echo "\" role=\"presentation\">
|
|
<thead>
|
|
<tr>";
|
|
// line 142
|
|
if (($context["with_years"] ?? null)) {
|
|
echo "<th>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "years", []), 'label');
|
|
echo "</th>";
|
|
}
|
|
// line 143
|
|
if (($context["with_months"] ?? null)) {
|
|
echo "<th>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "months", []), 'label');
|
|
echo "</th>";
|
|
}
|
|
// line 144
|
|
if (($context["with_weeks"] ?? null)) {
|
|
echo "<th>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "weeks", []), 'label');
|
|
echo "</th>";
|
|
}
|
|
// line 145
|
|
if (($context["with_days"] ?? null)) {
|
|
echo "<th>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "days", []), 'label');
|
|
echo "</th>";
|
|
}
|
|
// line 146
|
|
if (($context["with_hours"] ?? null)) {
|
|
echo "<th>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "hours", []), 'label');
|
|
echo "</th>";
|
|
}
|
|
// line 147
|
|
if (($context["with_minutes"] ?? null)) {
|
|
echo "<th>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "minutes", []), 'label');
|
|
echo "</th>";
|
|
}
|
|
// line 148
|
|
if (($context["with_seconds"] ?? null)) {
|
|
echo "<th>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "seconds", []), 'label');
|
|
echo "</th>";
|
|
}
|
|
// line 149
|
|
echo "</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>";
|
|
// line 153
|
|
if (($context["with_years"] ?? null)) {
|
|
echo "<td>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "years", []), 'widget');
|
|
echo "</td>";
|
|
}
|
|
// line 154
|
|
if (($context["with_months"] ?? null)) {
|
|
echo "<td>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "months", []), 'widget');
|
|
echo "</td>";
|
|
}
|
|
// line 155
|
|
if (($context["with_weeks"] ?? null)) {
|
|
echo "<td>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "weeks", []), 'widget');
|
|
echo "</td>";
|
|
}
|
|
// line 156
|
|
if (($context["with_days"] ?? null)) {
|
|
echo "<td>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "days", []), 'widget');
|
|
echo "</td>";
|
|
}
|
|
// line 157
|
|
if (($context["with_hours"] ?? null)) {
|
|
echo "<td>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "hours", []), 'widget');
|
|
echo "</td>";
|
|
}
|
|
// line 158
|
|
if (($context["with_minutes"] ?? null)) {
|
|
echo "<td>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "minutes", []), 'widget');
|
|
echo "</td>";
|
|
}
|
|
// line 159
|
|
if (($context["with_seconds"] ?? null)) {
|
|
echo "<td>";
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "seconds", []), 'widget');
|
|
echo "</td>";
|
|
}
|
|
// line 160
|
|
echo "</tr>
|
|
</tbody>
|
|
</table>";
|
|
// line 163
|
|
if (($context["with_invert"] ?? null)) {
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "invert", []), 'widget');
|
|
}
|
|
// line 164
|
|
echo "</div>";
|
|
}
|
|
}
|
|
|
|
// line 168
|
|
public function block_number_widget($context, array $blocks = [])
|
|
{
|
|
// line 170
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
|
|
// line 171
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 174
|
|
public function block_integer_widget($context, array $blocks = [])
|
|
{
|
|
// line 175
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "number")) : ("number"));
|
|
// line 176
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 179
|
|
public function block_money_widget($context, array $blocks = [])
|
|
{
|
|
// line 180
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->encodeCurrency($this->env, ($context["money_pattern"] ?? null), $this->renderBlock("form_widget_simple", $context, $blocks));
|
|
}
|
|
|
|
// line 183
|
|
public function block_url_widget($context, array $blocks = [])
|
|
{
|
|
// line 184
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "url")) : ("url"));
|
|
// line 185
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 188
|
|
public function block_search_widget($context, array $blocks = [])
|
|
{
|
|
// line 189
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "search")) : ("search"));
|
|
// line 190
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 193
|
|
public function block_percent_widget($context, array $blocks = [])
|
|
{
|
|
// line 194
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
|
|
// line 195
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
echo " %";
|
|
}
|
|
|
|
// line 198
|
|
public function block_password_widget($context, array $blocks = [])
|
|
{
|
|
// line 199
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "password")) : ("password"));
|
|
// line 200
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 203
|
|
public function block_hidden_widget($context, array $blocks = [])
|
|
{
|
|
// line 204
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "hidden")) : ("hidden"));
|
|
// line 205
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 208
|
|
public function block_email_widget($context, array $blocks = [])
|
|
{
|
|
// line 209
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "email")) : ("email"));
|
|
// line 210
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 213
|
|
public function block_range_widget($context, array $blocks = [])
|
|
{
|
|
// line 214
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "range")) : ("range"));
|
|
// line 215
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 218
|
|
public function block_button_widget($context, array $blocks = [])
|
|
{
|
|
// line 219
|
|
if (twig_test_empty(($context["label"] ?? null))) {
|
|
// line 220
|
|
if ( !twig_test_empty(($context["label_format"] ?? null))) {
|
|
// line 221
|
|
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 222
|
|
($context["name"] ?? null), "%id%" => // line 223
|
|
($context["id"] ?? null)]);
|
|
} elseif (( // line 225
|
|
($context["label"] ?? null) === false)) {
|
|
// line 226
|
|
$context["translation_domain"] = false;
|
|
} else {
|
|
// line 228
|
|
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
|
|
}
|
|
}
|
|
// line 231
|
|
echo "<button type=\"";
|
|
echo twig_escape_filter($this->env, (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "button")) : ("button")), "html", null, true);
|
|
echo "\" ";
|
|
$this->displayBlock("button_attributes", $context, $blocks);
|
|
echo ">";
|
|
echo twig_escape_filter($this->env, (((($context["translation_domain"] ?? null) === false)) ? (($context["label"] ?? null)) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["label"] ?? null), [], ($context["translation_domain"] ?? null)))), "html", null, true);
|
|
echo "</button>";
|
|
}
|
|
|
|
// line 234
|
|
public function block_submit_widget($context, array $blocks = [])
|
|
{
|
|
// line 235
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "submit")) : ("submit"));
|
|
// line 236
|
|
$this->displayBlock("button_widget", $context, $blocks);
|
|
}
|
|
|
|
// line 239
|
|
public function block_reset_widget($context, array $blocks = [])
|
|
{
|
|
// line 240
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "reset")) : ("reset"));
|
|
// line 241
|
|
$this->displayBlock("button_widget", $context, $blocks);
|
|
}
|
|
|
|
// line 244
|
|
public function block_tel_widget($context, array $blocks = [])
|
|
{
|
|
// line 245
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "tel")) : ("tel"));
|
|
// line 246
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 249
|
|
public function block_color_widget($context, array $blocks = [])
|
|
{
|
|
// line 250
|
|
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "color")) : ("color"));
|
|
// line 251
|
|
$this->displayBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
// line 256
|
|
public function block_form_label($context, array $blocks = [])
|
|
{
|
|
// line 257
|
|
if ( !(($context["label"] ?? null) === false)) {
|
|
// line 258
|
|
if ( !($context["compound"] ?? null)) {
|
|
// line 259
|
|
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["for" => ($context["id"] ?? null)]);
|
|
}
|
|
// line 261
|
|
if (($context["required"] ?? null)) {
|
|
// line 262
|
|
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " required"))]);
|
|
}
|
|
// line 264
|
|
if (twig_test_empty(($context["label"] ?? null))) {
|
|
// line 265
|
|
if ( !twig_test_empty(($context["label_format"] ?? null))) {
|
|
// line 266
|
|
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 267
|
|
($context["name"] ?? null), "%id%" => // line 268
|
|
($context["id"] ?? null)]);
|
|
} else {
|
|
// line 271
|
|
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
|
|
}
|
|
}
|
|
// line 274
|
|
echo "<";
|
|
echo twig_escape_filter($this->env, (((isset($context["element"]) || array_key_exists("element", $context))) ? (_twig_default_filter(($context["element"] ?? null), "label")) : ("label")), "html", null, true);
|
|
if (($context["label_attr"] ?? null)) {
|
|
$__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = ["attr" => ($context["label_attr"] ?? null)];
|
|
if ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof \Traversable) {
|
|
$__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = iterator_to_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144);
|
|
}
|
|
if (!is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a hash.');
|
|
}
|
|
$context['_parent'] = $context;
|
|
$context = array_merge($context, $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144);
|
|
$this->displayBlock("attributes", $context, $blocks);
|
|
$context = $context['_parent'];
|
|
}
|
|
echo ">";
|
|
// line 275
|
|
if ((($context["translation_domain"] ?? null) === false)) {
|
|
// line 276
|
|
echo twig_escape_filter($this->env, ($context["label"] ?? null), "html", null, true);
|
|
} else {
|
|
// line 278
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["label"] ?? null), [], ($context["translation_domain"] ?? null)), "html", null, true);
|
|
}
|
|
// line 280
|
|
echo "</";
|
|
echo twig_escape_filter($this->env, (((isset($context["element"]) || array_key_exists("element", $context))) ? (_twig_default_filter(($context["element"] ?? null), "label")) : ("label")), "html", null, true);
|
|
echo ">";
|
|
}
|
|
}
|
|
|
|
// line 284
|
|
public function block_button_label($context, array $blocks = [])
|
|
{
|
|
}
|
|
|
|
// line 288
|
|
public function block_repeated_row($context, array $blocks = [])
|
|
{
|
|
// line 293
|
|
$this->displayBlock("form_rows", $context, $blocks);
|
|
}
|
|
|
|
// line 296
|
|
public function block_form_row($context, array $blocks = [])
|
|
{
|
|
// line 297
|
|
echo "<div>";
|
|
// line 298
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label');
|
|
// line 299
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
|
|
// line 300
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
|
|
// line 301
|
|
echo "</div>";
|
|
}
|
|
|
|
// line 304
|
|
public function block_button_row($context, array $blocks = [])
|
|
{
|
|
// line 305
|
|
echo "<div>";
|
|
// line 306
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
|
|
// line 307
|
|
echo "</div>";
|
|
}
|
|
|
|
// line 310
|
|
public function block_hidden_row($context, array $blocks = [])
|
|
{
|
|
// line 311
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
|
|
}
|
|
|
|
// line 316
|
|
public function block_form($context, array $blocks = [])
|
|
{
|
|
// line 317
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
|
|
// line 318
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
|
|
// line 319
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
|
|
}
|
|
|
|
// line 322
|
|
public function block_form_start($context, array $blocks = [])
|
|
{
|
|
// line 323
|
|
$this->getAttribute(($context["form"] ?? null), "setMethodRendered", [], "method");
|
|
// line 324
|
|
$context["method"] = twig_upper_filter($this->env, ($context["method"] ?? null));
|
|
// line 325
|
|
if (twig_in_filter(($context["method"] ?? null), [0 => "GET", 1 => "POST"])) {
|
|
// line 326
|
|
$context["form_method"] = ($context["method"] ?? null);
|
|
} else {
|
|
// line 328
|
|
$context["form_method"] = "POST";
|
|
}
|
|
// line 330
|
|
echo "<form";
|
|
if ((($context["name"] ?? null) != "")) {
|
|
echo " name=\"";
|
|
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
|
|
echo "\"";
|
|
}
|
|
echo " method=\"";
|
|
echo twig_escape_filter($this->env, twig_lower_filter($this->env, ($context["form_method"] ?? null)), "html", null, true);
|
|
echo "\"";
|
|
if ((($context["action"] ?? null) != "")) {
|
|
echo " action=\"";
|
|
echo twig_escape_filter($this->env, ($context["action"] ?? null), "html", null, true);
|
|
echo "\"";
|
|
}
|
|
$this->displayBlock("attributes", $context, $blocks);
|
|
if (($context["multipart"] ?? null)) {
|
|
echo " enctype=\"multipart/form-data\"";
|
|
}
|
|
echo ">";
|
|
// line 331
|
|
if ((($context["form_method"] ?? null) != ($context["method"] ?? null))) {
|
|
// line 332
|
|
echo "<input type=\"hidden\" name=\"_method\" value=\"";
|
|
echo twig_escape_filter($this->env, ($context["method"] ?? null), "html", null, true);
|
|
echo "\" />";
|
|
}
|
|
}
|
|
|
|
// line 336
|
|
public function block_form_end($context, array $blocks = [])
|
|
{
|
|
// line 337
|
|
if (( !(isset($context["render_rest"]) || array_key_exists("render_rest", $context)) || ($context["render_rest"] ?? null))) {
|
|
// line 338
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
|
|
}
|
|
// line 340
|
|
echo "</form>";
|
|
}
|
|
|
|
// line 343
|
|
public function block_form_errors($context, array $blocks = [])
|
|
{
|
|
// line 344
|
|
if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
|
|
// line 345
|
|
echo "<ul>";
|
|
// line 346
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(($context["errors"] ?? null));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
|
|
// line 347
|
|
echo "<li>";
|
|
echo twig_escape_filter($this->env, $this->getAttribute($context["error"], "message", []), "html", null, true);
|
|
echo "</li>";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 349
|
|
echo "</ul>";
|
|
}
|
|
}
|
|
|
|
// line 353
|
|
public function block_form_rest($context, array $blocks = [])
|
|
{
|
|
// line 354
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
|
|
// line 355
|
|
if ( !$this->getAttribute($context["child"], "rendered", [])) {
|
|
// line 356
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'row');
|
|
}
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 360
|
|
if (( !$this->getAttribute(($context["form"] ?? null), "methodRendered", []) && Symfony\Bridge\Twig\Extension\twig_is_root_form(($context["form"] ?? null)))) {
|
|
// line 361
|
|
$this->getAttribute(($context["form"] ?? null), "setMethodRendered", [], "method");
|
|
// line 362
|
|
$context["method"] = twig_upper_filter($this->env, ($context["method"] ?? null));
|
|
// line 363
|
|
if (twig_in_filter(($context["method"] ?? null), [0 => "GET", 1 => "POST"])) {
|
|
// line 364
|
|
$context["form_method"] = ($context["method"] ?? null);
|
|
} else {
|
|
// line 366
|
|
$context["form_method"] = "POST";
|
|
}
|
|
// line 369
|
|
if ((($context["form_method"] ?? null) != ($context["method"] ?? null))) {
|
|
// line 370
|
|
echo "<input type=\"hidden\" name=\"_method\" value=\"";
|
|
echo twig_escape_filter($this->env, ($context["method"] ?? null), "html", null, true);
|
|
echo "\" />";
|
|
}
|
|
}
|
|
}
|
|
|
|
// line 377
|
|
public function block_form_rows($context, array $blocks = [])
|
|
{
|
|
// line 378
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
|
|
// line 379
|
|
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'row');
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
}
|
|
|
|
// line 383
|
|
public function block_widget_attributes($context, array $blocks = [])
|
|
{
|
|
// line 384
|
|
echo "id=\"";
|
|
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
|
|
echo "\" name=\"";
|
|
echo twig_escape_filter($this->env, ($context["full_name"] ?? null), "html", null, true);
|
|
echo "\"";
|
|
// line 385
|
|
if (($context["disabled"] ?? null)) {
|
|
echo " disabled=\"disabled\"";
|
|
}
|
|
// line 386
|
|
if (($context["required"] ?? null)) {
|
|
echo " required=\"required\"";
|
|
}
|
|
// line 387
|
|
$this->displayBlock("attributes", $context, $blocks);
|
|
}
|
|
|
|
// line 390
|
|
public function block_widget_container_attributes($context, array $blocks = [])
|
|
{
|
|
// line 391
|
|
if ( !twig_test_empty(($context["id"] ?? null))) {
|
|
echo "id=\"";
|
|
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
|
|
echo "\"";
|
|
}
|
|
// line 392
|
|
$this->displayBlock("attributes", $context, $blocks);
|
|
}
|
|
|
|
// line 395
|
|
public function block_button_attributes($context, array $blocks = [])
|
|
{
|
|
// line 396
|
|
echo "id=\"";
|
|
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
|
|
echo "\" name=\"";
|
|
echo twig_escape_filter($this->env, ($context["full_name"] ?? null), "html", null, true);
|
|
echo "\"";
|
|
if (($context["disabled"] ?? null)) {
|
|
echo " disabled=\"disabled\"";
|
|
}
|
|
// line 397
|
|
$this->displayBlock("attributes", $context, $blocks);
|
|
}
|
|
|
|
// line 400
|
|
public function block_attributes($context, array $blocks = [])
|
|
{
|
|
// line 401
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
|
|
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
|
|
// line 402
|
|
echo " ";
|
|
// line 403
|
|
if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
|
|
// line 404
|
|
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
|
|
echo "=\"";
|
|
echo twig_escape_filter($this->env, (((($context["translation_domain"] ?? null) === false)) ? ($context["attrvalue"]) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($context["attrvalue"], [], ($context["translation_domain"] ?? null)))), "html", null, true);
|
|
echo "\"";
|
|
} elseif (( // line 405
|
|
$context["attrvalue"] === true)) {
|
|
// line 406
|
|
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
|
|
echo "=\"";
|
|
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
|
|
echo "\"";
|
|
} elseif ( !( // line 407
|
|
$context["attrvalue"] === false)) {
|
|
// line 408
|
|
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
|
|
echo "=\"";
|
|
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
|
|
echo "\"";
|
|
}
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
}
|
|
|
|
public function getTemplateName()
|
|
{
|
|
return "form_div_layout.html.twig";
|
|
}
|
|
|
|
public function getDebugInfo()
|
|
{
|
|
return array ( 1118 => 408, 1116 => 407, 1111 => 406, 1109 => 405, 1104 => 404, 1102 => 403, 1100 => 402, 1096 => 401, 1093 => 400, 1089 => 397, 1080 => 396, 1077 => 395, 1073 => 392, 1067 => 391, 1064 => 390, 1060 => 387, 1056 => 386, 1052 => 385, 1046 => 384, 1043 => 383, 1035 => 379, 1031 => 378, 1028 => 377, 1020 => 370, 1018 => 369, 1015 => 366, 1012 => 364, 1010 => 363, 1008 => 362, 1006 => 361, 1004 => 360, 997 => 356, 995 => 355, 991 => 354, 988 => 353, 983 => 349, 975 => 347, 971 => 346, 969 => 345, 967 => 344, 964 => 343, 960 => 340, 957 => 338, 955 => 337, 952 => 336, 945 => 332, 943 => 331, 923 => 330, 920 => 328, 917 => 326, 915 => 325, 913 => 324, 911 => 323, 908 => 322, 904 => 319, 902 => 318, 900 => 317, 897 => 316, 893 => 311, 890 => 310, 886 => 307, 884 => 306, 882 => 305, 879 => 304, 875 => 301, 873 => 300, 871 => 299, 869 => 298, 867 => 297, 864 => 296, 860 => 293, 857 => 288, 852 => 284, 845 => 280, 842 => 278, 839 => 276, 837 => 275, 820 => 274, 816 => 271, 813 => 268, 812 => 267, 811 => 266, 809 => 265, 807 => 264, 804 => 262, 802 => 261, 799 => 259, 797 => 258, 795 => 257, 792 => 256, 788 => 251, 786 => 250, 783 => 249, 779 => 246, 777 => 245, 774 => 244, 770 => 241, 768 => 240, 765 => 239, 761 => 236, 759 => 235, 756 => 234, 746 => 231, 742 => 228, 739 => 226, 737 => 225, 735 => 223, 734 => 222, 733 => 221, 731 => 220, 729 => 219, 726 => 218, 722 => 215, 720 => 214, 717 => 213, 713 => 210, 711 => 209, 708 => 208, 704 => 205, 702 => 204, 699 => 203, 695 => 200, 693 => 199, 690 => 198, 685 => 195, 683 => 194, 680 => 193, 676 => 190, 674 => 189, 671 => 188, 667 => 185, 665 => 184, 662 => 183, 658 => 180, 655 => 179, 651 => 176, 649 => 175, 646 => 174, 642 => 171, 640 => 170, 637 => 168, 632 => 164, 628 => 163, 624 => 160, 618 => 159, 612 => 158, 606 => 157, 600 => 156, 594 => 155, 588 => 154, 582 => 153, 577 => 149, 571 => 148, 565 => 147, 559 => 146, 553 => 145, 547 => 144, 541 => 143, 535 => 142, 529 => 139, 527 => 138, 523 => 137, 520 => 135, 518 => 134, 515 => 133, 510 => 129, 500 => 128, 495 => 127, 493 => 126, 490 => 124, 488 => 123, 485 => 122, 480 => 118, 478 => 116, 477 => 115, 476 => 114, 475 => 113, 471 => 112, 468 => 110, 466 => 109, 463 => 108, 458 => 104, 456 => 103, 454 => 102, 452 => 101, 450 => 100, 446 => 99, 443 => 97, 441 => 96, 438 => 95, 424 => 92, 421 => 91, 407 => 88, 404 => 87, 366 => 82, 363 => 80, 361 => 79, 359 => 78, 354 => 77, 352 => 76, 335 => 75, 332 => 74, 328 => 71, 326 => 70, 324 => 69, 318 => 66, 316 => 65, 314 => 64, 312 => 63, 310 => 62, 301 => 60, 299 => 59, 292 => 58, 289 => 56, 287 => 55, 284 => 54, 280 => 51, 274 => 49, 272 => 48, 268 => 47, 264 => 46, 261 => 45, 256 => 41, 253 => 39, 251 => 38, 248 => 37, 240 => 34, 237 => 33, 233 => 30, 230 => 28, 228 => 27, 225 => 26, 221 => 23, 219 => 22, 217 => 21, 214 => 19, 212 => 18, 208 => 17, 205 => 16, 191 => 13, 189 => 12, 186 => 11, 181 => 7, 178 => 5, 176 => 4, 173 => 3, 169 => 400, 167 => 395, 165 => 390, 163 => 383, 161 => 377, 158 => 374, 156 => 353, 154 => 343, 152 => 336, 150 => 322, 148 => 316, 146 => 310, 144 => 304, 142 => 296, 140 => 288, 138 => 284, 136 => 256, 134 => 249, 132 => 244, 130 => 239, 128 => 234, 126 => 218, 124 => 213, 122 => 208, 120 => 203, 118 => 198, 116 => 193, 114 => 188, 112 => 183, 110 => 179, 108 => 174, 106 => 168, 104 => 133, 102 => 122, 100 => 108, 98 => 95, 96 => 91, 94 => 87, 92 => 74, 90 => 54, 88 => 45, 86 => 37, 84 => 33, 82 => 26, 80 => 16, 78 => 11, 76 => 3,);
|
|
}
|
|
|
|
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
|
|
public function getSource()
|
|
{
|
|
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
|
|
|
|
return $this->getSourceContext()->getCode();
|
|
}
|
|
|
|
public function getSourceContext()
|
|
{
|
|
return new Source("", "form_div_layout.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig");
|
|
}
|
|
}
|