{% extends '@BidcozCore/Layout/layout.html.twig' %}
{% import '@BidcozCore/_macro.html.twig' as macro %}
{% set orgParams = {orgSlug: organization.slug} %}
{% block title %}CausePilot - {{ organization.name }}{% endblock %}
{% block afterAlertsContent %}
{% if is_logged_in() %}
{% if not app.user.hasLoggedIn %}
<div class="alert warning">
<p>Please set your password.</p>
<a href="{{ path('fos_user_change_password') }}" class="btn btn-sm mt-2 w-100">Set Password</a>
</div>
{% elseif app.user is show_mobile_update_prompt %}
<div class="alert warning">
<p>Please complete your Account profile. A mobile number is required to receive text notifications.</p>
<a href="{{ path('fos_user_profile_edit') }}" class="btn btn-sm mt-2 w-100">Update Profile</a>
</div>
{% elseif app.user is show_profile_update_prompt and organization.slug != 'nvidia' %}
<div class="alert warning">
<p>Please complete your Account profile.</p>
<a href="{{ path('fos_user_profile_edit') }}" class="btn btn-sm mt-2 w-100">Complete Profile</a>
<!--
<a href="{{ path('profile_dismiss_modal') }}" id="dismiss-profile-complete" class="btn alert-dismissible">
<i class="fas fa-times"></i>
</a>
-->
</div>
{% endif %}
{% if user_registrations(app.user)|length %}
{% for registration in user_registrations(app.user) %}
{% if registration.requireRegistrationWaiver and registration.waiverConsent == 0 %}
<div class="alert warning">
<p>You have a purchased registration with a new waiver that must be accepted.</p>
<a href="{{ path('account_campaign_registration_edit', campaignParams|merge({id: registration.id})) }}" class="btn btn-sm mt-2 w-100">Review Registration</a>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}
{% block afterAlerts %}
{% if block('afterAlertsContent')|trim %}
<div class="alerts">
{{ block('afterAlertsContent') }}
</div>
{% endif %}
{% endblock %}
{% block beforeContent %}
{% if is_logged_in() %}
<div class="alerts">
{% set notifications = frontend_notifications() %}
{% for notification in notifications %}
<div class="alert info col-4 float-right justify-content-between">
{% if notification.title %}
<h4>{{ notification.title }}</h4>
{% endif %}
{{ notification.content }}
</div>
{% endfor %}
</div>
{% endif %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{% if organization is defined or campaign is defined %}
<link rel="stylesheet" href="/css/manage.css?v={{ asset_version('') }}">
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}