-12 Removals
+13 Additions

Created by:phpboost

1<script> 1<script>
2<!-- 2<!--
3function delete_filter(id) { 3function delete_filter(id) {
4 if (confirm(${escapejs(@actions.confirm.del_filter)})) { 4 if (confirm(${escapejs(@actions.confirm.del_filter)})) {
5 jQuery.ajax({ 5 jQuery.ajax({
6 url: '${relative_url(BugtrackerUrlBuilder::delete_filter())}', 6 url: '${relative_url(BugtrackerUrlBuilder::delete_filter())}',
7 type: "post", 7 type: "post",
8 data: {'id' : id, 'token' : '{TOKEN}'}, 8 data: {'id' : id, 'token' : '{TOKEN}'},
9 success: function(returnData){ 9 success: function(returnData){
10 if (returnData.code > 0) { 10 if (returnData.code > 0) {
11 jQuery("#filter" + returnData.code).remove(); 11 jQuery("#filter" + returnData.code).remove();
12 } 12 }
13 } 13 }
14 }); 14 });
15 } 15 }
16} 16}
17 17
18function toggle_filters_table() { 18function toggle_filters_table() {
19 jQuery("#table_filters").fadeToggle(); 19 jQuery("#table_filters").fadeToggle();
20} 20}
21--> 21-->
22</script> 22</script>
23<div class="cssmenu-group"> 23<div class="bugtracker-filter">
24 <a href="" onclick="toggle_filters_table(); return false;" class="cssmenu-title"><i class="fa fa-filter"></i> {L_FILTERS}</a> 24 <a href="" onclick="toggle_filters_table(); return false;" class="cssmenu-title"><i class="fa fa-filter" aria-hidden="true"></i> {L_FILTERS}</a>
25</div> 25</div>
26<table id="table_filters"# IF NOT C_HAS_SELECTED_FILTERS # style="display: none;"# ENDIF #> 26<table id="table_filters"# IF NOT C_HAS_SELECTED_FILTERS # style="display: none;"# ENDIF #>
27 <thead> 27 <thead>
28 <tr> 28 <tr>
29 # IF C_DISPLAY_TYPES # 29 # IF C_DISPLAY_TYPES #
30 <th> 30 <th>
31 {@labels.fields.type} 31 {@labels.fields.type}
32 </th> 32 </th>
33 # ENDIF # 33 # ENDIF #
34 # IF C_DISPLAY_CATEGORIES # 34 # IF C_DISPLAY_CATEGORIES #
35 <th> 35 <th>
36 {@labels.fields.category} 36 {@labels.fields.category}
37 </th> 37 </th>
38 # ENDIF # 38 # ENDIF #
39 # IF C_DISPLAY_SEVERITIES # 39 # IF C_DISPLAY_SEVERITIES #
40 <th> 40 <th>
41 {@labels.fields.severity} 41 {@labels.fields.severity}
42 </th> 42 </th>
43 # ENDIF # 43 # ENDIF #
44 <th> 44 <th>
45 {@labels.fields.status} 45 {@labels.fields.status}
46 </th> 46 </th>
47 # IF C_DISPLAY_VERSIONS # 47 # IF C_DISPLAY_VERSIONS #
48 <th> 48 <th>
49 {@labels.fields.version} 49 {@labels.fields.version}
50 </th> 50 </th>
51 # ENDIF # 51 # ENDIF #
52 # IF C_DISPLAY_SAVE_BUTTON # 52 # IF C_DISPLAY_SAVE_BUTTON #
53 <th> 53 <th>
54 </th> 54 </th>
55 # ENDIF # 55 # ENDIF #
56 </tr> 56 </tr>
57 </thead> 57 </thead>
58 <tfoot>
59 <tr>
60 <td colspan="{FILTERS_NUMBER}">${LangLoader::get_message('items_number', 'common')} : {BUGS_NUMBER}</td>
61 </tr>
62 </tfoot>
63 <tbody> 58 <tbody>
64 <tr> 59 <tr>
65 # IF C_DISPLAY_TYPES # 60 # IF C_DISPLAY_TYPES #
66 <td class="no-separator"> 61 <td class="no-separator">
67 # INCLUDE SELECT_TYPE # 62 # INCLUDE SELECT_TYPE #
68 </td> 63 </td>
69 # ENDIF # 64 # ENDIF #
70 # IF C_DISPLAY_CATEGORIES # 65 # IF C_DISPLAY_CATEGORIES #
71 <td class="no-separator"> 66 <td class="no-separator">
72 # INCLUDE SELECT_CATEGORY # 67 # INCLUDE SELECT_CATEGORY #
73 </td> 68 </td>
74 # ENDIF # 69 # ENDIF #
75 # IF C_DISPLAY_SEVERITIES # 70 # IF C_DISPLAY_SEVERITIES #
76 <td class="no-separator"> 71 <td class="no-separator">
77 # INCLUDE SELECT_SEVERITY # 72 # INCLUDE SELECT_SEVERITY #
78 </td> 73 </td>
79 # ENDIF # 74 # ENDIF #
80 <td class="no-separator"> 75 <td class="no-separator">
81 # INCLUDE SELECT_STATUS # 76 # INCLUDE SELECT_STATUS #
82 </td> 77 </td>
83 # IF C_DISPLAY_VERSIONS # 78 # IF C_DISPLAY_VERSIONS #
84 <td class="no-separator"> 79 <td class="no-separator">
85 # INCLUDE SELECT_VERSION # 80 # INCLUDE SELECT_VERSION #
86 </td> 81 </td>
87 # ENDIF # 82 # ENDIF #
88 # IF C_DISPLAY_SAVE_BUTTON # 83 # IF C_DISPLAY_SAVE_BUTTON #
89 <td class="no-separator"> 84 <td class="no-separator">
90 <a href="{LINK_FILTER_SAVE}" title="{@labels.save_filters}"><i class="fa fa-save"></i></a> 85 <a href="{LINK_FILTER_SAVE}" aria-label="{@labels.save_filters}"><i class="fa fa-save" aria-hidden="true" title="{@labels.save_filters}"></i></a>
91 </td> 86 </td>
92 # ENDIF # 87 # ENDIF #
93 </tr> 88 </tr>
94 # IF C_SAVED_FILTERS # 89 # IF C_SAVED_FILTERS #
95 # START filters # 90 # START filters #
96 <tr id="filter{filters.ID}"> 91 <tr id="filter{filters.ID}">
97 <td colspan="{FILTERS_NUMBER}"> 92 <td colspan="{FILTERS_NUMBER}">
98 <a href="" title="${LangLoader::get_message('delete', 'common')}" onclick="delete_filter('{filters.ID}'); return false;"><i class="fa fa-delete"></i></a> <a href="{filters.LINK_FILTER}">{filters.FILTER}</a> 93 <a href="" aria-label="${LangLoader::get_message('delete', 'common')}" onclick="delete_filter('{filters.ID}'); return false;"><i class="fa fa-delete" aria-hidden="true" title="${LangLoader::get_message('delete', 'common')}"></i></a>
94 <a href="{filters.LINK_FILTER}">{filters.FILTER}</a>
99 </td> 95 </td>
100 </tr> 96 </tr>
101 # END filters # 97 # END filters #
102 # ENDIF # 98 # ENDIF #
103 </tbody> 99 </tbody>
100 <tfoot>
101 <tr>
102 <td colspan="{FILTERS_NUMBER}">${LangLoader::get_message('items_number', 'common')} : {BUGS_NUMBER}</td>
103 </tr>
104 </tfoot>
104</table> 105</table>
105 106
106<div class="spacer"></div> 107<div class="spacer"></div>
107<script> 108<script>
108 jQuery('#table_filters').basictable(); 109 jQuery('#table_filters').basictable();
109</script> 110</script>
Editor
Original Text
Changed Text
Recommended videos