Commit d01cc219fa05ed8c1c71676faf46cb67eb3759d4

Authored by Zambom
1 parent 632a061b

Answered goals report style adjustments and activate i18n

amadeus/static/css/base/amadeus.css
@@ -1196,6 +1196,10 @@ li.item .notify_badge { @@ -1196,6 +1196,10 @@ li.item .notify_badge {
1196 font-weight: 700; 1196 font-weight: 700;
1197 font-size: 20px; 1197 font-size: 20px;
1198 } 1198 }
  1199 +
  1200 +div.dataTables_wrapper div.dataTables_paginate {
  1201 + text-align: center !important;
  1202 +}
1199 /* End Goals */ 1203 /* End Goals */
1200 1204
1201 1205
amadeus/static/js/goals_reports.js
@@ -23,7 +23,8 @@ function getAnswered() { @@ -23,7 +23,8 @@ function getAnswered() {
23 // return false; 23 // return false;
24 // }); 24 // });
25 $('#answered_table').DataTable({ 25 $('#answered_table').DataTable({
26 - "dom": "frtip" 26 + "dom": "frtip",
  27 + "language": dataTablei18n
27 }); 28 });
28 // var items = $("#answered_table").children(":visible").length; 29 // var items = $("#answered_table").children(":visible").length;
29 30
goals/templates/goals/_answered.html
@@ -8,27 +8,19 @@ @@ -8,27 +8,19 @@
8 <table id="answered_table" class="table table-striped table-bordered"> 8 <table id="answered_table" class="table table-striped table-bordered">
9 <thead> 9 <thead>
10 <th> 10 <th>
11 - <a href="">  
12 - {% trans 'Student' %} <i class="fa fa-fw pull-right"></i>  
13 - </a> 11 + {% trans 'Student' %}
14 </th> 12 </th>
15 <th> 13 <th>
16 {% trans 'Group' %} 14 {% trans 'Group' %}
17 </th> 15 </th>
18 <th> 16 <th>
19 - <a href="">  
20 - {% trans 'Definition Date' %} <i class="fa fa-fw pull-right"></i>  
21 - </a> 17 + {% trans 'Definition Date' %}
22 </th> 18 </th>
23 <th> 19 <th>
24 - <a href="">  
25 - {% trans 'Update Date' %} <i class="fa fa-fw pull-right"></i>  
26 - </a> 20 + {% trans 'Update Date' %}
27 </th> 21 </th>
28 <th> 22 <th>
29 - <a href="">  
30 - {% trans 'Goals' %} <i class="fa fa-fw pull-right"></i>  
31 - </a> 23 + {% trans 'Goals' %}
32 </th> 24 </th>
33 </thead> 25 </thead>
34 <tbody> 26 <tbody>
goals/templates/goals/reports.html
@@ -66,5 +66,31 @@ @@ -66,5 +66,31 @@
66 </div> 66 </div>
67 </div> 67 </div>
68 68
  69 + <script type="text/javascript">
  70 + var dataTablei18n = {
  71 + "decimal": "",
  72 + "emptyTable": "{% trans 'No data available in table' %}",
  73 + "info": "{% trans 'Showing _START_ to _END_ of _TOTAL_ entries' %}",
  74 + "infoEmpty": "{% trans 'Showing 0 to 0 of 0 entries' %}",
  75 + "infoFiltered": "{% trans '(filtered from _MAX_ total entries)' %}",
  76 + "infoPostFix": "",
  77 + "thousands": ",",
  78 + "lengthMenu": "{% trans 'Show _MENU_ entries' %}",
  79 + "loadingRecords": "{% trans 'Loading...' %}",
  80 + "processing": "{% trans 'Processing...' %}",
  81 + "search": "{% trans 'Search' %}:",
  82 + "zeroRecords": "{% trans 'No matching records found' %}",
  83 + "paginate": {
  84 + "first": "{% trans 'First' %}",
  85 + "last": "{% trans 'Last' %}",
  86 + "next": "»",
  87 + "previous": "«"
  88 + },
  89 + "aria": {
  90 + "sortAscending": "{% trans ': activate to sort column ascending' %}",
  91 + "sortDescending": "{% trans ': activate to sort column descending' %}"
  92 + }
  93 + }
  94 + </script>
69 <script type="text/javascript" src="{% static 'js/goals_reports.js' %}"></script> 95 <script type="text/javascript" src="{% static 'js/goals_reports.js' %}"></script>
70 {% endblock %} 96 {% endblock %}
71 \ No newline at end of file 97 \ No newline at end of file