diff --git a/cms/migrations/setup/up.sql b/cms/migrations/setup/up.sql index 22b74c3..b1c884a 100644 --- a/cms/migrations/setup/up.sql +++ b/cms/migrations/setup/up.sql @@ -12,7 +12,7 @@ CREATE TABLE events ( text VARCHAR, location VARCHAR NOT NULL, event_date DATE, - name VARCHAR NOT NULL, + name VARCHAR NOT NULL, emails VARCHAR NOT NULL ); diff --git a/cms/src/data/mod.rs b/cms/src/data/mod.rs index e29861d..2aa1bb7 100644 --- a/cms/src/data/mod.rs +++ b/cms/src/data/mod.rs @@ -150,7 +150,7 @@ api_route! { text: (Text, String, String), event_date: (Date, NaiveDate, DateForm), name: (Text, String, String), - emails: (Text, String, String) + emails: (Text, String, String), } } diff --git a/cms/templates/events.html.hbs b/cms/templates/events.html.hbs index 7d8fb92..ee11327 100644 --- a/cms/templates/events.html.hbs +++ b/cms/templates/events.html.hbs @@ -4,15 +4,15 @@ - +

Calendar Events

{{#each ctx}} -
-

ID: {{id}} LANG: {{lang}} EVENT TITLE: {{title}} EVENT LOCATION: {{location}} EVNET INFO: {{text}} EVENT DATE: {{event_date}}

+
+

ID: {{id}}   LANG: {{lang}}   EVENT TITLE: {{title}}   EVENT LOCATION: {{location}}   EVNET INFO: {{text}}   EVENT DATE: {{event_date}}   TEACHER/ORGANIZER {{name}}   EMAIL {{emails}}

{{/each}}
-
+

Add Calendar Event

@@ -30,7 +30,6 @@

Teacher/Organizer Email

-

@@ -49,7 +48,7 @@

ID of Event to be Updated

-

Lang (enter 'en' (for english) or 'es' (for spanish)

+

Lang (enter 'en' (for english) or 'es' (for spanish))

Title

@@ -73,3 +72,9 @@ + +