mirror of https://github.com/interlegis/sapl.git
7 changed files with 100 additions and 52 deletions
@ -1,34 +1,26 @@ |
|||||
{% extends "crud/detail.html" %} |
{% extends "crud/detail.html" %} |
||||
{% load i18n %} |
{% load i18n %} |
||||
{% load crispy_forms_tags %} |
{% load crispy_forms_tags %} |
||||
{% load common_tags %} |
|
||||
{% block actions %}{% endblock %} |
|
||||
{% block detail_content %} |
{% block detail_content %} |
||||
{% crispy form %} |
{% crispy form %} |
||||
|
|
||||
<form method="post"> |
|
||||
{% csrf_token %} |
|
||||
<div class="output"> |
|
||||
<div id="show_materia" class="show_materia" type="hidden"> {{ expedientes_materia }}</div> |
|
||||
</div> |
|
||||
{% endblock detail_content %} |
{% endblock detail_content %} |
||||
|
|
||||
|
|
||||
{% block extra_js %} |
{% block extra_js %} |
||||
|
|
||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||
$(function () { |
$(function () { |
||||
$("#id_ausencia").change(function() { |
$("#id_ausencia").change(function() { |
||||
var val = $(this).val(); |
var val = $(this).val(); |
||||
if(val === "1") { |
if(val === "1") { |
||||
$("#show_materia").show(); |
$("#show_materia").show(); |
||||
} |
} |
||||
else if(val === "2") { |
else if(val === "2") { |
||||
$("#show_materia").hide(); |
$("#show_materia").hide(); |
||||
} |
} |
||||
}); |
|
||||
}); |
}); |
||||
</script> |
}); |
||||
|
</script> |
||||
|
|
||||
{% endblock %} |
{% endblock %} |
||||
|
|
||||
@ -1,7 +1,6 @@ |
|||||
{% extends "crud/detail.html" %} |
{% extends "crud/detail.html" %} |
||||
{% load i18n %} |
{% load i18n %} |
||||
{% load crispy_forms_tags %} |
{% load crispy_forms_tags %} |
||||
{% block actions %}{% endblock %} |
|
||||
{% block detail_content %} |
{% block detail_content %} |
||||
{% crispy form %} |
{% crispy form %} |
||||
{% endblock detail_content %} |
{% endblock detail_content %} |
||||
Loading…
Reference in new issue