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
525 B
25 lines
525 B
{% extends "crud/form.html" %}
|
|
{% load i18n %}
|
|
{% load crispy_forms_tags %}
|
|
{% load common_tags %}
|
|
|
|
{% block extra_js %}
|
|
|
|
<script language="Javascript">
|
|
|
|
function atualizar_autores() {
|
|
var tipo_autor = $("#id_tipo_autor").val();
|
|
var materia_id = {{ root_pk }}
|
|
|
|
$.get("/materia/autoria/atualizar-autores",
|
|
{tipo_autor: tipo_autor, materia_id: materia_id},
|
|
function(data) {
|
|
|
|
});
|
|
}
|
|
$("#id_tipo_autor").change(function () {
|
|
atualizar_autores();
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|