templates/movie/add-new-movie.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% block content %}
  3. <style>
  4.     .form-container {
  5.         max-width: 600px;
  6.         margin: 20px auto;
  7.         padding: 20px;
  8.         border: 1px solid #ccc;
  9.         border-radius: 8px;
  10.         background-color: #f9f9f9;
  11.     }
  12.     h1 {
  13.         color: #333; /* Setting the color of the heading to dark gray */
  14.         text-align: center; /* Centering the heading text */
  15.     }
  16.     .form-group {
  17.         margin-bottom: 15px;
  18.     }
  19.     label {
  20.         display: block;
  21.         margin-bottom: 5px;
  22.         font-weight: bold;
  23.         color: #333; /* Ensuring label text is clearly visible */
  24.     }
  25.     input[type="text"],
  26.     select,
  27.     input[type="file"] {
  28.         width: 100%;
  29.         padding: 8px;
  30.         border: 1px solid #ccc;
  31.         border-radius: 4px;
  32.         box-sizing: border-box; /* Adds padding and border to the element's total width and height */
  33.         color: #333; /* Ensuring input text is clearly visible */
  34.         background-color: #fff; /* Ensuring input background is white for contrast */
  35.     }
  36.     button {
  37.         width: 100%;
  38.         padding: 10px;
  39.         background-color: #007BFF;
  40.         color: white;
  41.         border: none;
  42.         border-radius: 4px;
  43.         cursor: pointer;
  44.         font-size: 16px;
  45.     }
  46.     button:hover {
  47.         background-color: #0056b3;
  48.     }
  49. </style>
  50. <div class="form-container">
  51.     <h1>Add New Movie</h1>
  52.     <form method="post" action="{{ path('movie_add') }}" enctype="multipart/form-data">
  53.         <div class="form-group">
  54.             <label for="title">Title:</label>
  55.             <input type="text" id="title" name="title" required>
  56.         </div>
  57.         <div class="form-group">
  58.             <label for="type">Type:</label>
  59.             <select id="type" name="type">
  60.                 <option value="Blu-Ray">Blu-Ray</option>
  61.                 <option value="DVD">DVD</option>
  62.                 <option value="Other">Other</option>
  63.             </select>
  64.         </div>
  65.         <div class="form-group">
  66.             <label for="status">Status:</label>
  67.             <select id="status" name="status">
  68.                 <option value="Owned">Owned</option>
  69.                 <option value="Ordered">Ordered</option>
  70.             </select>
  71.         </div>
  72.         <div class="form-group">
  73.             <label for="uploadImage">Upload Steelbook Image (optional):</label>
  74.             <input type="file" id="uploadImage" name="uploadImage" accept="image/*" multiple>
  75.         </div>
  76.         <div class="form-group">
  77.             <label for="captureImage">Capture Steelbook Image (optional):</label>
  78.             <input type="file" id="captureImage" name="captureImage" accept="image/*" capture="camera">
  79.         </div>
  80.         <button type="submit">Add Movie</button>
  81.     </form>
  82. </div>
  83. <script>
  84.     // Optional: JavaScript for handling the camera and image preview
  85. </script>
  86. {% endblock %}