src/Bidcoz/Bundle/FrontendBundle/Resources/views/organization.html.twig line 1

Open in your IDE?
  1. {% extends '@BidcozCore/Layout/layout.html.twig' %}
  2. {% import '@BidcozCore/_macro.html.twig' as macro %}
  3. {% set orgParams = {orgSlug: organization.slug} %}
  4. {% block title %}CausePilot - {{ organization.name }}{% endblock %}
  5. {% block afterAlertsContent %}
  6.     {% if is_logged_in() %}
  7.         {% if not app.user.hasLoggedIn %}
  8.             <div class="alert warning">
  9.                 <p>Please set your password.</p>
  10.                 <a href="{{ path('fos_user_change_password') }}" class="btn btn-sm mt-2 w-100">Set Password</a>
  11.             </div>
  12.         {% elseif app.user is show_mobile_update_prompt %}
  13.             <div class="alert warning">
  14.                 <p>Please complete your Account profile. A mobile number is required to receive text notifications.</p>
  15.                 <a href="{{ path('fos_user_profile_edit') }}" class="btn btn-sm mt-2 w-100">Update Profile</a>
  16.             </div>
  17.         {% elseif app.user is show_profile_update_prompt and organization.slug != 'nvidia' %}
  18.             <div class="alert warning">
  19.                 <p>Please complete your Account profile.</p>
  20.                 <a href="{{ path('fos_user_profile_edit') }}" class="btn btn-sm mt-2 w-100">Complete Profile</a>
  21.                 <!--
  22.                 <a href="{{ path('profile_dismiss_modal') }}" id="dismiss-profile-complete" class="btn alert-dismissible">
  23.                     <i class="fas fa-times"></i>
  24.                 </a>
  25.                 -->
  26.             </div>
  27.         {% endif %}
  28.         {% if user_registrations(app.user)|length %}
  29.             {% for registration in user_registrations(app.user) %}
  30.                 {% if registration.requireRegistrationWaiver and registration.waiverConsent == 0 %}
  31.                     <div class="alert warning">
  32.                         <p>You have a purchased registration with a new waiver that must be accepted.</p>
  33.                         <a href="{{ path('account_campaign_registration_edit', campaignParams|merge({id: registration.id})) }}" class="btn btn-sm mt-2 w-100">Review Registration</a>
  34.                     </div>
  35.                 {% endif %}
  36.             {% endfor %}
  37.         {% endif %}
  38.     {% endif %}
  39. {% endblock %}
  40. {% block afterAlerts %}
  41.     {% if block('afterAlertsContent')|trim %}
  42.         <div class="alerts">
  43.             {{ block('afterAlertsContent') }}
  44.         </div>
  45.     {% endif %}
  46. {% endblock %}
  47. {% block beforeContent %}
  48.     {% if is_logged_in() %}
  49.         <div class="alerts">
  50.             {% set notifications = frontend_notifications() %}
  51.             {% for notification in notifications %}
  52.                 <div class="alert info col-4 float-right justify-content-between">
  53.                     {% if notification.title %}
  54.                         <h4>{{ notification.title }}</h4>
  55.                     {% endif %}
  56.                     {{ notification.content }}
  57.                 </div>
  58.             {% endfor %}
  59.         </div>
  60.     {% endif %}
  61. {% endblock %}
  62. {% block stylesheets %}
  63.     {{ parent() }}
  64.     {% if organization is defined or campaign is defined %}
  65.         <link rel="stylesheet" href="/css/manage.css?v={{ asset_version('') }}">
  66.     {% endif %}
  67. {% endblock %}
  68. {% block javascripts %}
  69.     {{ parent() }}
  70. {% endblock %}