Revision 7cd2f6fb
Added by Jérôme Schneider almost 13 years ago
| calebasse/actes/templates/actes/act_listing.html | ||
|---|---|---|
|
{% extends "calebasse/base.html" %}
|
||
|
|
||
|
{% load url from future %}
|
||
|
|
||
|
{% block extrascripts %}
|
||
|
{{ block.super }}
|
||
|
<script src="{{ STATIC_URL }}js/calebasse.datesel.js"></script>
|
||
|
<script src="{{ STATIC_URL }}js/calebasse.dialog.js"></script>
|
||
|
<script>
|
||
|
$(function() {
|
||
|
$('table#actes tr').click(function() {
|
||
| ... | ... | |
|
}
|
||
|
});
|
||
|
$('.date').datepicker();
|
||
|
$('#new-acte').click(function() {
|
||
|
$('#new-acte-dlg').dialog({title: 'Nouvel acte',
|
||
|
width: '550px',
|
||
|
buttons: [ { text: "Fermer",
|
||
|
click: function() { $(this).dialog("close"); } },
|
||
|
{ text: "Ajouter",
|
||
|
click: function() { $(this).dialog("close"); } }
|
||
|
]}
|
||
|
);
|
||
|
$('.new-act').click(function() {
|
||
|
generic_ajaxform_dialog($(this).data('url'), 'Nouvel acte',
|
||
|
'#acte-dlg', '850px', 'Ajouter', '..');
|
||
|
});
|
||
|
$('#search-form input[type="checkbox"]').on('change', function () {
|
||
|
$('#search-form').submit();
|
||
| ... | ... | |
|
<div id="appbar">
|
||
|
<h2>Saisie des actes</h2>
|
||
|
<a href="../..">Retourner à l'accueil</a>
|
||
|
<button class="dialog-button"
|
||
|
data-url="nouvel-acte/"
|
||
|
data-default-button="Ajouter"
|
||
|
>Ajouter un acte</button>
|
||
|
<button class="new-act"
|
||
|
data-url="{% url 'act-new' service=service date=date %}">
|
||
|
Ajouter un acte
|
||
|
</button>
|
||
|
</div>
|
||
|
{% endblock %}
|
||
|
|
||
Also available in: Unified diff
actes: fix new act dialog
Fix #2792