mirror of https://github.com/interlegis/sapl.git
committed by
Cesar Carvalho
4 changed files with 12 additions and 76 deletions
@ -1,15 +0,0 @@ |
|||
{% extends "crud/list.html" %} |
|||
{% load i18n common_tags crispy_forms_tags%} |
|||
|
|||
{% block extra_js %} |
|||
<script language="Javascript"> |
|||
$(document).ready(function() { |
|||
let botao_add = $(".context-actions").children().last().children().first(); |
|||
href = botao_add.attr('href'); |
|||
let materia_id = href.split("/")[2]; |
|||
let new_url = '/materia/' + materia_id + '/despachoinicialmulti/create'; |
|||
console.log(new_url); |
|||
href = botao_add.attr('href', new_url); |
|||
}); |
|||
</script> |
|||
{% endblock %} |
|||
Loading…
Reference in new issue