parent = false;
$this->blocks = [
'field' => [$this, 'block_field'],
'contents' => [$this, 'block_contents'],
'label' => [$this, 'block_label'],
'global_attributes' => [$this, 'block_global_attributes'],
'group' => [$this, 'block_group'],
'input' => [$this, 'block_input'],
'prepend' => [$this, 'block_prepend'],
'input_attributes' => [$this, 'block_input_attributes'],
'append' => [$this, 'block_append'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 1
if ( !$this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", []), "ignore", [])) {
// line 2
echo "
";
// line 3
if (( !($context["blueprints"] ?? null) || (((($this->getAttribute($this->getAttribute($this->getAttribute(($context["blueprints"] ?? null), "schema", [], "any", false, true), "type", [0 => $this->getAttribute(($context["field"] ?? null), "type", [])], "method", false, true), "input@", [], "array", true, true) && !(null === $this->getAttribute($this->getAttribute($this->getAttribute(($context["blueprints"] ?? null), "schema", [], "any", false, true), "type", [0 => $this->getAttribute(($context["field"] ?? null), "type", [])], "method", false, true), "input@", [], "array")))) ? ($this->getAttribute($this->getAttribute($this->getAttribute(($context["blueprints"] ?? null), "schema", [], "any", false, true), "type", [0 => $this->getAttribute(($context["field"] ?? null), "type", [])], "method", false, true), "input@", [], "array")) : (true)) === true))) {
// line 4
echo " ";
$context["originalValue"] = (((isset($context["originalValue"]) || array_key_exists("originalValue", $context))) ? (($context["originalValue"] ?? null)) : (($context["value"] ?? null)));
// line 5
echo " ";
$context["toggleableChecked"] = ($this->getAttribute(($context["field"] ?? null), "toggleable", []) && !(null === ($context["originalValue"] ?? null)));
// line 6
echo " ";
$context["isDisabledToggleable"] = ($this->getAttribute(($context["field"] ?? null), "toggleable", []) && !($context["toggleableChecked"] ?? null));
// line 7
echo " ";
$context["value"] = (($context["value"]) ?? ($this->getAttribute(($context["field"] ?? null), "default", [])));
// line 8
echo "
";
// line 9
if ((($this->getAttribute(($context["field"] ?? null), "yaml", []) || ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", []), "type", []) == "yaml")) && twig_test_iterable(($context["value"] ?? null)))) {
// line 10
echo " ";
$context["value"] = $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->toYamlFilter(($context["value"] ?? null));
// line 11
echo " ";
}
}
// line 13
$context["vertical"] = ($this->getAttribute(($context["field"] ?? null), "style", []) == "vertical");
// line 14
$context["field_name"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", [])));
// line 15
echo "
";
// line 16
$this->displayBlock('field', $context, $blocks);
// line 113
echo "
";
}
}
// line 16
public function block_field($context, array $blocks = [])
{
// line 17
echo "
getAttribute(($context["field"] ?? null), "toggleable", [])) {
echo " form-field-toggleable";
}
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "outerclasses", []), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "field_classes", []), "html", null, true);
echo "\">
";
// line 18
$this->displayBlock('contents', $context, $blocks);
// line 111
echo "
";
}
// line 18
public function block_contents($context, array $blocks = [])
{
// line 19
echo "
displayBlock('global_attributes', $context, $blocks);
// line 65
echo " >
";
// line 66
$this->displayBlock('group', $context, $blocks);
// line 98
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "description", [])) {
// line 99
echo "
";
}
// line 109
echo "
";
}
// line 32
public function block_label($context, array $blocks = [])
{
// line 33
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "help", [])) {
// line 34
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "markdown", [])) {
// line 35
echo " env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($context, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "help", [])), false), "html");
echo "\">";
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($context, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", [])), false);
echo "
";
} else {
// line 37
echo " env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "help", [])), "html");
echo "\">";
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", []));
echo "
";
}
// line 39
echo " ";
} else {
// line 40
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "markdown", [])) {
// line 41
echo " ";
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($context, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", [])), false);
echo "
";
} else {
// line 43
echo " ";
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", []));
echo "
";
}
// line 45
echo " ";
}
// line 46
echo " ";
echo ((twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", []), "required", []), [0 => "on", 1 => "true", 2 => 1])) ? ("*") : (""));
echo "
";
}
// line 60
public function block_global_attributes($context, array $blocks = [])
{
// line 61
echo " data-grav-field=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "type", []), "html", null, true);
echo "\"
data-grav-disabled=\"";
// line 62
echo twig_escape_filter($this->env, ($context["toggleableChecked"] ?? null), "html", null, true);
echo "\"
data-grav-default=\"";
// line 63
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "default", [])), "html_attr");
echo "\"
";
}
// line 66
public function block_group($context, array $blocks = [])
{
// line 67
echo " ";
$this->displayBlock('input', $context, $blocks);
// line 97
echo " ";
}
// line 67
public function block_input($context, array $blocks = [])
{
// line 68
echo " env, $this->getAttribute(($context["field"] ?? null), "size", []), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", []), "html", null, true);
echo "\">
";
// line 69
$this->displayBlock('prepend', $context, $blocks);
// line 70
echo " env, ($context["field_name"] ?? null), "html", null, true);
echo "\"
value=\"";
// line 73
echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ","), "html", null, true);
echo "\"
";
// line 74
if ($this->getAttribute(($context["field"] ?? null), "key", [])) {
// line 75
echo " data-key-observe=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . ($context["field_name"] ?? null))), "html", null, true);
echo "\"
";
}
// line 77
echo " ";
// line 78
echo " ";
$this->displayBlock('input_attributes', $context, $blocks);
// line 93
echo " />
";
// line 94
$this->displayBlock('append', $context, $blocks);
// line 95
echo "
";
}
// line 69
public function block_prepend($context, array $blocks = [])
{
}
// line 78
public function block_input_attributes($context, array $blocks = [])
{
// line 79
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "classes", [], "any", true, true)) {
echo "class=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", []), "html", null, true);
echo "\" ";
}
// line 80
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "id", [], "any", true, true)) {
echo "id=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", []));
echo "\" ";
}
// line 81
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "style", [], "any", true, true)) {
echo "style=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "style", []));
echo "\" ";
}
// line 82
echo " ";
if (($this->getAttribute(($context["field"] ?? null), "disabled", []) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
// line 83
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "placeholder", [])) {
echo "placeholder=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "placeholder", [])), "html", null, true);
echo "\"";
}
// line 84
echo " ";
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", []), [0 => "on", 1 => "true", 2 => 1])) {
echo "autofocus=\"autofocus\"";
}
// line 85
echo " ";
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", []), [0 => "on", 1 => "true", 2 => 1])) {
echo "novalidate=\"novalidate\"";
}
// line 86
echo " ";
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", []), [0 => "on", 1 => "true", 2 => 1])) {
echo "readonly=\"readonly\"";
}
// line 87
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "autocomplete", [], "any", true, true)) {
echo "autocomplete=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "autocomplete", []), "html", null, true);
echo "\"";
}
// line 88
echo " ";
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", []), "required", []), [0 => "on", 1 => "true", 2 => 1])) {
echo "required=\"required\"";
}
// line 89
echo " ";
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", []), "pattern", [])) {
echo "pattern=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", []), "pattern", []), "html", null, true);
echo "\"";
}
// line 90
echo " ";
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", []), "message", [])) {
echo "title=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", []), "message", []))), "html", null, true);
echo "\"
";
} elseif ($this->getAttribute( // line 91
($context["field"] ?? null), "title", [], "any", true, true)) {
echo "title=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "title", []))), "html", null, true);
echo "\" ";
}
// line 92
echo " ";
}
// line 94
public function block_append($context, array $blocks = [])
{
}
public function getTemplateName()
{
return "forms/field.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 455 => 94, 451 => 92, 445 => 91, 438 => 90, 431 => 89, 426 => 88, 419 => 87, 414 => 86, 409 => 85, 404 => 84, 397 => 83, 392 => 82, 385 => 81, 378 => 80, 371 => 79, 368 => 78, 363 => 69, 358 => 95, 356 => 94, 353 => 93, 350 => 78, 348 => 77, 342 => 75, 340 => 74, 336 => 73, 331 => 72, 328 => 70, 326 => 69, 319 => 68, 316 => 67, 312 => 97, 309 => 67, 306 => 66, 300 => 63, 296 => 62, 291 => 61, 288 => 60, 281 => 46, 278 => 45, 272 => 43, 266 => 41, 263 => 40, 260 => 39, 252 => 37, 244 => 35, 241 => 34, 238 => 33, 235 => 32, 230 => 109, 225 => 106, 219 => 104, 213 => 102, 211 => 101, 205 => 99, 202 => 98, 200 => 66, 197 => 65, 195 => 60, 189 => 59, 186 => 58, 182 => 56, 176 => 54, 170 => 52, 168 => 51, 165 => 50, 163 => 49, 160 => 48, 158 => 32, 153 => 31, 147 => 28, 144 => 27, 140 => 26, 135 => 25, 131 => 24, 127 => 23, 121 => 21, 119 => 20, 112 => 19, 109 => 18, 104 => 111, 102 => 18, 88 => 17, 85 => 16, 79 => 113, 77 => 16, 74 => 15, 72 => 14, 70 => 13, 66 => 11, 63 => 10, 61 => 9, 58 => 8, 55 => 7, 52 => 6, 49 => 5, 46 => 4, 44 => 3, 41 => 2, 39 => 1,);
}
/** @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("{% if not field.validate.ignore %}
{% if not blueprints or (blueprints.schema.type(field.type)['input@'] ?? true) is same as(true) %}
{% set originalValue = originalValue is defined ? originalValue : value %}
{% set toggleableChecked = field.toggleable and originalValue is not null %}
{% set isDisabledToggleable = field.toggleable and not toggleableChecked %}
{% set value = value ?? field.default %}
{% if (field.yaml or field.validate.type == 'yaml') and value is iterable%}
{% set value = value|toYaml %}
{% endif %}
{% endif %}
{% set vertical = field.style == 'vertical' %}
{% set field_name = (scope ~ field.name)|fieldName %}
{% block field %}
{% endblock %}
{% endif %}
", "forms/field.html.twig", "/mnt/wpool1_tempdisk/webwndt/steintiger/user/plugins/admin/themes/grav/templates/forms/field.html.twig");
}
}