{% extends '@BidcozCore/Layout/layout.html.twig' %}
{% block head %}
{{ parent() }}
<link rel="shortcut icon" href="/icon.png" />
<!-- IE -->
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if IE]><script src="/js/selectivizr-min.js"></script><![endif]-->
<!-- OTHER -->
{% endblock %}
{% block theme '' %}
{% block bodyClass '' %}
{% block body %}
<div class="bounds d-flex flex-column align-items-center">
{% include '@BidcozCore/Layout/Blocks/marketing/header.html.twig' %}
<div id="main-content" class="container flex-grow-1" role="main">
{% block alerts %}
{% include '@BidcozCore/Layout/Blocks/alerts.html.twig' %}
{% endblock %}
{% block content '' %}
</div>
{% include '@BidcozManage/Layout/footer.html.twig' %}
{% if not is_logged_in() %}
{% set loginPath = campaign is defined ? path('campaign_login_user', { orgSlug: organization.slug, campaignSlug: campaign.slug }) : '/login' %}
<div id="login-modal" class="modal" data-url="{{ loginPath }}">
<div class="modal-dialog">
<div class="modal-content mx-auto">
<div class="modal-close float-right">
{% include '@BidcozCore/Components/icon.html.twig' with { icon: 'close' } %}
</div>
<div class="modal-html">
<!-- Load login content here via http request -->
</div>
</div>
</div>
</div>
{% set currentRoute = app.request.attributes.get('_route') %}
{% set registerPath = campaign is defined ? path('campaign_register_user', { orgSlug: organization.slug, campaignSlug: campaign.slug }) : path('fos_user_registration_register') %}
{% if currentRoute != 'campaign_register_user' %}
<div id="register-modal" class="modal py-0 py-md-5" data-url="{{ registerPath }}">
<div class="modal-dialog">
<div class="modal-content mx-auto p-0 position-relative">
<div class="modal-close position-absolute" style="right: 1rem; top: 1rem; z-index: 1;">
{% include '@BidcozCore/Components/icon.html.twig' with { icon: 'close' } %}
</div>
<div class="modal-html mx-n3">
<!-- Load registration content here via http request -->
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="/components/intl-tel-input/build/css/intlTelInput.min.css">
<link rel="stylesheet" href="/css/interface.css" />
<style type="text/css">
.password-container {
position: relative;
}
.password-icon {
color: #999;
cursor: pointer;
position: absolute;
right: 2rem;
bottom: 1.375rem;
}
</style>
<style>
.iti{ width: 100%;}
.iti__flag { z-index: 4; }
.intl-tel-input {
display: table-cell;
}
.intl-tel-input .selected-flag {
z-index: 4;
}
.intl-tel-input .country-list {
z-index: 5;
}
.input-group .intl-tel-input .form-control {
border-radius: 4px 0 0 4px;
}
.iti .intl-phone { padding-left: 55px!important; }
</style>
{% endblock %}
{% block javascripts %}
<script src="/components/jquery/dist/jquery.js" type="text/javascript"></script>
<script src="/components/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></script>
<script src="/components/font-awesome/js/all.js"></script>
<script src="/components/intl-tel-input/build/js/intlTelInput.min.js"></script>
<script src="/js/plugins/jquery.browser.mobile.js" type="text/javascript"></script>
<script src="/js/carousel.js"></script>
<script src="/js/scripts.js?v=1"></script>
<script type="text/javascript">
$(document).ready(function() {
$(document).on('click', '.show-password', function(e) {
e.preventDefault();
$(this)
.hide()
.siblings('.hide-password')
.show()
.siblings('.form-group')
.find('input[type="password"]')
.attr('type', 'text');
});
$(document).on('click', '.hide-password', function(e) {
e.preventDefault();
$(this)
.hide()
.siblings('.show-password')
.show()
.siblings('.form-group')
.find('input[type="text"]')
.attr('type', 'password');
});
});
</script>
{% endblock %}