src/Social/FrontendBundle/Resources/views/__partials/modal_signup_form_card.twig line 1

Open in your IDE?
  1. {% if app.user is not defined or app.user is null %}
  2.     <style>
  3.         .col-centered {
  4.             float: none;
  5.             margin: 0 auto;
  6.         }
  7.         @media (max-width: 991px) {
  8.             .login-form-responsive {
  9.                 max-width: 100% !important;
  10.                 margin: 0 auto;
  11.             }
  12.         }
  13.         #modal-signup {
  14.             -webkit-box-orient: vertical;
  15.             -webkit-box-direction: normal;
  16.             -ms-flex-direction: column;
  17.             flex-direction: column;
  18.             pointer-events: auto;
  19.             background-color: #fff;
  20.             background-clip: padding-box;
  21.             border: 1px solid rgba(0, 0, 0, .2);
  22.             border-radius: .3rem;
  23.             outline: 0;
  24.             padding: 0;
  25.         }
  26.         .btn-success .btn-stroke:hover i {
  27.             color: #41b3a3 !important;
  28.         }
  29.         #modal-signup .modal-header {
  30.             -webkit-box-shadow: inset 0px -25px 10px -25px rgba(0, 0, 0, 0.5);
  31.             -moz-box-shadow: inset 0px -25px 10px -25px rgba(0, 0, 0, 0.5);
  32.             box-shadow: inset 0px -25px 10px -25px rgba(0, 0, 0, 0.5);
  33.             padding: 0 10px;
  34.             line-height: 29px;
  35.             border-color: #efefef;
  36.             background-color: #f9f9f9;
  37.             background-image: -moz-linear-gradient(top, #fdfdfd, #f4f4f4);
  38.             background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdfdfd), to(#f4f4f4));
  39.             background-image: -webkit-linear-gradient(top, #fdfdfd, #f4f4f4);
  40.             background-image: -o-linear-gradient(top, #fdfdfd, #f4f4f4);
  41.             filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffdfdfd', endColorstr='#fff4f4f4', GradientType=0);
  42.             -moz-border-radius: 5px 5px 0 0;
  43.         }
  44.         #modal-signup .form-horizontal {
  45.             box-shadow: none;
  46.         }
  47.         #modal-signup .modal-body {
  48.             border-left: 1px solid #efefef;
  49.             border-right: 1px solid #efefef;
  50.             margin-top: -1px;
  51.         }
  52.         #modal-signup .modal-body, .modal-body {
  53.             border: 1px solid #efefef;
  54.         }
  55.         #modal-signup .modal-body .container-fluid {
  56.             padding-bottom: 0;
  57.         }
  58.         #modal-signup .modal-body {
  59.             padding: 0 6px 0 6px !important;
  60.         }
  61.         #modal-signup .mfp-close {
  62.             font-size: 20px;
  63.             width: 16px;
  64.             height: 16px;
  65.             line-height: 16px;
  66.             color: #ccc;
  67.         }
  68.         #modal-signup .modal-body .modal-register-form span.start-sign-up {
  69.             font-weight: bold;
  70.             display: block;
  71.             font-size: 30px;
  72.             line-height: 1.1;
  73.             margin: 0;
  74.         }
  75.         #modal-signup .c-header h3 {
  76.             margin-top: 0;
  77.         }
  78.         #modal-signup .c-header {
  79.             margin-bottom: 20px;
  80.             margin-top: 0;
  81.             padding-left: 6px;
  82.             padding-right: 6px;
  83.             text-align: center;
  84.         }
  85.         #modal-signup .modal-body .modal-register-form span.start-meet {
  86.             font-size: 14px;
  87.             font-weight: bolder;
  88.         }
  89.         .white-popup-block {
  90.             background: #ccc;
  91.             animation: open 1s;
  92.         }
  93.         .mfp-removing{
  94.             animation: close 1s;
  95.         }
  96.         @keyframes open {
  97.             0%   {opacity: 0;}
  98.             100% {opacity: 1;}
  99.         }
  100.         @keyframes close {
  101.             0%   {opacity: 1;}
  102.             100% {opacity: 0;}
  103.         }
  104.     </style>
  105.     <script type="text/javascript">
  106.         {% if registration_modal_seconds_await is defined and registration_modal_seconds_await in not null %}
  107.         const registrationModalAwait = '{{ registration_modal_seconds_await }}';
  108.         {% else %}
  109.         const registrationModalAwait = 10;
  110.         {% endif %}
  111.         function openSignUpModal() {
  112.             $.magnificPopup.open({
  113.                 items: {
  114.                     src: '#modal-signup',
  115.                     type: 'inline',
  116.                     preloader: false,
  117.                     focus: '#registerGender',
  118.                 }
  119.             });
  120.         }
  121.         $(document).ready(function () {
  122.             $('.signup-modal-open').magnificPopup({
  123.                 type: 'inline',
  124.                 preloader: false,
  125.                 focus: '#registerGender',
  126.             });
  127.             var timeoutSetting = 10 * 1000;
  128.             if (typeof registrationModalAwait !== 'undefined' && registrationModalAwait > 0) {
  129.                 timeoutSetting = registrationModalAwait * 1000;
  130.             }
  131.             setTimeout(function () {
  132.                 $.magnificPopup.open({
  133.                     items: {
  134.                         src: '#modal-signup',
  135.                     },
  136.                     type: 'inline'
  137.                 });
  138.             }, timeoutSetting);
  139.             $('#modal-signup button[type="submit"]').on('click tap', function (event) {
  140.                 event.preventDefault();
  141.                 event.stopPropagation();
  142.                 event.stopImmediatePropagation();
  143.                 var buttonOldContent = $('#modal-signup .btn-needs-loading').html();
  144.                 $('#modal-signup .alert-panel').hide()
  145.                 $('#modal-signup .alert-panel .alert-danger').empty()
  146.                 $('#modal-signup .btn-needs-loading').attr('disabled', true);
  147.                 $('#modal-signup .btn-needs-loading').html('<i class="fad fa-spinner fa-spin fa-spinner" style="width: 100%; text-align: center; color:#fff !important; display: block !important;"></i>');
  148.                 $.ajax({
  149.                     type: 'POST',
  150.                     url: '{{ url('social_user_homepage') }}',
  151.                     data: $(this).closest('form').serialize(),
  152.                     dataType: 'json',
  153.                 }).success(function (response) {
  154.                     if (response.error_flag == true) {
  155.                         $('#modal-signup .btn-needs-loading').attr('disabled', false);
  156.                         $('#modal-signup .fa-spinner').addClass('hide');
  157.                         $('#modal-signup .fa-sign-in').removeClass('hide');
  158.                         for (var topIndex in response.errors) {
  159.                             var currentObject = response.errors[topIndex]
  160.                             for (var innerIndex in currentObject) {
  161.                                 $('#modal-signup .alert-panel .alert-danger').append(
  162.                                     '<li>' + currentObject[innerIndex] + '</li>',
  163.                                 )
  164.                             }
  165.                         }
  166.                         $('#modal-signup .alert-panel').show()
  167.                         $('#modal-signup .btn-needs-loading').html(buttonOldContent);
  168.                         $('#modal-signup .btn-needs-loading').attr('disabled', false);
  169.                         return;
  170.                     }
  171.                     if (response = 'undefined' || response.redirectUrl == 'undefined') {
  172.                         location.href = "{{ url('social_frontend_account') }}";
  173.                     } else {
  174.                         location.href = response.redirectUrl
  175.                     }
  176.                 }).error(function () {
  177.                     $('#modal-signup .btn-needs-loading .fa-spinner').addClass('hide');
  178.                     $('#modal-signup .btn-needs-loading .fa-sign-in').removeClass('hide');
  179.                     $('#modal-signup .btn-needs-loading').attr('disabled', false);
  180.                 })
  181.             })
  182.         });
  183.     </script>
  184.     <div id="modal-signup"
  185.          class="white-popup-block mfp-hide col-lg-4 col-md-6 col-sm-10 cols-xs-12 col-centered actual-hidden">
  186.         <div class="modal-header">
  187.             <h4 class="modal-title">
  188.                 <div class="logo-details-pack"><h4>{{ 'Yes, registration is free!'|trans }}</h4>
  189.                     <span>{{ 'Register fast and easy.'|trans }}</span></div>
  190.             </h4>
  191.             <button title="Close (Esc)" type="button" class="mfp-close">×</button>
  192.         </div>
  193.         <div class="modal-body">
  194.             <div class="container-fluid">
  195.                 <div class="row">
  196.                     <div class="col-sm-12 col-md-12 col-lg-12 padding-none">
  197.                         <form class="form-horizontal login-form-responsive modal-register-form" role="form"
  198.                               id="modal-register"
  199.                               novalidate="novalidate" action="{{ url('social_user_homepage') }}"
  200.                               method="POST"
  201.                               autocomplete="off">
  202.                             <div class="c-header">
  203.                                 <h3><span class="start-sign-up">{% trans %}Sign up{% endtrans %}</span>
  204.                                     <span class="start-meet">{% trans %}Flirting has never been easier! Create a free account now!{% endtrans %}</span>
  205.                                 </h3>
  206.                             </div>
  207.                             <div role="alert" class="alert-panel" style="display: none">
  208.                                 <ul class="alert alert-danger"></ul>
  209.                             </div>
  210.                             {% include 'SocialUserBundle:Registration:registration_form.html.twig' with {form: form} %}
  211.                         </form>
  212.                     </div>
  213.                     {#<div class="col-details-registration">
  214.                         <div class="row">
  215.                             <div class="col-sm-12">
  216.                                 <div class="row" style="padding: 0 6px">
  217.                                     <div class="col-md-12" style="margin-top: 5px;">
  218.                                         {% render(controller('SocialFrontendBundle:Account:getPopularUsersForModalNonLoggedIn', {request: app.request})) %}
  219.                                     </div>
  220.                                     <div class="col-md-12">
  221.                                         <ul class="list-unstyle details-intro details-intro-section-hidden overflow-hidden hidden">
  222.                                             <li>{% trans %}Meet new people!{% endtrans %}</li>
  223.                                             <li>{% trans %}Start flirting with people you like!{% endtrans %}</li>
  224.                                             <li>{% trans %}Start experiencing new things!{% endtrans %}</li>
  225.                                             <li>{% trans %}Enjoy life!{% endtrans %}</li>
  226.                                         </ul>
  227.                                     </div>
  228.                                     <div class="col-md-12">
  229.                                         <h3 class="headline-text-details-near text-center">
  230.                                             {% trans %}These people from your area are online right now!{% endtrans %}
  231.                                         </h3>
  232.                                     </div>
  233.                                 </div>
  234.                             </div>
  235.                         </div>
  236.                     </div>#}
  237.                 </div>
  238.             </div>
  239.         </div>
  240.     </div>
  241. {% endif %}