From 3d4e002144e065930488b35447b0e8e30fa80329 Mon Sep 17 00:00:00 2001 From: Odelia Yechiel Date: Sat, 20 Feb 2021 04:49:07 +0200 Subject: [PATCH 1/4] fixed bugs in the user profile page --- .../partials/user_profile/middle_content.html | 13 + .../middle_content/event_card.html | 15 + .../middle_content/event_settings.html | 10 + .../middle_content/update_event_modal.html | 16 + .../partials/user_profile/sidebar_left.html | 12 + .../sidebar_left/daily_horoscope.html | 13 + .../sidebar_left/features_card.html | 33 ++ .../sidebar_left/profile_card.html | 8 + .../sidebar_left/profile_card/modals.html | 17 + .../modals/calendar_privacy_modal.html | 22 ++ .../modals/description_modal.html | 21 + .../profile_card/modals/email_modal.html | 20 + .../profile_card/modals/name_modal.html | 20 + .../profile_card/modals/telegram_modal.html | 21 + .../modals/upload_photo_modal.html | 21 + .../profile_card/profile_update_menu.html | 46 +++ .../profile_card/user_details.html | 14 + .../partials/user_profile/sidebar_right.html | 15 + .../user_profile/sidebar_right/meetups.html | 7 + .../user_profile/sidebar_right/new_card.html | 7 + .../user_profile/sidebar_right/new_card2.html | 7 + .../sidebar_right/on_this_day.html | 5 + app/templates/profile.html | 369 +----------------- 23 files changed, 367 insertions(+), 365 deletions(-) create mode 100644 app/templates/partials/user_profile/middle_content.html create mode 100644 app/templates/partials/user_profile/middle_content/event_card.html create mode 100644 app/templates/partials/user_profile/middle_content/event_settings.html create mode 100644 app/templates/partials/user_profile/middle_content/update_event_modal.html create mode 100644 app/templates/partials/user_profile/sidebar_left.html create mode 100644 app/templates/partials/user_profile/sidebar_left/daily_horoscope.html create mode 100644 app/templates/partials/user_profile/sidebar_left/features_card.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card/modals.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card/modals/calendar_privacy_modal.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card/modals/description_modal.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card/modals/email_modal.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card/modals/name_modal.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card/modals/telegram_modal.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card/modals/upload_photo_modal.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card/profile_update_menu.html create mode 100644 app/templates/partials/user_profile/sidebar_left/profile_card/user_details.html create mode 100644 app/templates/partials/user_profile/sidebar_right.html create mode 100644 app/templates/partials/user_profile/sidebar_right/meetups.html create mode 100644 app/templates/partials/user_profile/sidebar_right/new_card.html create mode 100644 app/templates/partials/user_profile/sidebar_right/new_card2.html create mode 100644 app/templates/partials/user_profile/sidebar_right/on_this_day.html diff --git a/app/templates/partials/user_profile/middle_content.html b/app/templates/partials/user_profile/middle_content.html new file mode 100644 index 00000000..9638ce14 --- /dev/null +++ b/app/templates/partials/user_profile/middle_content.html @@ -0,0 +1,13 @@ +
+
+
+ +
+ {% for event in events %} + + {% include 'partials/user_profile/middle_content/event_card.html' %} + + {% include 'partials/user_profile/middle_content/update_event_modal.html' %} + {% endfor %} +
+
\ No newline at end of file diff --git a/app/templates/partials/user_profile/middle_content/event_card.html b/app/templates/partials/user_profile/middle_content/event_card.html new file mode 100644 index 00000000..9c86560e --- /dev/null +++ b/app/templates/partials/user_profile/middle_content/event_card.html @@ -0,0 +1,15 @@ +
+
+ {{ gettext("Upcoming event on (date)", date=event.start) }} + + {% include 'partials/user_profile/middle_content/event_settings.html' %} +
+ +
+

+ The Event {{ event }} - description ... +

+
+ Last updated {{time}} ago +
+
\ No newline at end of file diff --git a/app/templates/partials/user_profile/middle_content/event_settings.html b/app/templates/partials/user_profile/middle_content/event_settings.html new file mode 100644 index 00000000..8198b33a --- /dev/null +++ b/app/templates/partials/user_profile/middle_content/event_settings.html @@ -0,0 +1,10 @@ + +
+ + + +
+
\ No newline at end of file diff --git a/app/templates/partials/user_profile/middle_content/update_event_modal.html b/app/templates/partials/user_profile/middle_content/update_event_modal.html new file mode 100644 index 00000000..05e7b452 --- /dev/null +++ b/app/templates/partials/user_profile/middle_content/update_event_modal.html @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left.html b/app/templates/partials/user_profile/sidebar_left.html new file mode 100644 index 00000000..92c48acb --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left.html @@ -0,0 +1,12 @@ +
+ + +{% include 'partials/user_profile/sidebar_left/profile_card.html' %} + + + {% include 'partials/user_profile/sidebar_left/features_card.html' %} + + + {% include 'partials/user_profile/sidebar_left/daily_horoscope.html' %} + +
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/daily_horoscope.html b/app/templates/partials/user_profile/sidebar_left/daily_horoscope.html new file mode 100644 index 00000000..1c9c98cd --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/daily_horoscope.html @@ -0,0 +1,13 @@ +
+
+ + +
+
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/features_card.html b/app/templates/partials/user_profile/sidebar_left/features_card.html new file mode 100644 index 00000000..3015edcc --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/features_card.html @@ -0,0 +1,33 @@ +
+
+ +

+ Explore more features +

+ + +
+
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card.html b/app/templates/partials/user_profile/sidebar_left/profile_card.html new file mode 100644 index 00000000..b4dbaec2 --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card.html @@ -0,0 +1,8 @@ +
+ + {% include 'partials/user_profile/sidebar_left/profile_card/profile_update_menu.html' %} + + {% include 'partials/user_profile/sidebar_left/profile_card/modals.html' %} + + {% include 'partials/user_profile/sidebar_left/profile_card/user_details.html' %} +
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card/modals.html b/app/templates/partials/user_profile/sidebar_left/profile_card/modals.html new file mode 100644 index 00000000..cde0ca1e --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card/modals.html @@ -0,0 +1,17 @@ + +{% include 'partials/user_profile/sidebar_left/profile_card/modals/name_modal.html' %} + + +{% include 'partials/user_profile/sidebar_left/profile_card/modals/email_modal.html' %} + + +{% include 'partials/user_profile/sidebar_left/profile_card/modals/description_modal.html' %} + + +{% include 'partials/user_profile/sidebar_left/profile_card/modals/upload_photo_modal.html' %} + + +{% include 'partials/user_profile/sidebar_left/profile_card/modals/telegram_modal.html' %} + + +{% include 'partials/user_profile/sidebar_left/profile_card/modals/calendar_privacy_modal.html' %} \ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card/modals/calendar_privacy_modal.html b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/calendar_privacy_modal.html new file mode 100644 index 00000000..1ac25b2c --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/calendar_privacy_modal.html @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card/modals/description_modal.html b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/description_modal.html new file mode 100644 index 00000000..7f6f85da --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/description_modal.html @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card/modals/email_modal.html b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/email_modal.html new file mode 100644 index 00000000..8a55a53a --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/email_modal.html @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card/modals/name_modal.html b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/name_modal.html new file mode 100644 index 00000000..42471dce --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/name_modal.html @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card/modals/telegram_modal.html b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/telegram_modal.html new file mode 100644 index 00000000..aea3ccc5 --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/telegram_modal.html @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card/modals/upload_photo_modal.html b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/upload_photo_modal.html new file mode 100644 index 00000000..b1731a29 --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card/modals/upload_photo_modal.html @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card/profile_update_menu.html b/app/templates/partials/user_profile/sidebar_left/profile_card/profile_update_menu.html new file mode 100644 index 00000000..2046b46e --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card/profile_update_menu.html @@ -0,0 +1,46 @@ +
+ +
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_left/profile_card/user_details.html b/app/templates/partials/user_profile/sidebar_left/profile_card/user_details.html new file mode 100644 index 00000000..5f85416f --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_left/profile_card/user_details.html @@ -0,0 +1,14 @@ +Profile image +
+
{{ user.full_name }}
+

+ + Settings + +

+
+

+ {{ user.description }} +

+
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_right.html b/app/templates/partials/user_profile/sidebar_right.html new file mode 100644 index 00000000..c84dedb8 --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_right.html @@ -0,0 +1,15 @@ +
+ + + {% include 'partials/user_profile/sidebar_right/meetups.html' %} + + + {% include 'partials/user_profile/sidebar_right/on_this_day.html' %} + + + {% include 'partials/user_profile/sidebar_right/new_card.html' %} + + + {% include 'partials/user_profile/sidebar_right/new_card2.html' %} + +
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_right/meetups.html b/app/templates/partials/user_profile/sidebar_right/meetups.html new file mode 100644 index 00000000..bc9ee2c4 --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_right/meetups.html @@ -0,0 +1,7 @@ +
+
+

+ {{ gettext("Explore MeetUps near you") }} +

+
+
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_right/new_card.html b/app/templates/partials/user_profile/sidebar_right/new_card.html new file mode 100644 index 00000000..ff6350f7 --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_right/new_card.html @@ -0,0 +1,7 @@ +
+
+

+ {{ gettext("Your Card") }} +

+
+
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_right/new_card2.html b/app/templates/partials/user_profile/sidebar_right/new_card2.html new file mode 100644 index 00000000..20529588 --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_right/new_card2.html @@ -0,0 +1,7 @@ +
+
+

+ Your Card +

+
+
\ No newline at end of file diff --git a/app/templates/partials/user_profile/sidebar_right/on_this_day.html b/app/templates/partials/user_profile/sidebar_right/on_this_day.html new file mode 100644 index 00000000..71b9fe42 --- /dev/null +++ b/app/templates/partials/user_profile/sidebar_right/on_this_day.html @@ -0,0 +1,5 @@ +
+
+ {% include "on_this_day.html" %} +
+
\ No newline at end of file diff --git a/app/templates/profile.html b/app/templates/profile.html index b12f25ee..e98a010f 100644 --- a/app/templates/profile.html +++ b/app/templates/profile.html @@ -3,375 +3,14 @@
-
- -
+ {% include 'partials/user_profile/sidebar_left.html' %} - -
- - - - - - - - - - - - - - - -
- - -
- {% for event in events %} - -
-
- {{ gettext("Upcoming event on (date)", date=event.start) }} - - -
- - - - -
-
- - -
-
-

- The Event {{ event }} - description ... -

-
- Last updated 3 mins ago -
-
-
-

- {{ gettext("The Event (event)", event=event.title) }} -

-
- {{ gettext("Last updated (time) ago") }} -
- - {% endfor %} -
- -
-
-
-
+ + {% include 'partials/user_profile/middle_content.html' %} + {% include 'partials/user_profile/sidebar_right.html' %} -
- - -
-
-

- {{ gettext("Explore MeetUps near you") }} -

-
- - -
-
-

- {{ gettext("Your Card") }} -

-
- - - -
-
-

- Your Card -

- -
-
- {% include "on_this_day.html" %} -
-
-
-
-
-
-
{% include "partials/calendar/event/text_editor_partial_body.html" %} {% endblock content %} \ No newline at end of file From f84e8a2ba20e2b8f3f8e655273ab7b3d1ca76db4 Mon Sep 17 00:00:00 2001 From: Odelia Yechiel Date: Sat, 20 Feb 2021 05:04:54 +0200 Subject: [PATCH 2/4] class and id name fixes --- .../partials/user_profile/middle_content.html | 2 +- .../middle_content/event_settings.html | 2 +- .../middle_content/update_event_modal.html | 4 +-- .../sidebar_left/daily_horoscope.html | 2 +- .../modals/calendar_privacy_modal.html | 4 +-- .../modals/description_modal.html | 5 ++-- .../profile_card/modals/email_modal.html | 4 +-- .../profile_card/modals/name_modal.html | 4 +-- .../profile_card/modals/telegram_modal.html | 4 +-- .../modals/upload_photo_modal.html | 4 +-- .../profile_card/profile_update_menu.html | 26 +++++++++---------- app/templates/profile.html | 7 +++-- 12 files changed, 35 insertions(+), 33 deletions(-) diff --git a/app/templates/partials/user_profile/middle_content.html b/app/templates/partials/user_profile/middle_content.html index 9638ce14..193dc351 100644 --- a/app/templates/partials/user_profile/middle_content.html +++ b/app/templates/partials/user_profile/middle_content.html @@ -1,5 +1,5 @@
-
+
diff --git a/app/templates/partials/user_profile/middle_content/event_settings.html b/app/templates/partials/user_profile/middle_content/event_settings.html index 8198b33a..b9d7f048 100644 --- a/app/templates/partials/user_profile/middle_content/event_settings.html +++ b/app/templates/partials/user_profile/middle_content/event_settings.html @@ -2,7 +2,7 @@
diff --git a/app/templates/partials/user_profile/middle_content/update_event_modal.html b/app/templates/partials/user_profile/middle_content/update_event_modal.html index 05e7b452..a6966e28 100644 --- a/app/templates/partials/user_profile/middle_content/update_event_modal.html +++ b/app/templates/partials/user_profile/middle_content/update_event_modal.html @@ -1,5 +1,5 @@ -