Explorar el Código

Corrections mineures website

olivier.massot hace 7 años
padre
commit
6ccaade9da
Se han modificado 3 ficheros con 15 adiciones y 2 borrados
  1. 10 1
      static/datachecker.js
  2. 1 1
      templates/index.html
  3. 4 0
      templates/report.html

+ 10 - 1
static/datachecker.js

@@ -2,7 +2,16 @@
 $(document).ready( function () {
     $('.datatable').DataTable( {
         "scrollX": true,
-        "pageLength": 25
+        "pageLength": 25,
+        "dom": 'Bfrtip',
+        buttons: [{
+		            extend: 'pdf',
+		            title: 'Rapport de contrôle'
+        		  },
+          		  {
+		            extend: 'excel',
+		            title: 'Rapport de contrôle'
+        		  }]
     } );
     
     $('#submit-form').submit(function(e) {

+ 1 - 1
templates/index.html

@@ -30,7 +30,7 @@
 				    <button type="submit" class="ui-button ui-corner-all ui-widget">Soumettre</button>
 					
 					<div class="please-wait" style="display:none;">
-					  <img src="{{ url_for('static', filename='ajax-loader.gif') }}" /> <i>Veuillez patienter, le traitement peut durer plusieurs minutes...</i>
+					  <img src="{{ url_for('static', filename='ajax-loader.gif') }}" /> <i style="margin-left: 10px;">Veuillez patienter, le traitement peut durer plusieurs minutes...</i>
 					</div>
 			        {%- if validation_error -%}
 			        <p class="error">{{ validation_error }}</p>

+ 4 - 0
templates/report.html

@@ -31,6 +31,10 @@
 				<th>Fichier contrôlé</th>
 				<td>{{ report['filename'] }}</td>
 			</tr>
+			<tr>
+				<th>Temps de traitement</th>
+				<td>{{ report['exec_time'] }}</td>
+			</tr>
 		</table>
 		
 		<h3>Check-Points</h3>