diff --git a/app/Views/event/create.php b/app/Views/event/create.php index 1e31d66ef883167af9282f8ded7e5203b4de2eab..c3a9a1c3471fa73d2e9a87f47ea91028316746e5 100644 --- a/app/Views/event/create.php +++ b/app/Views/event/create.php @@ -17,29 +17,31 @@ <body> <?php include '../template/navbar.php';?> <!-- <h1 id="title">Create an Event</h1> --> - <form method="post" class="event-form" action="../../router.php" enctype="multipart/form-data"> - <input type="text" name="eventName" placeholder="Name" required> - <input type="text" name="eventStock" placeholder="Stock" required> - <input type="text" name="eventPrice" placeholder="Price" required> - <input type="datetime-local" name="eventDate" required> - <input type="text" name="eventLocation" placeholder="Location" required> + <div class="main-content"> + <form method="post" class="event-form" action="../../router.php" enctype="multipart/form-data"> + <input type="text" name="eventName" placeholder="Name" required> + <input type="text" name="eventStock" placeholder="Stock" required> + <input type="text" name="eventPrice" placeholder="Price" required> + <input type="datetime-local" name="eventDate" required> + <input type="text" name="eventLocation" placeholder="Location" required> - <!-- Drag-and-drop area for image upload --> - <div id="drop-area-create"> - <p>Drag and drop an image file here or click to select one.</p> - <input type="file" id="file-input-create" name="gambar" accept="image/*" required> - </div> + <!-- Drag-and-drop area for image upload --> + <div id="drop-area-create"> + <p>Drag and drop an image file here or click to select one.</p> + <input type="file" id="file-input-create" name="gambar" accept="image/*" required> + </div> - <!-- <input type="text" name="vid" placeholder="Video URL"> --> - <div id="drop-area-create"> - <p>Drag and drop an video file here or click to select one.</p> - <input type="file" id="file-input-create" name="vid" accept="video/*" required> - </div> - <div id="button-container"> - <button type="submit" name="eventAction" value="createEvent">Create</button> - <button type="button" id="cancelButton">Cancel</button> - </div> - </form> + <!-- <input type="text" name="vid" placeholder="Video URL"> --> + <div id="drop-area-create"> + <p>Drag and drop an video file here or click to select one.</p> + <input type="file" id="file-input-create" name="vid" accept="video/*" required> + </div> + <div id="button-container"> + <button type="submit" name="eventAction" value="createEvent">Create</button> + <button type="button" id="cancelButton">Cancel</button> + </div> + </form> + </div> <?php include '../template/footer.php';?> <script> diff --git a/app/Views/event/update.php b/app/Views/event/update.php index dc5323e0e9efc6542795fcbed48b60c099a4ddcf..48c82a230cf1a4b34fef57b24044c8c7270236d3 100644 --- a/app/Views/event/update.php +++ b/app/Views/event/update.php @@ -17,29 +17,31 @@ <body> <?php include '../template/navbar.php';?> <!-- <h1>Update Event</h1> --> - <form method="post" class="event-form" action="../../router.php" enctype="multipart/form-data"> - <input type="hidden" name="eventId" value="<?php echo $_GET['id']; ?>"> - <input type="text" name="eventName" placeholder="Name" required> - <input type="text" name="eventPrice" placeholder="Price" required> - <input type="datetime-local" name="eventDate" required> - <input type="text" name="eventLocation" placeholder="Location" required> + <div class="main-content"> + <form method="post" class="event-form" action="../../router.php" enctype="multipart/form-data"> + <input type="hidden" name="eventId" value="<?php echo $_GET['id']; ?>"> + <input type="text" name="eventName" placeholder="Name" required> + <input type="text" name="eventPrice" placeholder="Price" required> + <input type="datetime-local" name="eventDate" required> + <input type="text" name="eventLocation" placeholder="Location" required> - <!-- Drag-and-drop area for image upload --> - <div id="drop-area-create"> - <p>Drag and drop an image file here or click to select one.</p> - <input type="file" id="file-input-create" name="gambar" accept="image/*"> - </div> + <!-- Drag-and-drop area for image upload --> + <div id="drop-area-create"> + <p>Drag and drop an image file here or click to select one.</p> + <input type="file" id="file-input-create" name="gambar" accept="image/*"> + </div> - <!-- <input type="text" name="vid" placeholder="Video URL"> --> - <div id="drop-area-create"> - <p>Drag and drop an video file here or click to select one.</p> - <input type="file" id="file-input-create" name="vid" accept="video/*"> - </div> - <div id="button-container"> - <button type="submit" name="eventAction" value="updateEvent">Update</button> - <button type="button" id="cancelButton">Cancel</button> - </div> - </form> + <!-- <input type="text" name="vid" placeholder="Video URL"> --> + <div id="drop-area-create"> + <p>Drag and drop an video file here or click to select one.</p> + <input type="file" id="file-input-create" name="vid" accept="video/*"> + </div> + <div id="button-container"> + <button type="submit" name="eventAction" value="updateEvent">Update</button> + <button type="button" id="cancelButton">Cancel</button> + </div> + </form> + </div> <?php include '../template/footer.php';?> <script>