Browse Source

Lien pour télécharger les ressources générées

Hugo Roy 8 years ago
parent
commit
1590f2ede2
1 changed files with 15 additions and 1 deletions
  1. 15 1
      templates/tpl-view-project.php

+ 15 - 1
templates/tpl-view-project.php

@@ -53,8 +53,22 @@ include_once 'templates/tpl-main-top.php';
 	</form>
 	</form>
     </div>
     </div>
 
 
+    <div class="ressources">
+    <h3>Télécharger</h3>
+      <a class="pdf" href="/<?php echo $o['dossier_id']; ?>/<?php echo $o['rowid']; ?>.pdf">PDF</a>
+      <a class="docx" href="<?php echo $o['dossier_id']; ?>/<?php echo $o['rowid']; ?>.docx">Docx</a>
+      <a class="html5" href="/<?php echo $o['dossier_id']; ?>/<?php echo $o['rowid']; ?>.html">HTML</a>
+      <a class="txt" href="/<?php echo $o['dossier_id']; ?>/<?php echo $o['rowid']; ?>.txt">Texte</a>
+      <br />Dernière compilation :&nbsp;<div id="statusmsg"></div>
+    </div>
 
 
-
+<script>
+$(document).ready(function() {
+    jQuery.get('/bartender/status?dossier=tes&projetId=tes-ma-rep', function(data) {
+        $("#statusmsg").html(data["text"]);
+    });
+});
+</script>
 
 
 <?php
 <?php
 include_once 'templates/tpl-main-bottom.php';
 include_once 'templates/tpl-main-bottom.php';