/
home
/
obinna
/
html
/
amply
/
var
/
cache
/
prod
/
twig
/
af
/
Upload File
HOME
<?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; /* Stock/add.html.twig */ class __TwigTemplate_b1ca7a575187f9777d189cacfc5fac196c724e31a8c0db5ccf7f7f482878b009 extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'content' => [$this, 'block_content'], ]; } protected function doGetParent(array $context) { // line 1 return "base1.html.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; $this->parent = $this->loadTemplate("base1.html.twig", "Stock/add.html.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_content($context, array $blocks = []) { $macros = $this->macros; // line 4 echo "\t<div class=\"content\"> \t\t<div class=\"row\"> \t\t\t<div class=\"col-sm-6\"> \t\t\t\t<div class=\"card\"> \t\t\t\t\t<div class=\"card-body\"> \t\t\t\t\t\t<table class=\"table table-default\"> \t\t\t\t\t\t\t<thead> \t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t<th>Name</th> \t\t\t\t\t\t\t\t\t<th>Action</th> \t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t</thead> \t\t\t\t\t\t\t<tbody> \t\t\t\t\t\t\t\t"; // line 17 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["groups"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 18 echo "\t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td>"; // line 19 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 19), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t\t\t<td><a class=\"btn btn-primary\" href=\""; // line 20 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("group", ["id" => twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 20)]), "html", null, true); echo "\">Edit</a></td> \t\t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 23 echo "\t\t\t\t\t\t\t</tbody> \t\t\t\t\t\t</table> \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t</div> \t\t\t<div class=\"col-sm-6\"> \t\t\t\t<div class=\"card\"> \t\t\t\t\t<div class=\"card-header\"> \t\t\t\t\t\t<h3>"; // line 31 if (($context["group"] ?? null)) { echo "Edit"; } else { echo "Add"; } echo " Category</h3> \t\t\t\t\t</div> \t\t\t\t\t<div class=\"card-body\"> \t\t\t\t\t\t<form action=\""; // line 34 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("group"); echo "\" method=\"POST\" name=\"edit\"> \t\t\t\t\t\t\t"; // line 35 if (($context["group"] ?? null)) { echo "<input type=\"hidden\" name=\"edit\" value=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "id", [], "any", false, false, false, 35), "html", null, true); echo "\">"; } // line 36 echo "\t\t\t\t\t\t\t<div class=\"form-group\"> \t\t\t\t\t\t\t\t<input type=\"text\" name=\"name\" class=\"form-control\" placeholder=\"Group Name\" value=\""; // line 37 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "name", [], "any", true, true, false, 37)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "name", [], "any", false, false, false, 37), "")) : ("")), "html", null, true); echo "\"> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t<input type=\"submit\" name=\"submit\" value=\"Save\" class=\"btn-primary\"> \t\t\t\t\t\t</form> \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t</div> \t\t</div> \t</div> "; } public function getTemplateName() { return "Stock/add.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 118 => 37, 115 => 36, 109 => 35, 105 => 34, 95 => 31, 85 => 23, 76 => 20, 72 => 19, 69 => 18, 65 => 17, 50 => 4, 46 => 3, 35 => 1,); } public function getSourceContext() { return new Source("", "Stock/add.html.twig", "/var/www/html/amply/templates/Stock/add.html.twig"); } }