Commit 839ed7c7971d02f8e7b535279f64e98b1ae68519
1 parent
702eec54f6
Exists in
master
pasar la validación a Symfony del ascenso y quitar las alertas de javascript
Showing
1 changed file
with
1 additions
and
6 deletions
Show diff stats
app/Resources/views/solicitudes/ascenso.html.twig
@@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
41 | <div class="content clearfix"> | 41 | <div class="content clearfix"> |
42 | <h2>Requisitos solicitud ascenso {{ nueva_escala.nombre }}</h2> | 42 | <h2>Requisitos solicitud ascenso {{ nueva_escala.nombre }}</h2> |
43 | {% form_theme form 'bootstrap_3_layout.html.twig' %} | 43 | {% form_theme form 'bootstrap_3_layout.html.twig' %} |
44 | - {{ form_start(form) }} | 44 | + {{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }} |
45 | {{ form_widget(form) }} | 45 | {{ form_widget(form) }} |
46 | {{ form_end(form) }} | 46 | {{ form_end(form) }} |
47 | </div> | 47 | </div> |
@@ -141,9 +141,6 @@ | @@ -141,9 +141,6 @@ | ||
141 | 141 | ||
142 | 142 | ||
143 | $('#ascenso_tipoTrabajoInvestigacion').click(function() { | 143 | $('#ascenso_tipoTrabajoInvestigacion').click(function() { |
144 | - alert("click"); | ||
145 | - | ||
146 | - | ||
147 | if($('#ascenso_tipoTrabajoInvestigacion').val() === 'investigacion'){ | 144 | if($('#ascenso_tipoTrabajoInvestigacion').val() === 'investigacion'){ |
148 | $('.esc_investigacion').show(); | 145 | $('.esc_investigacion').show(); |
149 | $('.esc_tesis').hide(); | 146 | $('.esc_tesis').hide(); |
@@ -153,7 +150,6 @@ | @@ -153,7 +150,6 @@ | ||
153 | $('.esc_tesis').show(); | 150 | $('.esc_tesis').show(); |
154 | $("#ascenso_tutores_ascenso_chosen").hide(); | 151 | $("#ascenso_tutores_ascenso_chosen").hide(); |
155 | } | 152 | } |
156 | - | ||
157 | }); | 153 | }); |
158 | 154 | ||
159 | 155 | ||
@@ -252,7 +248,6 @@ | @@ -252,7 +248,6 @@ | ||
252 | 248 | ||
253 | $("#ascenso_tutores_ascenso").on("chosen:ready", function() { | 249 | $("#ascenso_tutores_ascenso").on("chosen:ready", function() { |
254 | $("#ascenso_tutores_ascenso_chosen").hide(); | 250 | $("#ascenso_tutores_ascenso_chosen").hide(); |
255 | - alert("hidden"); | ||
256 | }); | 251 | }); |
257 | 252 | ||
258 | 253 |