From ff7d936c4625e9845710f41533b29f2d1bf706d3 Mon Sep 17 00:00:00 2001 From: rutvikrj26 Date: Wed, 15 Nov 2023 10:10:49 -0500 Subject: [PATCH] Fully working events functionality - serialized add/remove pending --- .../templates/console/event_management.html | 127 ++++--- .../templates/events/event_applications.html | 48 ++- .../events/templates/events/event_home.html | 329 ++++++++---------- physionet-django/events/views.py | 22 +- 4 files changed, 272 insertions(+), 254 deletions(-) diff --git a/physionet-django/console/templates/console/event_management.html b/physionet-django/console/templates/console/event_management.html index 8a1cd8bd58..02a9da2c9f 100644 --- a/physionet-django/console/templates/console/event_management.html +++ b/physionet-django/console/templates/console/event_management.html @@ -2,78 +2,77 @@ {% load static %} {% block title %}Event Management{% endblock %} {% block content %} -

{{ event.title }}

-
-
-
Event Details
-
-
-
Event Organizer:
- -
-
-
Category:
-
{{ event.category }}
-
-
-
Created on:
-
{{ event.added_datetime | date:"d M Y" }}
-
-
-
Start Date:
-
{{ event.start_date | date:"d M Y" }}
+

{{ event.title }}

+
+
+
Event Details
+
+
+
Event Organizer:
+ -
-
End Date:
-
{{ event.end_date | date:"d M Y" }}
-
-
-
Allowed Domains:
-
- {% if event.allowed_domains %} - {{ event.allowed_domains }} - {% else %} - {% endif %} -
+
+
+
Category:
+
{{ event.category }}
+
+
+
Created on:
+
{{ event.added_datetime | date:"d M Y" }}
+
+
+
Start Date:
+
{{ event.start_date | date:"d M Y" }}
+
+
+
End Date:
+
{{ event.end_date | date:"d M Y" }}
+
+
+
Allowed Domains:
+
+ {% if event.allowed_domains %} + {{ event.allowed_domains }} + {% else %} + {% endif %}
-
-
Total participants:
-
-
-
{{ event.participants.count }}
-
- -
+
+
+
Total participants:
+
+
+
{{ event.participants.count }}
+
+
-
-
Description:
-
{{ event.description }}
-
+
+
+
Description:
+
{{ event.description }}
- {% include 'console/event_management_manage_dataset.html' %} - + +{% block local_js_bottom %} + +{% endblock %} \ No newline at end of file diff --git a/physionet-django/events/templates/events/event_home.html b/physionet-django/events/templates/events/event_home.html index c583fa6c7f..34b0f6b802 100644 --- a/physionet-django/events/templates/events/event_home.html +++ b/physionet-django/events/templates/events/event_home.html @@ -16,221 +16,188 @@ {% include "message_snippet.html" %}

Events Home

- {% if can_change_event %} -

Create new events and access event details.

-

- - Create New Event -

- {% else %} -

View events that you have registered to attend.

- {% endif %} -
+ {% if can_change_event %} +

Create new events and access event details.

+

+ + Create New Event +

+ {% else %} +

View events that you have registered to attend.

+ {% endif %} +
-