Sistema de Apoio ao Processo Legislativo
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
620 B

{% extends "crud/form.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load common_tags %}
{% block extra_js %}
<script language="Javascript">
function recuperar_numero_sessao() {
var tipo = $("#id_tipo").val()
if (tipo) {
$.get("/recuperar_numero_sessao",{tipo: tipo},
function(data, status) {
$("#id_numero").val(data.numero);
console.log(data)
});
}
}
$("#id_tipo").change(recuperar_numero_sessao);
</script>
{% endblock %}