blazerapp/cms/templates/clubs.html.hbs

170 lines
7.5 KiB
Handlebars
Raw Permalink Normal View History

2021-09-11 17:48:17 -04:00
{{! vim: set ft=html: }}
<html>
<head>
<link rel="stylesheet" href="/static/style.css">
<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">
</head>
<body>
2021-09-12 17:51:16 -04:00
<div class="container-md p-3" style="display: flex; flex-direction: row;">
2021-09-12 22:02:13 -04:00
<a href="/">
2021-09-12 17:51:16 -04:00
<img src="../static/home.png" style="height: 50px; width: 50px; margin-right: 10px; align-self: center"/>
</a>
<h2 style="font-size: 24px; font-weight: bold; align-self: center">
2021-09-11 17:48:17 -04:00
Admin Panel
</h2>
</div>
<div class="container-md d-flex gap-4" style="">
<!-- clubs list -->
<div class="p-3" style="flex: 1;">
<h1 style="font-size: 28px;">Clubs</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;">{{name}}</h3>
<p class="mb-2">{{meeting}}</p>
2021-09-11 18:16:10 -04:00
<p class="mb-2">{{link}}</p>
2021-09-11 17:48:17 -04:00
<p class="mt-2 mb-0">Sponsor: {{sponsor}}</p>
<form action="clubs/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>
</div>
{{/each}}
</div>
</div>
<!-- clubs actions -->
<div class="p-3" style="flex: 1;">
<h1 style="font-size: 28px;">Clubs Actions</h1>
<hr/>
<div class="my-4">
2021-09-11 18:16:10 -04:00
<h2 style="font-size: 20px;">Add Club</h2>
2021-09-11 17:48:17 -04:00
<form action="clubs/add" method="post">
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-12 17:29:07 -04:00
<select name="lang", id="lang" required>
2021-09-12 15:08:49 -04:00
<option value="" disabled selected>Select Language</option>
<option value="en">English</option>
<option value="es">Spanish</option>
</select>
2021-09-11 17:48:17 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-11 18:16:10 -04:00
<p class="my-0">Name</p>
2021-09-11 17:48:17 -04:00
</div>
<div style="flex: 1; align: center;">
2021-09-12 17:29:07 -04:00
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
2021-09-11 17:48:17 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-12 15:08:49 -04:00
<p class="my-0">Meeting Date and Time</p>
2021-09-11 17:48:17 -04:00
</div>
<div style="flex: 1; align: center;">
2021-09-12 17:29:07 -04:00
<input type="text" class="form-control form-control-sm" id="meeting" name="meeting" required>
2021-09-11 17:48:17 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-12 15:08:49 -04:00
<p class="my-0">Meeting Location</p>
2021-09-11 17:48:17 -04:00
</div>
<div style="flex: 1; align: center;">
2021-09-12 17:29:07 -04:00
<input type="text" class="form-control form-control-sm" id="link" name="link" required>
2021-09-11 17:48:17 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-11 18:16:10 -04:00
<p class="my-0">Sponsor</p>
2021-09-11 17:48:17 -04:00
</div>
<div style="flex: 1; align: center;">
2021-09-12 17:29:07 -04:00
<input type="text" class="form-control form-control-sm" id="sponsor" name="sponsor" required>
2021-09-11 17:48:17 -04:00
</div>
</div>
<input type="submit" value="Submit">
</form>
</div>
<div class="my-4">
2021-09-11 18:16:10 -04:00
<h2 style="font-size: 20px;">Update Club</h2>
2021-09-12 15:08:49 -04:00
<form action="clubs/upd" method="post">
2021-09-11 17:48:17 -04:00
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-11 18:16:10 -04:00
<p class="my-0">ID of club to update</p>
2021-09-11 17:48:17 -04:00
</div>
<div style="flex: 1; align: center;">
2021-09-12 17:29:07 -04:00
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
2021-09-11 17:48:17 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-12 17:29:07 -04:00
<select name="lang", id="lang" required>
2021-09-12 15:08:49 -04:00
<option value="" disabled selected>Select Language</option>
<option value="en">English</option>
<option value="es">Spanish</option>
</select>
2021-09-11 17:48:17 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-11 18:16:10 -04:00
<p class="my-0">Name</p>
2021-09-11 17:48:17 -04:00
</div>
<div style="flex: 1; align: center;">
2021-09-12 17:29:07 -04:00
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
2021-09-11 17:48:17 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-12 15:08:49 -04:00
<p class="my-0">Meeting Date and Time</p>
2021-09-11 17:48:17 -04:00
</div>
<div style="flex: 1; align: center;">
2021-09-12 17:29:07 -04:00
<input type="text" class="form-control form-control-sm" id="meeting" name="meeting" required>
2021-09-11 17:48:17 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-12 15:08:49 -04:00
<p class="my-0">Meeting Location</p>
2021-09-11 17:48:17 -04:00
</div>
<div style="flex: 1; align: center;">
2021-09-12 17:29:07 -04:00
<input type="text" class="form-control form-control-sm" id="link" name="link" required>
2021-09-11 17:48:17 -04:00
</div>
</div>
<div class="d-flex mt-3">
<div style="flex: 1; justify-content: center;">
2021-09-11 18:16:10 -04:00
<p class="my-0">Sponsor</p>
2021-09-11 17:48:17 -04:00
</div>
<div style="flex: 1; align: center;">
2021-09-12 17:29:07 -04:00
<input type="text" class="form-control form-control-sm" id="sponsor" name="sponsor" required>
2021-09-11 17:48:17 -04:00
</div>
</div>
<input type="submit", value="Submit">
</form>
</div>
<hr/>
</div>
</div>
</body>
</html>