<?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;
/* movie/add-new-movie.html.twig */
class __TwigTemplate_88a6abfb4d031dde1a82a2ff7ac0cbcd 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 "layouts/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "movie/add-new-movie.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "movie/add-new-movie.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "movie/add-new-movie.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo "<style>
.form-container {
max-width: 600px;
margin: 20px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: #f9f9f9;
}
h1 {
color: #333; /* Setting the color of the heading to dark gray */
text-align: center; /* Centering the heading text */
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #333; /* Ensuring label text is clearly visible */
}
input[type=\"text\"],
select,
input[type=\"file\"] {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box; /* Adds padding and border to the element's total width and height */
color: #333; /* Ensuring input text is clearly visible */
background-color: #fff; /* Ensuring input background is white for contrast */
}
button {
width: 100%;
padding: 10px;
background-color: #007BFF;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #0056b3;
}
</style>
<div class=\"form-container\">
<h1>Add New Movie</h1>
<form method=\"post\" action=\"";
// line 54
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("movie_add");
echo "\" enctype=\"multipart/form-data\">
<div class=\"form-group\">
<label for=\"title\">Title:</label>
<input type=\"text\" id=\"title\" name=\"title\" required>
</div>
<div class=\"form-group\">
<label for=\"type\">Type:</label>
<select id=\"type\" name=\"type\">
<option value=\"Blu-Ray\">Blu-Ray</option>
<option value=\"DVD\">DVD</option>
<option value=\"Other\">Other</option>
</select>
</div>
<div class=\"form-group\">
<label for=\"status\">Status:</label>
<select id=\"status\" name=\"status\">
<option value=\"Owned\">Owned</option>
<option value=\"Ordered\">Ordered</option>
</select>
</div>
<div class=\"form-group\">
<label for=\"uploadImage\">Upload Steelbook Image (optional):</label>
<input type=\"file\" id=\"uploadImage\" name=\"uploadImage\" accept=\"image/*\" multiple>
</div>
<div class=\"form-group\">
<label for=\"captureImage\">Capture Steelbook Image (optional):</label>
<input type=\"file\" id=\"captureImage\" name=\"captureImage\" accept=\"image/*\" capture=\"camera\">
</div>
<button type=\"submit\">Add Movie</button>
</form>
</div>
<script>
// Optional: JavaScript for handling the camera and image preview
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "movie/add-new-movie.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 120 => 54, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% block content %}
<style>
.form-container {
max-width: 600px;
margin: 20px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: #f9f9f9;
}
h1 {
color: #333; /* Setting the color of the heading to dark gray */
text-align: center; /* Centering the heading text */
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #333; /* Ensuring label text is clearly visible */
}
input[type=\"text\"],
select,
input[type=\"file\"] {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box; /* Adds padding and border to the element's total width and height */
color: #333; /* Ensuring input text is clearly visible */
background-color: #fff; /* Ensuring input background is white for contrast */
}
button {
width: 100%;
padding: 10px;
background-color: #007BFF;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #0056b3;
}
</style>
<div class=\"form-container\">
<h1>Add New Movie</h1>
<form method=\"post\" action=\"{{ path('movie_add') }}\" enctype=\"multipart/form-data\">
<div class=\"form-group\">
<label for=\"title\">Title:</label>
<input type=\"text\" id=\"title\" name=\"title\" required>
</div>
<div class=\"form-group\">
<label for=\"type\">Type:</label>
<select id=\"type\" name=\"type\">
<option value=\"Blu-Ray\">Blu-Ray</option>
<option value=\"DVD\">DVD</option>
<option value=\"Other\">Other</option>
</select>
</div>
<div class=\"form-group\">
<label for=\"status\">Status:</label>
<select id=\"status\" name=\"status\">
<option value=\"Owned\">Owned</option>
<option value=\"Ordered\">Ordered</option>
</select>
</div>
<div class=\"form-group\">
<label for=\"uploadImage\">Upload Steelbook Image (optional):</label>
<input type=\"file\" id=\"uploadImage\" name=\"uploadImage\" accept=\"image/*\" multiple>
</div>
<div class=\"form-group\">
<label for=\"captureImage\">Capture Steelbook Image (optional):</label>
<input type=\"file\" id=\"captureImage\" name=\"captureImage\" accept=\"image/*\" capture=\"camera\">
</div>
<button type=\"submit\">Add Movie</button>
</form>
</div>
<script>
// Optional: JavaScript for handling the camera and image preview
</script>
{% endblock %}", "movie/add-new-movie.html.twig", "/var/www/pimcore/MovieCollection/templates/movie/add-new-movie.html.twig");
}
}