Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,352 @@
<?php
/* PrestaShopBundle:Admin/TwigTemplateForm:bootstrap_4_horizontal_layout.html.twig */
class __TwigTemplate_0fd2425762e02e4dbbc760753e86b6d08dee377e2df741a1d1db834c508639d1 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$_trait_0 = $this->loadTemplate("@PrestaShop/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig", "PrestaShopBundle:Admin/TwigTemplateForm:bootstrap_4_horizontal_layout.html.twig", 25);
// line 25
if (!$_trait_0->isTraitable()) {
throw new Twig_Error_Runtime('Template "'."@PrestaShop/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig".'" cannot be used as a trait.');
}
$_trait_0_blocks = $_trait_0->getBlocks();
$this->traits = $_trait_0_blocks;
$this->blocks = array_merge(
$this->traits,
array(
'form_start' => array($this, 'block_form_start'),
'form_label' => array($this, 'block_form_label'),
'form_label_class' => array($this, 'block_form_label_class'),
'form_row' => array($this, 'block_form_row'),
'checkbox_row' => array($this, 'block_checkbox_row'),
'radio_row' => array($this, 'block_radio_row'),
'checkbox_radio_row' => array($this, 'block_checkbox_radio_row'),
'submit_row' => array($this, 'block_submit_row'),
'form_group_class' => array($this, 'block_form_group_class'),
'form_row_class' => array($this, 'block_form_row_class'),
'text_with_unit_widget' => array($this, 'block_text_with_unit_widget'),
'ip_address_text_widget' => array($this, 'block_ip_address_text_widget'),
'switch_widget' => array($this, 'block_switch_widget'),
)
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 26
$this->displayBlock('form_start', $context, $blocks);
// line 30
echo "
";
// line 32
echo "
";
// line 33
$this->displayBlock('form_label', $context, $blocks);
// line 43
echo "
";
// line 44
$this->displayBlock('form_label_class', $context, $blocks);
// line 47
echo "
";
// line 49
echo "
";
// line 50
$this->displayBlock('form_row', $context, $blocks);
// line 61
echo "
";
// line 62
$this->displayBlock('checkbox_row', $context, $blocks);
// line 65
echo "
";
// line 66
$this->displayBlock('radio_row', $context, $blocks);
// line 69
echo "
";
// line 70
$this->displayBlock('checkbox_radio_row', $context, $blocks);
// line 81
echo "
";
// line 82
$this->displayBlock('submit_row', $context, $blocks);
// line 92
echo "
";
// line 93
$this->displayBlock('form_group_class', $context, $blocks);
// line 96
echo "
";
// line 97
$this->displayBlock('form_row_class', $context, $blocks);
// line 100
echo "
";
// line 101
$this->displayBlock('text_with_unit_widget', $context, $blocks);
// line 111
echo "
";
// line 112
$this->displayBlock('ip_address_text_widget', $context, $blocks);
// line 120
echo "
";
// line 121
$this->displayBlock('switch_widget', $context, $blocks);
}
// line 26
public function block_form_start($context, array $blocks = array())
{
// line 27
$context["attr"] = twig_array_merge(($context["attr"] ?? null), array("class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", array()), "")) : ("")) . " form-horizontal"))));
// line 28
$this->displayParentBlock("form_start", $context, $blocks);
}
// line 33
public function block_form_label($context, array $blocks = array())
{
// line 34
ob_start();
// line 35
echo " ";
if ((($context["label"] ?? null) === false)) {
// line 36
echo " <div class=\"";
$this->displayBlock("form_label_class", $context, $blocks);
echo "\"></div>
";
} else {
// line 38
echo " ";
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), array("class" => twig_trim_filter((((($this->getAttribute(($context["label_attr"] ?? null), "class", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", array()), "")) : ("")) . " ") . $this->renderBlock("form_label_class", $context, $blocks)))));
// line 39
$this->displayParentBlock("form_label", $context, $blocks);
}
// line 41
echo " ";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
}
// line 44
public function block_form_label_class($context, array $blocks = array())
{
// line 45
echo "col-sm-2";
}
// line 50
public function block_form_row($context, array $blocks = array())
{
// line 51
ob_start();
// line 52
echo " <div class=\"";
$this->displayBlock("form_row_class", $context, $blocks);
echo " ";
if ((( !($context["compound"] ?? null) || ((array_key_exists("force_error", $context)) ? (_twig_default_filter(($context["force_error"] ?? null), false)) : (false))) && !($context["valid"] ?? null))) {
echo " has-error";
}
echo "\">
";
// line 53
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label');
echo "
<div class=\"";
// line 54
$this->displayBlock("form_group_class", $context, $blocks);
echo "\">
";
// line 55
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
echo "
";
// line 56
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
echo "
</div>
</div>
";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
}
// line 62
public function block_checkbox_row($context, array $blocks = array())
{
// line 63
$this->displayBlock("checkbox_radio_row", $context, $blocks);
}
// line 66
public function block_radio_row($context, array $blocks = array())
{
// line 67
$this->displayBlock("checkbox_radio_row", $context, $blocks);
}
// line 70
public function block_checkbox_radio_row($context, array $blocks = array())
{
// line 71
ob_start();
// line 72
echo " <div class=\"form-group";
if ( !($context["valid"] ?? null)) {
echo " has-error";
}
echo "\">
<div class=\"";
// line 73
$this->displayBlock("form_label_class", $context, $blocks);
echo "\"></div>
<div class=\"";
// line 74
$this->displayBlock("form_group_class", $context, $blocks);
echo "\">
";
// line 75
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
echo "
";
// line 76
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
echo "
</div>
</div>
";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
}
// line 82
public function block_submit_row($context, array $blocks = array())
{
// line 83
ob_start();
// line 84
echo " <div class=\"form-group\">
<div class=\"";
// line 85
$this->displayBlock("form_label_class", $context, $blocks);
echo "\"></div>
<div class=\"";
// line 86
$this->displayBlock("form_group_class", $context, $blocks);
echo "\">
";
// line 87
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
echo "
</div>
</div>
";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
}
// line 93
public function block_form_group_class($context, array $blocks = array())
{
// line 94
echo "col-sm-10";
}
// line 97
public function block_form_row_class($context, array $blocks = array())
{
// line 98
echo "form-group";
}
// line 101
public function block_text_with_unit_widget($context, array $blocks = array())
{
// line 102
echo "<div class=\"input-group\">";
// line 103
$this->displayBlock("form_widget_simple", $context, $blocks);
// line 104
if ($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", array(), "any", false, true), "unit", array(), "any", true, true)) {
// line 105
echo " <div class=\"input-group-append\">
<span class=\"input-group-text\">";
// line 106
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", array()), "unit", array()), "html", null, true);
echo "</span>
</div>
";
}
// line 109
echo "</div>
";
}
// line 112
public function block_ip_address_text_widget($context, array $blocks = array())
{
// line 113
echo "<div class=\"input-group\">";
// line 114
$this->displayBlock("form_widget_simple", $context, $blocks);
// line 115
echo "<button type=\"button\" class=\"btn btn-outline-primary add_ip_button\" data-ip=\"";
echo twig_escape_filter($this->env, ($context["currentIp"] ?? null), "html", null, true);
echo "\">
<i class=\"material-icons\">add_circle</i> ";
// line 116
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Add my IP", array(), "Admin.Actions"), "html", null, true);
echo "
</button>
</div>
";
}
// line 121
public function block_switch_widget($context, array $blocks = array())
{
// line 122
echo "<div class=\"input-group\">";
// line 123
$this->displayParentBlock("switch_widget", $context, $blocks);
// line 124
echo "</div>
";
}
public function getTemplateName()
{
return "PrestaShopBundle:Admin/TwigTemplateForm:bootstrap_4_horizontal_layout.html.twig";
}
public function getDebugInfo()
{
return array ( 326 => 124, 324 => 123, 322 => 122, 319 => 121, 311 => 116, 306 => 115, 304 => 114, 302 => 113, 299 => 112, 294 => 109, 288 => 106, 285 => 105, 283 => 104, 281 => 103, 279 => 102, 276 => 101, 272 => 98, 269 => 97, 265 => 94, 262 => 93, 253 => 87, 249 => 86, 245 => 85, 242 => 84, 240 => 83, 237 => 82, 228 => 76, 224 => 75, 220 => 74, 216 => 73, 209 => 72, 207 => 71, 204 => 70, 200 => 67, 197 => 66, 193 => 63, 190 => 62, 181 => 56, 177 => 55, 173 => 54, 169 => 53, 160 => 52, 158 => 51, 155 => 50, 151 => 45, 148 => 44, 143 => 41, 140 => 39, 137 => 38, 131 => 36, 128 => 35, 126 => 34, 123 => 33, 119 => 28, 117 => 27, 114 => 26, 110 => 121, 107 => 120, 105 => 112, 102 => 111, 100 => 101, 97 => 100, 95 => 97, 92 => 96, 90 => 93, 87 => 92, 85 => 82, 82 => 81, 80 => 70, 77 => 69, 75 => 66, 72 => 65, 70 => 62, 67 => 61, 65 => 50, 62 => 49, 59 => 47, 57 => 44, 54 => 43, 52 => 33, 49 => 32, 46 => 30, 44 => 26, 14 => 25,);
}
/** @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 Twig_Source("", "PrestaShopBundle:Admin/TwigTemplateForm:bootstrap_4_horizontal_layout.html.twig", "/var/www/clients/client1/web14/web/src/PrestaShopBundle/Resources/views/Admin/TwigTemplateForm/bootstrap_4_horizontal_layout.html.twig");
}
}