/
var
/
www
/
html
/
amply
/
var
/
cache
/
prod
/
twig
/
cb
/
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; /* Inventory/table.html.twig */ class __TwigTemplate_3411b1f388280242f917cd8c77c41fcfae026a917f56b9cdc95a81d2f1fffa57 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", "Inventory/table.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>Section</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 18 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["tables"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 19 echo "\t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td>"; // line 20 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 20), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t\t\t<td>"; // line 21 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "section", [], "any", false, false, false, 21), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t\t\t<td> \t\t\t\t\t\t\t\t\t\t\t<a class=\"btn btn-default\" href=\""; // line 23 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tables", ["id" => twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 23)]), "html", null, true); echo "\">Edit</a> \t\t\t\t\t\t\t\t\t\t\t<a class=\"btn btn-danger\" href=\""; // line 24 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("delete", ["query" => "Tables", "id" => twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 24)]), "html", null, true); echo "\">Delete</a> \t\t\t\t\t\t\t\t\t\t</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 28 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 36 if (($context["table"] ?? null)) { echo "Edit"; } else { echo "Add"; } echo " Table</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 39 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tables"); echo "\" method=\"POST\" name=\"edit\"> \t\t\t\t\t\t\t"; // line 40 if (($context["table"] ?? null)) { echo "<input type=\"hidden\" name=\"edit\" value=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["table"] ?? null), "id", [], "any", false, false, false, 40), "html", null, true); echo "\">"; } // line 41 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=\"Name\" value=\""; // line 42 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["table"] ?? null), "name", [], "any", true, true, false, 42)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["table"] ?? null), "name", [], "any", false, false, false, 42), "")) : ("")), "html", null, true); echo "\"> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t<div class=\"form-group\"> \t\t\t\t\t\t\t\t<input type=\"text\" name=\"section\" class=\"form-control\" placeholder=\"Section\" value=\""; // line 45 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["table"] ?? null), "section", [], "any", true, true, false, 45)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["table"] ?? null), "section", [], "any", false, false, false, 45), "")) : ("")), "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-other\"> \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 "Inventory/table.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 135 => 45, 129 => 42, 126 => 41, 120 => 40, 116 => 39, 106 => 36, 96 => 28, 86 => 24, 82 => 23, 77 => 21, 73 => 20, 70 => 19, 66 => 18, 50 => 4, 46 => 3, 35 => 1,); } public function getSourceContext() { return new Source("", "Inventory/table.html.twig", "/var/www/html/amply/templates/Inventory/table.html.twig"); } }