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.
25 lines
635 B
25 lines
635 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") {
|
|
$("#div_id_materias_do_expediente, #div_id_materias_da_ordem_do_dia").show();
|
|
}
|
|
else if(val === "2") {
|
|
$("#div_id_materias_do_expediente, #div_id_materias_da_ordem_do_dia").hide();
|
|
}
|
|
});
|
|
$("#id_ausencia").change()
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|