Commit 839ed7c7971d02f8e7b535279f64e98b1ae68519

Authored by Wilmer
1 parent 702eec54f6
Exists in master

pasar la validación a Symfony del ascenso y quitar las alertas de javascript

app/Resources/views/solicitudes/ascenso.html.twig
... ... @@ -41,7 +41,7 @@
41 41 <div class="content clearfix">
42 42 <h2>Requisitos solicitud ascenso {{ nueva_escala.nombre }}</h2>
43 43 {% form_theme form 'bootstrap_3_layout.html.twig' %}
44   - {{ form_start(form) }}
  44 + {{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }}
45 45 {{ form_widget(form) }}
46 46 {{ form_end(form) }}
47 47 </div>
... ... @@ -141,9 +141,6 @@
141 141  
142 142  
143 143 $('#ascenso_tipoTrabajoInvestigacion').click(function() {
144   - alert("click");
145   -
146   -
147 144 if($('#ascenso_tipoTrabajoInvestigacion').val() === 'investigacion'){
148 145 $('.esc_investigacion').show();
149 146 $('.esc_tesis').hide();
... ... @@ -153,7 +150,6 @@
153 150 $('.esc_tesis').show();
154 151 $("#ascenso_tutores_ascenso_chosen").hide();
155 152 }
156   -
157 153 });
158 154  
159 155  
... ... @@ -252,7 +248,6 @@
252 248  
253 249 $("#ascenso_tutores_ascenso").on("chosen:ready", function() {
254 250 $("#ascenso_tutores_ascenso_chosen").hide();
255   - alert("hidden");
256 251 });
257 252  
258 253  
... ...