templates/frontend/aspirante/buscar_preregistro.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend/layout.html.twig' %}
  2. {% block title %}Aspirante Confirm Plan{% endblock %}
  3. {% block content %}
  4.     <section class="section" id="pricing">
  5.         <!-- Content -->
  6.         <div class="container">
  7.             <div class="row justify-content-center">
  8.                 <div class="col-md-12 col-lg-12 text-center">
  9.                     <div class="section-heading">
  10.                         <!-- Heading -->
  11.                         <h2 class="">
  12.                             <i class="ti-alert"></i> <b>Para editar sus datos de Preregistro, ingrese los siguientes datos:</b>
  13.                         </h2>
  14.                     </div>
  15.                     {{ form_start(form) }}
  16.                     <div class="row">
  17.                         <div class="col-lg-6">
  18.                             {{ form_row(form.curp, { 'label': 'CURP' }) }}
  19.                         </div>
  20.                         <div class="col-lg-6">
  21.                             {{ form_row(form.clur, { 'label': 'Folio Único de Registro de Tarjeta Violeta' }) }}
  22.                         </div>
  23.                     </div>
  24.                     {{ form_end(form) }}
  25.                 </div>
  26.             </div>
  27.         </div>
  28.     </section>
  29. {% endblock %}
  30. {% block javascripts %}
  31.     {{ parent() }}
  32.     <script type="text/javascript">
  33.         form = $("form[name={{ form.vars.name }}]");
  34.         form.validate({
  35.             rules: {
  36.                 "busca_preregistro[curp]": {
  37.                     required: true,
  38.                     minlength: 18,
  39.                     maxlength: 18,
  40.                 },
  41.                 "busca_preregistro[clur]": {
  42.                     required: true,
  43.                     minlength: 9,
  44.                     maxlength: 9,
  45.                 }
  46.             },
  47.         });
  48.         $("#busca_preregistro_curp, #busca_preregistro_clur").keyup(function () {
  49.             $(this).val($(this).val().toUpperCase());
  50.         });
  51.         $(document).on('submit','form',function(){
  52.             if(form.valid()) {
  53.                 helpers.blockUI();
  54.                 return true;
  55.             }
  56.         });
  57.     </script>
  58. {% endblock %}