var/cache/dev/twig/56/5602a6ce6f55e395c6d5a3810910cd35.php line 49

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* custom_invoice_detail/index.html.twig */
  14. class __TwigTemplate_51f3e7832c0fb6038657e21728688ada extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content_title' => [$this'block_content_title'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@EasyAdmin/page/content.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""custom_invoice_detail/index.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""custom_invoice_detail/index.html.twig"));
  39.         $this->parent $this->loadTemplate("@EasyAdmin/page/content.html.twig""custom_invoice_detail/index.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_content_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content_title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content_title"));
  54.         echo "Ajout d'un service pour la facture : ";
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 5
  61.     public function block_main($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  68.         // line 6
  69.         echo "
  70.     <form id=\"invoiceDetailForm\">
  71.     <div class=\"form-group\">
  72.         <label for=\"invoice\">Facture:</label>
  73.         <select id=\"invoice\" name=\"invoice\" class=\"form-control\">
  74.             <option value=";
  75.         // line 11
  76.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["invoice"]) || array_key_exists("invoice"$context) ? $context["invoice"] : (function () { throw new RuntimeError('Variable "invoice" does not exist.'11$this->source); })()), "id", [], "any"falsefalsefalse11), "html"nulltrue);
  77.         echo ">";
  78.         echo twig_escape_filter($this->env, (isset($context["invoice"]) || array_key_exists("invoice"$context) ? $context["invoice"] : (function () { throw new RuntimeError('Variable "invoice" does not exist.'11$this->source); })()), "html"nulltrue);
  79.         echo "</option>
  80.         </select>
  81.     </div>
  82.     <div class=\"form-group\">
  83.         <label for=\"categorie\">Categorie:</label>
  84.         <select id=\"categorie\" name=\"categorie\" class=\"form-control\">
  85.             ";
  86.         // line 18
  87.         $context['_parent'] = $context;
  88.         $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'18$this->source); })()));
  89.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  90.             // line 19
  91.             echo "             <option value=";
  92.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse19), "html"nulltrue);
  93.             echo "> ";
  94.             echo twig_escape_filter($this->env$context["category"], "html"nulltrue);
  95.             echo " </option>
  96.              ";
  97.         }
  98.         $_parent $context['_parent'];
  99.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  100.         $context array_intersect_key($context$_parent) + $_parent;
  101.         // line 21
  102.         echo "        </select>
  103.     </div>
  104.     <div class=\"form-group\">
  105.         <label for=\"service\">Service:</label>
  106.         <select id=\"service\" name=\"service\" class=\"form-control\">
  107.             <!-- Render options for services -->
  108.         </select>
  109.     </div>
  110.     <div class=\"form-group\">
  111.         <label for=\"quantity\">Quantité:</label>
  112.         <input type=\"number\" id=\"quantity\" name=\"quantity\" class=\"form-control\">
  113.     </div>
  114.     <div class=\"form-group\">
  115.         <label for=\"value\">Valeur:</label>
  116.         <input type=\"number\" step=\"0.01\" id=\"value\" name=\"value\" class=\"form-control\">
  117.     </div>
  118.     <button type=\"button\" id='detail_submit'>Submit</button>
  119. </form>
  120. ";
  121.         
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  123.         
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  125.     }
  126.     public function getTemplateName()
  127.     {
  128.         return "custom_invoice_detail/index.html.twig";
  129.     }
  130.     public function isTraitable()
  131.     {
  132.         return false;
  133.     }
  134.     public function getDebugInfo()
  135.     {
  136.         return array (  122 => 21,  111 => 19,  107 => 18,  95 => 11,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  137.     }
  138.     public function getSourceContext()
  139.     {
  140.         return new Source("{% extends '@EasyAdmin/page/content.html.twig' %}
  141. {% block content_title %}Ajout d'un service pour la facture : {% endblock %}
  142. {% block main %}
  143.     <form id=\"invoiceDetailForm\">
  144.     <div class=\"form-group\">
  145.         <label for=\"invoice\">Facture:</label>
  146.         <select id=\"invoice\" name=\"invoice\" class=\"form-control\">
  147.             <option value={{invoice.id}}>{{ invoice }}</option>
  148.         </select>
  149.     </div>
  150.     <div class=\"form-group\">
  151.         <label for=\"categorie\">Categorie:</label>
  152.         <select id=\"categorie\" name=\"categorie\" class=\"form-control\">
  153.             {% for category in categories %}
  154.              <option value={{category.id}}> {{category}} </option>
  155.              {% endfor %}
  156.         </select>
  157.     </div>
  158.     <div class=\"form-group\">
  159.         <label for=\"service\">Service:</label>
  160.         <select id=\"service\" name=\"service\" class=\"form-control\">
  161.             <!-- Render options for services -->
  162.         </select>
  163.     </div>
  164.     <div class=\"form-group\">
  165.         <label for=\"quantity\">Quantité:</label>
  166.         <input type=\"number\" id=\"quantity\" name=\"quantity\" class=\"form-control\">
  167.     </div>
  168.     <div class=\"form-group\">
  169.         <label for=\"value\">Valeur:</label>
  170.         <input type=\"number\" step=\"0.01\" id=\"value\" name=\"value\" class=\"form-control\">
  171.     </div>
  172.     <button type=\"button\" id='detail_submit'>Submit</button>
  173. </form>
  174. {% endblock %}""custom_invoice_detail/index.html.twig""/var/www/avdb-invoices.com/templates/custom_invoice_detail/index.html.twig");
  175.     }
  176. }