Revision 56374973
Added by Serghei Mihai almost 10 years ago
calebasse/personnes/templates/personnes/acces-update.html | ||
---|---|---|
1 | 1 |
{% extends "personnes/simple-form.html" %} |
2 |
{% load static %} |
|
3 |
|
|
4 |
{% block extrascripts %} |
|
5 |
<script src="{% static "js/access.js" %}"></script> |
|
6 |
{{ block.super }} |
|
7 |
{% endblock %} |
|
2 | 8 |
|
3 | 9 |
{% block appbar %} |
4 | 10 |
<h2>Modifier l'accès {{ object }}</h2> |
calebasse/static/js/access.js | ||
---|---|---|
1 |
(function($){ |
|
2 |
$(function() { |
|
3 |
$.each(['email', 'password1', 'password2'], function(i, element) { |
|
4 |
$('form input[name=' + element + ']').val(''); |
|
5 |
}) |
|
6 |
}) |
|
7 |
})(window.jQuery) |
Also available in: Unified diff
personnes: emptying email and password fields on user access manage page, to
avoid confusing user with browser stored data.
Closes #5452