Revision 5319f052
Added by Benjamin Dauvergne about 13 years ago
| calebasse/personnes/templates/personnes/acces.html | ||
|---|---|---|
|
{% block extrascripts %}
|
||
|
<script>
|
||
|
$(function() {
|
||
|
$('#new-membre').dialogButton({
|
||
|
url: 'new/ #form-content',
|
||
|
default_button: 'Créer',
|
||
|
title: 'Créer un nouvel accés'
|
||
|
});
|
||
|
$('tr').click(function () {
|
||
|
var pk = $(this).data('pk');
|
||
|
window.location.href=pk+'/';
|
||
| ... | ... | |
|
<h2>Gestion des personnes — Accès</h2>
|
||
|
<a href="gestion-personnes.html">Retourner à la gestion des personnes</a>
|
||
|
|
||
|
<button id="new-membre">Nouvel accès</button>
|
||
|
<br/>
|
||
|
<button class="dialog-button" data-url="new/ #form-content" data-default-button="Créer">Nouvel accès</button>
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block beforecontent %}
|
||
Also available in: Unified diff
personnes: use new jquery dialog extension