/
home
/
obinna
/
html
/
boaz2
/
var
/
cache
/
dev
/
twig
/
22
/
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; /* release/generate.html.twig */ class __TwigTemplate_fe5e962fcd5fadeacfbb0fe9fa2dc65ce690f65e27454b79bb9f81195c15567a extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'stylesheet' => [$this, 'block_stylesheet'], 'content' => [$this, 'block_content'], 'javascript' => [$this, 'block_javascript'], ]; } protected function doGetParent(array $context) { // line 1 return "base1.html.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "release/generate.html.twig")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "release/generate.html.twig")); $this->parent = $this->loadTemplate("base1.html.twig", "release/generate.html.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } // line 3 public function block_stylesheet($context, array $blocks = []) { $macros = $this->macros; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet")); // line 4 echo " <link href=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css\" rel=\"stylesheet\" /> <style> .form-control.select2 { height: 40px; } .select2-container .select2-selection--single { height: inherit; } </style> "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); } // line 18 public function block_content($context, array $blocks = []) { $macros = $this->macros; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content")); // line 19 echo "\t<div class=\"content\"> \t <div class=\"container-fluid\"> \t <div class=\"row\"> \t <div class=\"col-md-12\"> \t <div class=\"card\"> \t <div class=\"header\"> \t <h4 class=\"title\">New Release Order</h4> \t </div> \t <div class=\"content\"> <form action=\""; // line 28 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("generate"); echo "\" method=\"post\" name=\"cargo\"> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"cargo\">Cargo:</label> \t\t\t\t \t\t"; // line 32 if (array_key_exists("cargoId", $context)) { // line 33 echo " <select name=\"cargo\" class=\"form-control\" disabled> <option value=\""; // line 34 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cargoId"]) || array_key_exists("cargoId", $context) ? $context["cargoId"] : (function () { throw new RuntimeError('Variable "cargoId" does not exist.', 34, $this->source); })()), "id", [], "any", false, false, false, 34), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cargoId"]) || array_key_exists("cargoId", $context) ? $context["cargoId"] : (function () { throw new RuntimeError('Variable "cargoId" does not exist.', 34, $this->source); })()), "cargoname", [], "any", false, false, false, 34), "html", null, true); echo "</option> </select> <input type=\"hidden\" name=\"cargo\" value=\""; // line 36 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cargoId"]) || array_key_exists("cargoId", $context) ? $context["cargoId"] : (function () { throw new RuntimeError('Variable "cargoId" does not exist.', 36, $this->source); })()), "id", [], "any", false, false, false, 36), "html", null, true); echo "\"> "; } else { // line 38 echo " <select name=\"cargo\" id=\"cargo\" class=\"form-control select2\" required> <option value=\"\"> Select Cargo </option> "; // line 40 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["cargo"]) || array_key_exists("cargo", $context) ? $context["cargo"] : (function () { throw new RuntimeError('Variable "cargo" does not exist.', 40, $this->source); })())); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 41 echo " <option value=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 41), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "cargoname", [], "any", false, false, false, 41), "html", null, true); echo "</option> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 43 echo " </select> "; } // line 45 echo " \t\t\t\t \t\t\t</div> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"quantity\">Quantity: </label> \t\t\t\t<input type=\"text\" name=\"quantity\" id=\"quantity\" class=\"form-control\" required> \t\t\t</div> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"customer\">Customer: </label> \t\t\t\t<input type=\"text\" name=\"customer\" id=\"customer\" class=\"form-control\" required> \t\t\t</div> \t\t\t"; // line 59 echo "\t\t\t\t\t\t\t\t\t\t\t<div class=\"form-group\"> \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"depot\">Depot</label> \t\t\t\t\t\t\t\t\t\t\t\t<select name=\"depot\" id=\"depot\" class=\"form-control select2\"> \t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">Select Depot</option> \t\t\t\t\t\t\t\t\t\t\t\t\t"; // line 63 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["depots"]) || array_key_exists("depots", $context) ? $context["depots"] : (function () { throw new RuntimeError('Variable "depots" does not exist.', 63, $this->source); })())); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 64 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 64), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 64), "html", null, true); echo "</option> \t\t\t\t\t\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 66 echo "\t\t\t\t\t\t\t\t\t\t\t</select> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"bank\">Bank:</label> \t\t\t\t<input type=\"text\" name=\"bank\" id=\"bank\" class=\"form-control\" required> \t\t\t</div> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"date\">Date:</label> \t\t\t\t<input type=\"text\" name=\"date\" id=\"datepicker\" class=\"form-control\"> \t\t\t</div> \t\t\t\t<input type=\"submit\" name=\"submit\" class=\"btn btn-default\" value=\"Save Details\"> \t</form> </div> \t </div> \t </div> \t \t </div> \t </div> \t</div> "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); } // line 88 public function block_javascript($context, array $blocks = []) { $macros = $this->macros; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript")); // line 89 echo " "; $this->displayParentBlock("javascript", $context, $blocks); echo " <script src=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js\"></script> <script> \$('.select2').select2(); </script> "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); } public function getTemplateName() { return "release/generate.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 233 => 89, 223 => 88, 193 => 66, 182 => 64, 178 => 63, 172 => 59, 160 => 45, 156 => 43, 145 => 41, 141 => 40, 137 => 38, 132 => 36, 125 => 34, 122 => 33, 120 => 32, 113 => 28, 102 => 19, 92 => 18, 70 => 4, 60 => 3, 37 => 1,); } public function getSourceContext() { return new Source("{% extends 'base1.html.twig' %} {% block stylesheet %} <link href=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css\" rel=\"stylesheet\" /> <style> .form-control.select2 { height: 40px; } .select2-container .select2-selection--single { height: inherit; } </style> {% endblock %} {% block content %} \t<div class=\"content\"> \t <div class=\"container-fluid\"> \t <div class=\"row\"> \t <div class=\"col-md-12\"> \t <div class=\"card\"> \t <div class=\"header\"> \t <h4 class=\"title\">New Release Order</h4> \t </div> \t <div class=\"content\"> <form action=\"{{ path('generate')}}\" method=\"post\" name=\"cargo\"> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"cargo\">Cargo:</label> \t\t\t\t \t\t{% if cargoId is defined %} <select name=\"cargo\" class=\"form-control\" disabled> <option value=\"{{cargoId.id}}\">{{cargoId.cargoname}}</option> </select> <input type=\"hidden\" name=\"cargo\" value=\"{{cargoId.id}}\"> {% else %} <select name=\"cargo\" id=\"cargo\" class=\"form-control select2\" required> <option value=\"\"> Select Cargo </option> {% for item in cargo %} <option value=\"{{ item.id }}\">{{ item.cargoname }}</option> {% endfor %} </select> {% endif %} \t\t\t\t \t\t\t</div> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"quantity\">Quantity: </label> \t\t\t\t<input type=\"text\" name=\"quantity\" id=\"quantity\" class=\"form-control\" required> \t\t\t</div> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"customer\">Customer: </label> \t\t\t\t<input type=\"text\" name=\"customer\" id=\"customer\" class=\"form-control\" required> \t\t\t</div> \t\t\t{# <div class=\"form-group\"> \t\t\t\t<label for=\"depot\">Depot:</label> \t\t\t\t<input type=\"text\" name=\"depot\" id=\"depot\" class=\"form-control\" required> \t\t\t</div> #} \t\t\t\t\t\t\t\t\t\t\t<div class=\"form-group\"> \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"depot\">Depot</label> \t\t\t\t\t\t\t\t\t\t\t\t<select name=\"depot\" id=\"depot\" class=\"form-control select2\"> \t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">Select Depot</option> \t\t\t\t\t\t\t\t\t\t\t\t\t{% for item in depots %} \t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ item.id }}\">{{ item.name }}</option> \t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %} \t\t\t\t\t\t\t\t\t\t\t</select> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"bank\">Bank:</label> \t\t\t\t<input type=\"text\" name=\"bank\" id=\"bank\" class=\"form-control\" required> \t\t\t</div> \t\t\t<div class=\"form-group\"> \t\t\t\t<label for=\"date\">Date:</label> \t\t\t\t<input type=\"text\" name=\"date\" id=\"datepicker\" class=\"form-control\"> \t\t\t</div> \t\t\t\t<input type=\"submit\" name=\"submit\" class=\"btn btn-default\" value=\"Save Details\"> \t</form> </div> \t </div> \t </div> \t \t </div> \t </div> \t</div> {% endblock %} {% block javascript %} {{ parent() }} <script src=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js\"></script> <script> \$('.select2').select2(); </script> {% endblock %}", "release/generate.html.twig", "/var/www/html/boaz2/templates/release/generate.html.twig"); } }