mirror of https://github.com/interlegis/sapl.git
4 changed files with 22 additions and 5 deletions
@ -0,0 +1,16 @@ |
|||||
|
{% extends "crud/form.html" %} |
||||
|
{% load i18n %} |
||||
|
|
||||
|
{% block extra_js %} |
||||
|
|
||||
|
<script type="text/javascript"> |
||||
|
$(() => { |
||||
|
$("#renovar-token").click(() => { |
||||
|
$.get("{% url 'sapl.api:renova_token' %}", (res) => { |
||||
|
$("#id_token").val(res.token); |
||||
|
}); |
||||
|
}); |
||||
|
}); |
||||
|
</script> |
||||
|
|
||||
|
{% endblock %} |
||||
Loading…
Reference in new issue