personnes: emptying email and password fields on user access manage page, to
avoid confusing user with browser stored data. Closes #5452
This commit is contained in:
parent
9e8be8ad51
commit
563749730f
|
@ -1,4 +1,10 @@
|
|||
{% extends "personnes/simple-form.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block extrascripts %}
|
||||
<script src="{% static "js/access.js" %}"></script>
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
|
||||
{% block appbar %}
|
||||
<h2>Modifier l'accès {{ object }}</h2>
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
(function($){
|
||||
$(function() {
|
||||
$.each(['email', 'password1', 'password2'], function(i, element) {
|
||||
$('form input[name=' + element + ']').val('');
|
||||
})
|
||||
})
|
||||
})(window.jQuery)
|
Reference in New Issue