]> git.parisson.com Git - teleforma.git/commitdiff
add printing help with annotations
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 1 Jul 2016 11:22:55 +0000 (13:22 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 1 Jul 2016 11:22:55 +0000 (13:22 +0200)
teleforma/exam/static/exam/js/exam.js [new file with mode: 0644]
teleforma/exam/templates/exam/script_detail.html

diff --git a/teleforma/exam/static/exam/js/exam.js b/teleforma/exam/static/exam/js/exam.js
new file mode 100644 (file)
index 0000000..ecf0e0f
--- /dev/null
@@ -0,0 +1,72 @@
+
+$(document).ready(function(){
+
+    $( "#dialog_mark" ).dialog({
+        autoOpen: false,
+        draggable: false,
+        resizable: false,
+                modal: true,
+    });
+
+    $( "#dialog_reject" ).dialog({
+        autoOpen: false,
+        draggable: false,
+        resizable: false,
+                modal: true,
+    });
+
+    $( "#dialog_comments" ).dialog({
+        autoOpen: false,
+        draggable: false,
+        resizable: false,
+                modal: true,
+    });
+
+    $( "#dialog_help" ).dialog({
+        autoOpen: false,
+        draggable: false,
+        resizable: false,
+                modal: true,
+    });
+
+    $( "#opener_mark" ).click(function() {
+        $( "#dialog_mark" ).dialog({ width: 500 });
+        $( "#dialog_mark" ).dialog( "open");
+        return false;
+    });
+
+    $( "#opener_reject" ).click(function() {
+        $( "#dialog_reject" ).dialog( "open");
+        return false;
+    });
+
+    $( "#opener_comments" ).click(function() {
+        $( "#dialog_comments" ).dialog( "open");
+        return false;
+    });
+
+    $( "#opener_help" ).click(function() {
+        $( "#dialog_help" ).dialog( "open");
+        return false;
+    });
+
+    var b1 = $('#validate_button');
+    b1.unbind('click').click(function() {
+        $(window).unbind('beforeunload');
+        b1.unbind('click');
+        $('#_MarkForm #id_status').val("4");
+        $('#_MarkForm').submit();
+    });
+
+    var b2 = $('#reject_button');
+    b2.unbind('click').click(function() {
+        $(window).unbind('beforeunload');
+        b2.unbind('click');
+        $('#_RejectForm #id_status').val("0");
+        $('#_RejectForm').submit();
+    });
+
+       // $("#box-iframe").contents().find("span.btn.text-btn.strikeout-btn").hide();
+
+
+});
index 813f605a784a64a56408436bc52e05e41aa955e1..6835a406ca59f4371359c5e0f20c80352624c94f 100644 (file)
@@ -8,80 +8,15 @@
   <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
   <script src="//code.jquery.com/jquery-1.10.2.js"></script>
   <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
-
+  <script src="{{ STATIC_URL }}exam/js/exam.js"></script>
   <script>
     // increase the default animation speed to exaggerate the effect
-
-    $(document).ready(function(){
-
-        $( "#dialog_mark" ).dialog({
-            autoOpen: false,
-            draggable: false,
-            resizable: false,
-                    modal: true,
-
-        });
-
-        $( "#dialog_reject" ).dialog({
-            autoOpen: false,
-            draggable: false,
-            resizable: false,
-                    modal: true,
-
-        });
-
-        $( "#dialog_comments" ).dialog({
-            autoOpen: false,
-            draggable: false,
-            resizable: false,
-                    modal: true,
-
-        });
-
-        $( "#opener_mark" ).click(function() {
-            $( "#dialog_mark" ).dialog({ width: 500 });
-            $( "#dialog_mark" ).dialog( "open");
-            return false;
-        });
-
-        $( "#opener_reject" ).click(function() {
-            $( "#dialog_reject" ).dialog( "open");
-            return false;
-        });
-
-        $( "#opener_comments" ).click(function() {
-            $( "#dialog_comments" ).dialog( "open");
-            return false;
-        });
-
-        var b1 = $('#validate_button');
-        b1.unbind('click').click(function() {
-            $(window).unbind('beforeunload');
-            b1.unbind('click');
-            $('#_MarkForm #id_status').val("4");
-            $('#_MarkForm').submit();
-        });
-
-        var b2 = $('#reject_button');
-        b2.unbind('click').click(function() {
-            $(window).unbind('beforeunload');
-            b2.unbind('click');
-            $('#_RejectForm #id_status').val("0");
-            $('#_RejectForm').submit();
-        });
-
-       // $("#box-iframe").contents().find("span.btn.text-btn.strikeout-btn").hide();
-
-
-    });
-
   {% if script.comments %}
     $(window).ready(function(){
       $( "#dialog_comments" ).dialog( "open");
     });
   {% endif %}
     </script>
-
 {% endblock extra_javascript %}
 
 {% block content %}
     <br /><br />
 </div>
 
+<div id="dialog_help" title="{% trans "Help" %}" style="width: 400px;">
+ <h2>Impression de la copie corrigée</h2>
+   Pour imprimer votre copie corrigée avec les annotations, veuillez :
+   <ul>
+       <li>Téléchager votre copie à l'aide du boutton "flêche vers le bas" du menu au dessus de la copie (Download annotated PDF)</li>
+       <li>Ouvir le fichier PDF obtenu avec <a href="https://get.adobe.com/fr/reader/">Acrobat Reader</a></li>
+       <li>Imprimer le document avec l'option "Document et annotations" comme expliqué <a href="https://helpx.adobe.com/fr/acrobat/kb/print-comments-acrobat-reader.html">ici</a></li>
+   </ul>
+</div>
 
 {% if access_error %}
   <p>{{ access_error }}</p>