mirror of
https://github.com/Blair-SGA-Dev-Team/blazerapp.git
synced 2026-07-16 06:50:22 -04:00
push
This commit is contained in:
@@ -11,7 +11,9 @@ CREATE TABLE events (
|
||||
title VARCHAR NOT NULL,
|
||||
text VARCHAR,
|
||||
location VARCHAR NOT NULL,
|
||||
event_date DATE
|
||||
event_date DATE,
|
||||
name VARCHAR NOT NULL,
|
||||
emails VARCHAR NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -149,6 +149,8 @@ api_route! {
|
||||
location: (Text, String, String),
|
||||
text: (Text, String, String),
|
||||
event_date: (Date, NaiveDate, DateForm),
|
||||
name: (Text, String, String),
|
||||
emails: (Text, String, String)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,37 +5,70 @@
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1 style='text-align: center; color: red'>Calendar Events</h1>
|
||||
{{#each ctx}}
|
||||
<p>{{id}} {{lang}} {{title}} {{location}} {{text}} {{event_date}}</p>
|
||||
<div style='display: flex; border-width:3'>
|
||||
<p>ID: {{id}} LANG: {{lang}} EVENT TITLE: {{title}} EVENT LOCATION: {{location}} EVNET INFO: {{text}} EVENT DATE: {{event_date}}</p>
|
||||
</div>
|
||||
{{/each}}
|
||||
<br>
|
||||
<p>add</p>
|
||||
<form action="events/add" method="post">
|
||||
<input type="text", id="lang", name="lang">
|
||||
<input type="text", id="title", name="title">
|
||||
<input type="text", id="location", name="location">
|
||||
<input type="text", id="text", name="text">
|
||||
<input type="text", id="event_date", name="event_date">
|
||||
<input type="submit", value="Submit">
|
||||
</form>
|
||||
<div style="display: flex; flex-direction: row; width: 100%; justify-content:space-between; padding-horizontal: 5%">
|
||||
<div>
|
||||
<h1>Add Calendar Event</h1>
|
||||
<form action="events/add" method="post">
|
||||
<p>Lang (enter 'en' (for english) or 'es' (for spanish))</p>
|
||||
<input type="text", id="lang", name="lang">
|
||||
<p>Title</p>
|
||||
<input type="text", id="title", name="title">
|
||||
<p>Location</p>
|
||||
<input type="text", id="location", name="location">
|
||||
<p>Information</p>
|
||||
<input type="text", id="text", name="text">
|
||||
<p>Date</p>
|
||||
<input type="text", id="event_date", name="event_date">
|
||||
<p>Teacher/Organizer </p>
|
||||
<input type="text", id="name", name="name">
|
||||
<p>Teacher/Organizer Email</p>
|
||||
<input type="text", id="emails", name="emails">
|
||||
<p></p>
|
||||
<input type="submit", value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h1>Delete Calendar Event</h1>
|
||||
<form action="events/del" method="post">
|
||||
<p>Enter the ID of event to delete: </p>
|
||||
<input type="number", id="id", name="id">
|
||||
<input type="submit", value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<p>del</p>
|
||||
<form action="events/del" method="post">
|
||||
<input type="number", id="id", name="id">
|
||||
<input type="submit", value="Submit">
|
||||
</form>
|
||||
|
||||
|
||||
<p>upd</p>
|
||||
<form action="events/upd" method="post">
|
||||
<input type="number", id="id", name="id">
|
||||
<input type="text", id="lang", name="lang">
|
||||
<input type="text", id="title", name="title">
|
||||
<input type="text", id="location", name="location">
|
||||
<input type="text", id="text", name="text">
|
||||
<input type="text", id="event_date", name="event_date">
|
||||
<input type="submit", value="Submit">
|
||||
</form>
|
||||
<div>
|
||||
<h1>Update Calendar Event</h1>
|
||||
<form action="events/upd" method="post">
|
||||
<p>ID of Event to be Updated</p>
|
||||
<input type="number", id="id", name="id">
|
||||
<p>Lang (enter 'en' (for english) or 'es' (for spanish)</p>
|
||||
<input type="text", id="lang", name="lang">
|
||||
<p>Title</p>
|
||||
<input type="text", id="title", name="title">
|
||||
<p>Location</p>
|
||||
<input type="text", id="location", name="location">
|
||||
<p>Information</p>
|
||||
<input type="text", id="text", name="text">
|
||||
<p>Date</p>
|
||||
<input type="text", id="event_date", name="event_date">
|
||||
<p>Teacher/Organizer </p>
|
||||
<input type="text", id="name", name="name">
|
||||
<p>Teacher/Organizer Email</p>
|
||||
<input type="text", id="emails", name="emails">
|
||||
<p></p>
|
||||
<input type="submit", value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user