register.html.twig~
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends 'base.html.twig' %}
{% block body %}
{% form_theme form 'bootstrap_3_horizontal_layout.html.twig' %}
{{ form_start(form) }}
{{ form_widget(form) }}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
.esc_oposicion, .esc_asistente, .esc_agregado{
display: none;
}
</style>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript">
$('#user_oposicion').click(function() {
$('.esc_oposicion')[this.checked ? "show" : "hide"]();
});
$('#user_ascenso').click(function() {
//alert($("#user_escalafones").val());
if($("#user_escalafones").val() == 1)
$('.esc_asistente')[this.checked ? "show" : "hide"]();
if($("#user_escalafones").val() == 2)
$('.esc_agregado')[this.checked ? "show" : "hide"]();
});
$('#user_ascenso2').click(function() {
alert($('.esc_asistente').val());
if($("#user_escalafones").val() == 2)
$('.esc_agregado')[this.checked ? "show" : "hide"]();
});
</script>
{% endblock %}