var/cache/dev/twig/5b/5b8482ec6b31368ed3d726224cc8a55e.php line 38

Open in your IDE?
  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. /* movie/add-new-movie.html.twig */
  14. class __TwigTemplate_88a6abfb4d031dde1a82a2ff7ac0cbcd 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' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layouts/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""movie/add-new-movie.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""movie/add-new-movie.html.twig"));
  38.         $this->parent $this->loadTemplate("layouts/layout.html.twig""movie/add-new-movie.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 4
  54.         echo "<style>
  55.     .form-container {
  56.         max-width: 600px;
  57.         margin: 20px auto;
  58.         padding: 20px;
  59.         border: 1px solid #ccc;
  60.         border-radius: 8px;
  61.         background-color: #f9f9f9;
  62.     }
  63.     h1 {
  64.         color: #333; /* Setting the color of the heading to dark gray */
  65.         text-align: center; /* Centering the heading text */
  66.     }
  67.     .form-group {
  68.         margin-bottom: 15px;
  69.     }
  70.     label {
  71.         display: block;
  72.         margin-bottom: 5px;
  73.         font-weight: bold;
  74.         color: #333; /* Ensuring label text is clearly visible */
  75.     }
  76.     input[type=\"text\"],
  77.     select,
  78.     input[type=\"file\"] {
  79.         width: 100%;
  80.         padding: 8px;
  81.         border: 1px solid #ccc;
  82.         border-radius: 4px;
  83.         box-sizing: border-box; /* Adds padding and border to the element's total width and height */
  84.         color: #333; /* Ensuring input text is clearly visible */
  85.         background-color: #fff; /* Ensuring input background is white for contrast */
  86.     }
  87.     button {
  88.         width: 100%;
  89.         padding: 10px;
  90.         background-color: #007BFF;
  91.         color: white;
  92.         border: none;
  93.         border-radius: 4px;
  94.         cursor: pointer;
  95.         font-size: 16px;
  96.     }
  97.     button:hover {
  98.         background-color: #0056b3;
  99.     }
  100. </style>
  101. <div class=\"form-container\">
  102.     <h1>Add New Movie</h1>
  103.     <form method=\"post\" action=\"";
  104.         // line 54
  105.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("movie_add");
  106.         echo "\" enctype=\"multipart/form-data\">
  107.         <div class=\"form-group\">
  108.             <label for=\"title\">Title:</label>
  109.             <input type=\"text\" id=\"title\" name=\"title\" required>
  110.         </div>
  111.         <div class=\"form-group\">
  112.             <label for=\"type\">Type:</label>
  113.             <select id=\"type\" name=\"type\">
  114.                 <option value=\"Blu-Ray\">Blu-Ray</option>
  115.                 <option value=\"DVD\">DVD</option>
  116.                 <option value=\"Other\">Other</option>
  117.             </select>
  118.         </div>
  119.         <div class=\"form-group\">
  120.             <label for=\"status\">Status:</label>
  121.             <select id=\"status\" name=\"status\">
  122.                 <option value=\"Owned\">Owned</option>
  123.                 <option value=\"Ordered\">Ordered</option>
  124.             </select>
  125.         </div>
  126.         <div class=\"form-group\">
  127.             <label for=\"uploadImage\">Upload Steelbook Image (optional):</label>
  128.             <input type=\"file\" id=\"uploadImage\" name=\"uploadImage\" accept=\"image/*\" multiple>
  129.         </div>
  130.         <div class=\"form-group\">
  131.             <label for=\"captureImage\">Capture Steelbook Image (optional):</label>
  132.             <input type=\"file\" id=\"captureImage\" name=\"captureImage\" accept=\"image/*\" capture=\"camera\">
  133.         </div>
  134.         <button type=\"submit\">Add Movie</button>
  135.     </form>
  136. </div>
  137. <script>
  138.     // Optional: JavaScript for handling the camera and image preview
  139. </script>
  140. ";
  141.         
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  143.         
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  145.     }
  146.     public function getTemplateName()
  147.     {
  148.         return "movie/add-new-movie.html.twig";
  149.     }
  150.     public function isTraitable()
  151.     {
  152.         return false;
  153.     }
  154.     public function getDebugInfo()
  155.     {
  156.         return array (  120 => 54,  68 => 4,  58 => 3,  35 => 1,);
  157.     }
  158.     public function getSourceContext()
  159.     {
  160.         return new Source("{% extends 'layouts/layout.html.twig' %}
  161. {% block content %}
  162. <style>
  163.     .form-container {
  164.         max-width: 600px;
  165.         margin: 20px auto;
  166.         padding: 20px;
  167.         border: 1px solid #ccc;
  168.         border-radius: 8px;
  169.         background-color: #f9f9f9;
  170.     }
  171.     h1 {
  172.         color: #333; /* Setting the color of the heading to dark gray */
  173.         text-align: center; /* Centering the heading text */
  174.     }
  175.     .form-group {
  176.         margin-bottom: 15px;
  177.     }
  178.     label {
  179.         display: block;
  180.         margin-bottom: 5px;
  181.         font-weight: bold;
  182.         color: #333; /* Ensuring label text is clearly visible */
  183.     }
  184.     input[type=\"text\"],
  185.     select,
  186.     input[type=\"file\"] {
  187.         width: 100%;
  188.         padding: 8px;
  189.         border: 1px solid #ccc;
  190.         border-radius: 4px;
  191.         box-sizing: border-box; /* Adds padding and border to the element's total width and height */
  192.         color: #333; /* Ensuring input text is clearly visible */
  193.         background-color: #fff; /* Ensuring input background is white for contrast */
  194.     }
  195.     button {
  196.         width: 100%;
  197.         padding: 10px;
  198.         background-color: #007BFF;
  199.         color: white;
  200.         border: none;
  201.         border-radius: 4px;
  202.         cursor: pointer;
  203.         font-size: 16px;
  204.     }
  205.     button:hover {
  206.         background-color: #0056b3;
  207.     }
  208. </style>
  209. <div class=\"form-container\">
  210.     <h1>Add New Movie</h1>
  211.     <form method=\"post\" action=\"{{ path('movie_add') }}\" enctype=\"multipart/form-data\">
  212.         <div class=\"form-group\">
  213.             <label for=\"title\">Title:</label>
  214.             <input type=\"text\" id=\"title\" name=\"title\" required>
  215.         </div>
  216.         <div class=\"form-group\">
  217.             <label for=\"type\">Type:</label>
  218.             <select id=\"type\" name=\"type\">
  219.                 <option value=\"Blu-Ray\">Blu-Ray</option>
  220.                 <option value=\"DVD\">DVD</option>
  221.                 <option value=\"Other\">Other</option>
  222.             </select>
  223.         </div>
  224.         <div class=\"form-group\">
  225.             <label for=\"status\">Status:</label>
  226.             <select id=\"status\" name=\"status\">
  227.                 <option value=\"Owned\">Owned</option>
  228.                 <option value=\"Ordered\">Ordered</option>
  229.             </select>
  230.         </div>
  231.         <div class=\"form-group\">
  232.             <label for=\"uploadImage\">Upload Steelbook Image (optional):</label>
  233.             <input type=\"file\" id=\"uploadImage\" name=\"uploadImage\" accept=\"image/*\" multiple>
  234.         </div>
  235.         <div class=\"form-group\">
  236.             <label for=\"captureImage\">Capture Steelbook Image (optional):</label>
  237.             <input type=\"file\" id=\"captureImage\" name=\"captureImage\" accept=\"image/*\" capture=\"camera\">
  238.         </div>
  239.         <button type=\"submit\">Add Movie</button>
  240.     </form>
  241. </div>
  242. <script>
  243.     // Optional: JavaScript for handling the camera and image preview
  244. </script>
  245. {% endblock %}""movie/add-new-movie.html.twig""/var/www/pimcore/MovieCollection/templates/movie/add-new-movie.html.twig");
  246.     }
  247. }