{% 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 %}