From b6df4d57fe0b942100233012f4a2dc122c640b5d Mon Sep 17 00:00:00 2001 From: Vidya Ramakrishnan Date: Fri, 27 Oct 2023 11:52:08 +0530 Subject: [PATCH] Show cancel rsvp button event after project has ended --- .../assets/sass/components/_ticket-modal.scss | 2 +- funnel/templates/project_layout.html.jinja2 | 46 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/funnel/assets/sass/components/_ticket-modal.scss b/funnel/assets/sass/components/_ticket-modal.scss index 6da18efba..610772eb1 100644 --- a/funnel/assets/sass/components/_ticket-modal.scss +++ b/funnel/assets/sass/components/_ticket-modal.scss @@ -68,7 +68,7 @@ } .price-btn { - min-width: 200px; + min-width: 150px; font-size: inherit; padding: 0; display: flex; diff --git a/funnel/templates/project_layout.html.jinja2 b/funnel/templates/project_layout.html.jinja2 index a47cbb691..b71eacbc3 100644 --- a/funnel/templates/project_layout.html.jinja2 +++ b/funnel/templates/project_layout.html.jinja2 @@ -140,7 +140,28 @@ {% macro registerblock(project) %}
- {% if project.features.rsvp() %} + {%- if project.features.rsvp_registered() %} + + + {% if project.features.follow_mode() %}{% trans %}Following{% endtrans %}{% else %}{% trans %}Registered{% endtrans %}{% endif %}{{ faicon(icon='check-circle-solid', icon_size='caption', baseline=true, css_class="mui--text-success fa-icon--left-margin") }} + {% if project.features.follow_mode() %}{% trans %}Unfollow{% endtrans %}{% else %}{% trans %}Cancel Registration{% endtrans %}{% endif %} + {{ project.views.registration_text() }} + + + {% elif project.features.rsvp() %} {%- if current_auth.is_anonymous %} {{ project.views.register_button_text() }} {% elif project.features.rsvp_unregistered() -%} @@ -149,34 +170,13 @@ {{ project.views.register_button_text() }} {{ project.views.registration_text() }} - {%- elif project.features.rsvp_registered() %} - - - {% if project.features.follow_mode() %}{% trans %}Following{% endtrans %}{% else %}{% trans %}Registered{% endtrans %}{% endif %}{{ faicon(icon='check-circle-solid', icon_size='caption', baseline=true, css_class="mui--text-success fa-icon--left-margin") }} - {% if project.features.follow_mode() %}{% trans %}Unfollow{% endtrans %}{% else %}{% trans %}Cancel Registration{% endtrans %}{% endif %} - {{ project.views.registration_text() }} - - {%- endif %} {% elif project.buy_tickets_url.url -%} {{ faicon(icon='arrow-up-right-from-square', baseline=true, css_class="mui--text-white fa-icon--right-margin") }}{{ project.views.register_button_text() }} {% endif %}
{% if project.current_roles.ticket_participant %} -
+
{% elif project.features.show_tickets %}