1 {% extends 'base.html' %}
4 <script src=
"{{ MEDIA_URL }}js/jquery-1.5.1.min.js"
5 type=
"text/javascript"></script>
6 <script src=
"{{ MEDIA_URL }}js/jquery-ui-1.8.11.custom.min.js"
7 type=
"text/javascript"></script>
8 <link href=
"{{ MEDIA_URL }}/css/redmond/jquery-ui-1.8.11.custom.css"
25 <form action=
"" method=
"post">
26 <table cellspacing=
"0">
29 <input type=
"submit" name=
"save" value=
"Sauvegarder" />
34 <table cellspacing=
"0" id=
"financing">
43 {% for fin in poste.financements.all %}
45 <td>{{ fin.type }}
</td>
46 <td>{{ fin.montant }}
</td>
47 <td>{{ fin.devise }}
</td>
48 <td>{{ fin.pourcentage }}
</td>
49 <td>{{ fin.commentaire }}
</td>
50 <td><a href=
"{% url financement poste_key fin.id %}">Modifier
</a></td>
56 Vous devez enregister ce nouveau poste avant de pouvoir spécifier
57 la ou les sources de financement.
59 Aucun financement au registre
66 <a href=
"{% url financement poste_key %}" class=
"new">
67 Ajouter une source de financement
71 <div id=
"financing-form"></div>
73 <script type=
"text/javascript">
74 $('#id_poste').change(function() {
75 window.location = '{% url poste %}/' + $(this).val();
77 $('#financing a, a.new').click(function() {
78 $('#financing-form').load($(this).attr('href') + '?ajax=
1')