src/Bidcoz/Bundle/CoreBundle/Resources/views/Layout/marketing.html.twig line 1

Open in your IDE?
  1. {% extends '@BidcozCore/Layout/layout.html.twig' %}
  2. {% block head %}
  3.     {{ parent() }}
  4.     <link rel="shortcut icon" href="/icon.png" />
  5.     <!-- IE -->
  6.     <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  7.     <!--[if IE]><script src="/js/selectivizr-min.js"></script><![endif]-->
  8.     <!-- OTHER -->
  9. {% endblock %}
  10. {% block theme '' %}
  11. {% block bodyClass '' %}
  12. {% block body %}
  13.     <div class="bounds d-flex flex-column align-items-center">
  14.         {% include '@BidcozCore/Layout/Blocks/marketing/header.html.twig' %}
  15.         <div id="main-content" class="container flex-grow-1" role="main">
  16.             {% block alerts %}
  17.                 {% include '@BidcozCore/Layout/Blocks/alerts.html.twig' %}
  18.             {% endblock %}
  19.             {% block content '' %}
  20.         </div>
  21.         {% include '@BidcozManage/Layout/footer.html.twig' %}
  22.         {% if not is_logged_in() %}
  23.             {% set loginPath = campaign is defined ? path('campaign_login_user', { orgSlug: organization.slug, campaignSlug: campaign.slug }) : '/login' %}
  24.             <div id="login-modal" class="modal" data-url="{{ loginPath }}">
  25.                 <div class="modal-dialog">
  26.                     <div class="modal-content mx-auto">
  27.                         <div class="modal-close float-right">
  28.                             {% include '@BidcozCore/Components/icon.html.twig' with { icon: 'close' } %}
  29.                         </div>
  30.                         <div class="modal-html">
  31.                             <!-- Load login content here via http request -->
  32.                         </div>
  33.                     </div>
  34.                 </div>
  35.             </div>
  36.             {% set currentRoute = app.request.attributes.get('_route') %}
  37.             {% set registerPath = campaign is defined ? path('campaign_register_user', { orgSlug: organization.slug, campaignSlug: campaign.slug }) : path('fos_user_registration_register') %}
  38.             {% if currentRoute != 'campaign_register_user' %}
  39.                 <div id="register-modal" class="modal py-0 py-md-5" data-url="{{ registerPath }}">
  40.                     <div class="modal-dialog">
  41.                         <div class="modal-content mx-auto p-0 position-relative">
  42.                             <div class="modal-close position-absolute" style="right: 1rem; top: 1rem; z-index: 1;">
  43.                                 {% include '@BidcozCore/Components/icon.html.twig' with { icon: 'close' } %}
  44.                             </div>
  45.                             <div class="modal-html mx-n3">
  46.                                 <!-- Load registration content here via http request -->
  47.                             </div>
  48.                         </div>
  49.                     </div>
  50.                 </div>
  51.             {% endif %}
  52.         {% endif %}
  53.     </div>
  54. {% endblock %}
  55. {% block stylesheets %}
  56.     <link rel="stylesheet" href="/components/intl-tel-input/build/css/intlTelInput.min.css">
  57.     <link rel="stylesheet" href="/css/interface.css" />
  58.     <style type="text/css">
  59.         .password-container {
  60.             position: relative;
  61.         }
  62.         .password-icon {
  63.             color: #999;
  64.             cursor: pointer;
  65.             position: absolute;
  66.             right: 2rem;
  67.             bottom: 1.375rem;
  68.         }
  69.     </style>
  70.     <style>
  71.         .iti{ width: 100%;}
  72.         .iti__flag { z-index: 4; }
  73.         .intl-tel-input {
  74.             display: table-cell;
  75.         }
  76.         .intl-tel-input .selected-flag {
  77.             z-index: 4;
  78.         }
  79.         .intl-tel-input .country-list {
  80.             z-index: 5;
  81.         }
  82.         .input-group .intl-tel-input .form-control {
  83.             border-radius: 4px 0 0 4px;
  84.         }
  85.         .iti .intl-phone { padding-left: 55px!important; }
  86.     </style>
  87. {% endblock %}
  88. {% block javascripts %}
  89.     <script src="/components/jquery/dist/jquery.js" type="text/javascript"></script>
  90.     <script src="/components/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></script>
  91.     <script src="/components/font-awesome/js/all.js"></script>
  92.     <script src="/components/intl-tel-input/build/js/intlTelInput.min.js"></script>
  93.     <script src="/js/plugins/jquery.browser.mobile.js" type="text/javascript"></script>
  94.     <script src="/js/carousel.js"></script>
  95.     <script src="/js/scripts.js?v=1"></script>
  96.     <script type="text/javascript">
  97.         $(document).ready(function() {
  98.             $(document).on('click', '.show-password', function(e) {
  99.                 e.preventDefault();
  100.                 $(this)
  101.                     .hide()
  102.                     .siblings('.hide-password')
  103.                         .show()
  104.                     .siblings('.form-group')
  105.                         .find('input[type="password"]')
  106.                             .attr('type', 'text');
  107.             });
  108.             $(document).on('click', '.hide-password', function(e) {
  109.                 e.preventDefault();
  110.                 $(this)
  111.                     .hide()
  112.                     .siblings('.show-password')
  113.                         .show()
  114.                     .siblings('.form-group')
  115.                         .find('input[type="text"]')
  116.                             .attr('type', 'password');
  117.             });
  118.         });
  119.     </script>
  120. {% endblock %}