mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
504 B
24 lines
504 B
{% extends "crud/form.html" %}
|
|
{% load i18n %}
|
|
{% load crispy_forms_tags %}
|
|
{% block detail_content %}
|
|
{% crispy form %}
|
|
{% endblock detail_content %}
|
|
|
|
{% block extra_js %}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#id_ausencia").change(function() {
|
|
var val = $(this).val();
|
|
if(val === "1") {
|
|
$("#show_materia").show();
|
|
}
|
|
else if(val === "2") {
|
|
$("#show_materia").hide();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|