Rapport des postes par implantation et services, ajout des liens vers les postes
authorJean-Philippe Caissy <jpcaissy@piji.ca>
Wed, 4 Apr 2012 20:28:10 +0000 (15:28 -0500)
committerJean-Philippe Caissy <jpcaissy@piji.ca>
Wed, 4 Apr 2012 20:28:10 +0000 (15:28 -0500)
project/rh/templates/rh/rapports/postes_implantation.html
project/rh/templates/rh/rapports/postes_service.html

index dbd30ee..76bb885 100644 (file)
                     <li> {{ i.implantation.nom }} ({{ i.num_postes }})
                         <ul>
                             {% for p in i.postes %}
-                            <li>{{ p.nom }} [{{ p.id }}]</li>
+                            <li>
+                                <a href="{% url admin:rh_poste_change p.id %}">
+                                    {{ p.nom }} [{{ p.id }}]
+                                </a>
+                            </li>
                             {% endfor %}
                         </ul>
                     </li>
index 07b1345..4bbfbc8 100644 (file)
@@ -10,7 +10,7 @@
         <li>{{ d.service.nom }} ({{ d.num_postes }})
             <ul>
                 {% for p in d.postes %}
-                <li>{{ p.nom }} [{{ p.id }}]</li>
+                <li><a href="{% url admin:rh_poste_change p.id %}">{{ p.nom }}</a> [{{ p.id }}]</li>
                 {% endfor %}
             </ul>
         </li>