init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
134
var/cache/dev/twig/13/137f116e8444df5f9090433f0ea63454493f543e05e74caf17dc2a35b59033fb.php
vendored
Normal file
134
var/cache/dev/twig/13/137f116e8444df5f9090433f0ea63454493f543e05e74caf17dc2a35b59033fb.php
vendored
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
<?php
|
||||
|
||||
use Twig\Environment;
|
||||
use Twig\Error\LoaderError;
|
||||
use Twig\Error\RuntimeError;
|
||||
use Twig\Extension\SandboxExtension;
|
||||
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;
|
||||
|
||||
/* ::default/form/helpers.html.twig */
|
||||
class __TwigTemplate_25f3e653802885741a1764d9939d71ac12a975c911a2da0f13eb69c3f1690a39 extends \Twig\Template
|
||||
{
|
||||
private $source;
|
||||
private $macros = [];
|
||||
|
||||
public function __construct(Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->source = $this->getSourceContext();
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = [
|
||||
'form_field' => [$this, 'block_form_field'],
|
||||
'form_field_pho' => [$this, 'block_form_field_pho'],
|
||||
];
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = [])
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "::default/form/helpers.html.twig"));
|
||||
|
||||
// line 1
|
||||
$this->displayBlock('form_field', $context, $blocks);
|
||||
// line 7
|
||||
$this->displayBlock('form_field_pho', $context, $blocks);
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
}
|
||||
|
||||
// line 1
|
||||
public function block_form_field($context, array $blocks = [])
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_field"));
|
||||
|
||||
// line 2
|
||||
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 2, $this->source); })()), 'label', (($context["opt"]) ?? ([])) + (twig_test_empty($_label_ = (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 2, $this->source); })())) ? array() : array("label" => $_label_)));
|
||||
// line 3
|
||||
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 3, $this->source); })()), 'widget', (($context["opt"]) ?? ([])));
|
||||
// line 4
|
||||
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 4, $this->source); })()), 'errors');
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
}
|
||||
|
||||
// line 7
|
||||
public function block_form_field_pho($context, array $blocks = [])
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_field_pho"));
|
||||
|
||||
// line 8
|
||||
if (twig_test_empty((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 8, $this->source); })()))) {
|
||||
// line 9
|
||||
$context["label"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 9, $this->source); })()), "vars", [], "any", false, false, false, 9), "placeholder", [], "any", false, false, false, 9);
|
||||
}
|
||||
// line 11
|
||||
$context["opt"] = twig_array_merge((isset($context["opt"]) || array_key_exists("opt", $context) ? $context["opt"] : (function () { throw new RuntimeError('Variable "opt" does not exist.', 11, $this->source); })()), ["label_attr" => twig_array_merge((((twig_get_attribute($this->env, $this->source, // line 12
|
||||
($context["opt"] ?? null), "label_attr", [], "any", true, true, false, 12) && !(null === twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "label_attr", [], "any", false, false, false, 12)))) ? (twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "label_attr", [], "any", false, false, false, 12)) : ([])), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "label_attr", [], "any", false, true, false, 12), "class", [], "any", true, true, false, 12)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "label_attr", [], "any", false, true, false, 12), "class", [], "any", false, false, false, 12), "")) : ("")) . " sr-only"))]), "attr" => twig_array_merge((((twig_get_attribute($this->env, $this->source, // line 13
|
||||
($context["opt"] ?? null), "attr", [], "any", true, true, false, 13) && !(null === twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "attr", [], "any", false, false, false, 13)))) ? (twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "attr", [], "any", false, false, false, 13)) : ([])), ["placeholder" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "attr", [], "any", false, true, false, 13), "placeholder", [], "any", true, true, false, 13)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "attr", [], "any", false, true, false, 13), "placeholder", [], "any", false, false, false, 13), ((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 14
|
||||
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 14, $this->source); })()), "vars", [], "any", false, false, false, 14), "translation_domain", [], "any", false, false, false, 14) === false)) ? ((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 14, $this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 14, $this->source); })()), [], twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 14, $this->source); })()), "vars", [], "any", false, false, false, 14), "translation_domain", [], "any", false, false, false, 14)))) . (((((twig_get_attribute($this->env, $this->source, // line 15
|
||||
($context["opt"] ?? null), "required", [], "any", true, true, false, 15) && !(null === twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "required", [], "any", false, false, false, 15)))) ? (twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "required", [], "any", false, false, false, 15)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 15, $this->source); })()), "vars", [], "any", false, false, false, 15), "required", [], "any", false, false, false, 15)))) ? (" *") : (""))))) : (((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 14
|
||||
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 14, $this->source); })()), "vars", [], "any", false, false, false, 14), "translation_domain", [], "any", false, false, false, 14) === false)) ? ((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 14, $this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 14, $this->source); })()), [], twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 14, $this->source); })()), "vars", [], "any", false, false, false, 14), "translation_domain", [], "any", false, false, false, 14)))) . (((((twig_get_attribute($this->env, $this->source, // line 15
|
||||
($context["opt"] ?? null), "required", [], "any", true, true, false, 15) && !(null === twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "required", [], "any", false, false, false, 15)))) ? (twig_get_attribute($this->env, $this->source, ($context["opt"] ?? null), "required", [], "any", false, false, false, 15)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 15, $this->source); })()), "vars", [], "any", false, false, false, 15), "required", [], "any", false, false, false, 15)))) ? (" *") : ("")))))])]);
|
||||
// line 19
|
||||
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 19, $this->source); })()), 'label', (isset($context["opt"]) || array_key_exists("opt", $context) ? $context["opt"] : (function () { throw new RuntimeError('Variable "opt" does not exist.', 19, $this->source); })()) + (twig_test_empty($_label_ = (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 19, $this->source); })())) ? array() : array("label" => $_label_)));
|
||||
// line 20
|
||||
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 20, $this->source); })()), 'widget', (isset($context["opt"]) || array_key_exists("opt", $context) ? $context["opt"] : (function () { throw new RuntimeError('Variable "opt" does not exist.', 20, $this->source); })()));
|
||||
// line 21
|
||||
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 21, $this->source); })()), 'errors', (isset($context["opt"]) || array_key_exists("opt", $context) ? $context["opt"] : (function () { throw new RuntimeError('Variable "opt" does not exist.', 21, $this->source); })()));
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "::default/form/helpers.html.twig";
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 93 => 21, 91 => 20, 89 => 19, 87 => 15, 86 => 14, 85 => 15, 84 => 14, 83 => 13, 82 => 12, 81 => 11, 78 => 9, 76 => 8, 69 => 7, 62 => 4, 60 => 3, 58 => 2, 51 => 1, 44 => 7, 42 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Source("{%- block form_field -%}
|
||||
{{- form_label(form, label, opt ?? {}) -}}
|
||||
{{- form_widget(form, opt ?? {}) -}}
|
||||
{{- form_errors(form) -}}
|
||||
{%- endblock form_field -%}
|
||||
|
||||
{%- block form_field_pho -%}
|
||||
{%- if label is empty -%}
|
||||
{%- set label = form.vars.placeholder -%}
|
||||
{%- endif -%}
|
||||
{%- set opt = opt|merge({
|
||||
label_attr: (opt.label_attr ?? {})|merge({class: (opt.label_attr.class|default('') ~ ' sr-only')|trim}),
|
||||
attr: (opt.attr ?? {})|merge({placeholder: opt.attr.placeholder|default(
|
||||
(form.vars.translation_domain is same as(false) ? label : label|trans({}, form.vars.translation_domain)) ~
|
||||
((opt.required ?? form.vars.required) ? ' *' : '')
|
||||
)})
|
||||
}) -%}
|
||||
{#{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' sr-only')|trim}) -%}#}
|
||||
{{- form_label(form, label, opt) -}}
|
||||
{{- form_widget(form, opt) -}}
|
||||
{{- form_errors(form, opt) -}}
|
||||
{%- endblock form_field_pho -%}", "::default/form/helpers.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/form/helpers.html.twig");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue