blazerapp/cms/templates/events.html.hbs

202 lines
8.9 KiB
Handlebars
Raw Normal View History

2021-09-08 21:41:34 -04:00
{{! vim: set ft=html: }}
2021-08-29 14:59:11 -04:00
<html>
<head>
<link rel="stylesheet" href="/static/style.css">
2021-09-11 14:18:08 -04:00
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700&display=swap" rel="stylesheet">
2021-08-29 14:59:11 -04:00
</head>
2021-09-11 14:18:08 -04:00
<body>
<div class="container-md p-3" style="">
<h2 style="font-size: 24px; font-weight: bold">
Admin Panel
</h2>
</div>
<div class="container-md d-flex gap-4" style="">
<!-- event list -->
<div class="p-3" style="flex: 1;">
<h1 style="font-size: 28px;">Calendar Events</h1>
<div class="vstack gap-3 mt-4">
{{#each ctx}}
<div class="bg-light border rounded-3 p-2">
<small>ID: {{id}} | LANG: {{lang}}</small>
<h3 class="my-2" style="font-size: 18px;">{{title}}</h3>
<p class="mb-2">{{text}}</p>
<small><b>{{event_date}}</b> at <b>{{location}}</b></small>
<p class="mt-2 mb-0">Organizer: {{name}} | Organizer Email: {{emails}}</p>
2021-09-11 17:48:17 -04:00
<form action="events/del" method="post">
<div class="d-flex mt-3">
<input type="number" class="form-control form-control-sm" id="id" name="id" value = {{id}} style="display: none">
</div>
<input type="submit" value="Delete">
</form>
2021-09-11 14:18:08 -04:00
</div>
{{/each}}
</div>
</div>
<!-- event actions -->
<div class="p-3" style="flex: 1;">
<h1 style="font-size: 28px;">Event Actions</h1>
<hr/>
<div class="my-4">
<h2 style="font-size: 20px;">Add Event</h2>
2021-09-08 23:50:20 -04:00
<form action="events/add" method="post">
2021-09-11 14:18:08 -04:00
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-12 15:08:49 -04:00
<select name="lang", id="lang">
<option value="" disabled selected>Select Language</option>
<option value="en">English</option>
<option value="es">Spanish</option>
</select>
2021-09-11 14:18:08 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Title</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="title" name="title">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Location</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="location" name="location">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Information</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="text" name="text">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Date</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="event_date" name="event_date">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Teacher/Organizer</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="name" name="name">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Teacher/Organizer Email</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="emails" name="emails">
</div>
</div>
<input type="submit" value="Submit">
2021-09-08 23:50:20 -04:00
</form>
2021-09-11 14:18:08 -04:00
</div>
<div class="my-4">
<h2 style="font-size: 20px;">Update Event</h2>
2021-09-08 23:50:20 -04:00
<form action="events/upd" method="post">
2021-09-11 14:18:08 -04:00
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">ID of event to update</p>
</div>
<div style="flex: 1; align: center;">
<input type="number" class="form-control form-control-sm" id="id" name="id">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-12 15:08:49 -04:00
<select name="lang", id="lang">
<option value="" disabled selected>Select Language</option>
<option value="en">English</option>
<option value="es">Spanish</option>
</select>
2021-09-11 14:18:08 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Title</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="title" name="title">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Location</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="location" name="location">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Information</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="text" name="text">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Date</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="event_date" name="event_date">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Teacher/Organizer</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="name" name="name">
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
<p class="my-0">Teacher/Organizer Email</p>
</div>
<div style="flex: 1; align: center;">
<input type="text" class="form-control form-control-sm" id="emails" name="emails">
</div>
</div>
2021-09-08 23:50:20 -04:00
<input type="submit", value="Submit">
</form>
2021-09-11 14:18:08 -04:00
</div>
<hr/>
2021-09-08 23:50:20 -04:00
</div>
</div>
2021-08-29 14:59:11 -04:00
</body>
2021-09-11 17:48:17 -04:00
</html>