mirror of
https://github.com/Blair-SGA-Dev-Team/blazerapp.git
synced 2024-11-14 09:21:16 -05:00
207 lines
9.3 KiB
Handlebars
207 lines
9.3 KiB
Handlebars
{{! 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>
|
|
<div class="container-md p-3" style="display: flex; flex-direction: row;">
|
|
<a href="http://127.0.0.1:8080/">
|
|
<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">
|
|
Admin Panel
|
|
</h2>
|
|
</div>
|
|
|
|
<div class="container-md d-flex gap-4" style="">
|
|
<!-- announcements list -->
|
|
<div class="p-3" style="flex: 1;">
|
|
<h1 style="font-size: 28px;">Student of the Week</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}} | Grade {{grade}}</h3>
|
|
<p class="mb-2">{{image}}</p>
|
|
<p class="mb-2">Message: {{messages}}</p>
|
|
<p class="mb-2">Hobbies: {{hobbies}}</p>
|
|
<p class="mb-2">Achievements: {{achievements}}</p>
|
|
<form action="student/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>
|
|
|
|
<!-- announcements actions -->
|
|
<div class="p-3" style="flex: 1;">
|
|
<h1 style="font-size: 28px;">SOTW Actions</h1>
|
|
|
|
<hr/>
|
|
|
|
<div class="my-4">
|
|
<h2 style="font-size: 20px;">Add SOTW</h2>
|
|
<form action="student/add" method="post">
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<select name="lang", id="lang" required>
|
|
<option value="" disabled selected>Select Language</option>
|
|
<option value="en">English</option>
|
|
<option value="es">Spanish</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Student Name</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Student Picture</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="file" name="image", id="image", accept="image/png" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Grade</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="grade" name="grade" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Message</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="messages" name="messages" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Hobbies</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="hobbies" name="hobbies" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Achievements</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="achievements" name="achievements" required>
|
|
</div>
|
|
</div>
|
|
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
</div>
|
|
|
|
<div class="my-4">
|
|
<h2 style="font-size: 20px;">Update SOTW</h2>
|
|
<form action="student/upd" method="post">
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">ID of SOTW to update</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<select name="lang", id="lang" required>
|
|
<option value="" disabled selected>Select Language</option>
|
|
<option value="en">English</option>
|
|
<option value="es">Spanish</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Student Name</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Student Picture</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="file" name="image", id="image", accept="image/png" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Grade</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="grade" name="grade" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Message</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="messages" name="messages" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Hobbies</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="hobbies" name="hobbies" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex mt-3">
|
|
<div style="flex: 1; justify-content: center;">
|
|
<p class="my-0">Achievements</p>
|
|
</div>
|
|
<div style="flex: 1; align: center;">
|
|
<input type="text" class="form-control form-control-sm" id="achievements" name="achievements" required>
|
|
</div>
|
|
</div>
|
|
|
|
<input type="submit", value="Submit">
|
|
</form>
|
|
</div>
|
|
|
|
<hr/>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |