print option
authorOlivier Larchevêque <olivier.larcheveque@auf.org>
Mon, 9 Jan 2012 22:00:59 +0000 (17:00 -0500)
committerOlivier Larchevêque <olivier.larcheveque@auf.org>
Mon, 9 Jan 2012 22:00:59 +0000 (17:00 -0500)
project/rh/templates/admin/rh/dossier/apercu.html
project/rh/templates/admin/rh/employe/apercu.html
project/rh/templates/admin/rh/poste/apercu.html
project/rh/templates/rh/include/imprimer.html [new file with mode: 0644]

index 11a6ad4..ca2144e 100644 (file)
@@ -12,6 +12,7 @@
 
 {% block content %}
 <h2>Aperçu du dossier de {{ dossier.employe }}</h2>
+{% include "rh/include/imprimer.html" %}
 
 {% with dossier.employe as employe %}
     {% include "rh/include/employe.html" %}
index e6f9540..e1b4c5c 100644 (file)
@@ -12,6 +12,7 @@
 
 {% block content %}
 <h2>{{ employe }}</h2>
+{% include "rh/include/imprimer.html" %}
 
 {% include "rh/include/employe.html" %}
 
index 917b3ed..b8aec4d 100644 (file)
@@ -12,6 +12,7 @@
 
 {% block content %}
 <h2>Aperçu du poste {{ poste }}</h2>
+{% include "rh/include/imprimer.html" %}
 
 {% include "rh/include/poste.html" %}
 
diff --git a/project/rh/templates/rh/include/imprimer.html b/project/rh/templates/rh/include/imprimer.html
new file mode 100644 (file)
index 0000000..70b23cc
--- /dev/null
@@ -0,0 +1,10 @@
+<style type="text/css">
+@media print {
+    ul.object-tools .noprint {display: none;}
+}
+</style>
+
+<ul class="object-tools">
+    <li><a href="javascript:window.print()" class="noprint">Imprimer</a></li>
+</ul>
+