-12 Removals
+13 Additions
<script> <script>
<!-- <!--
function delete_filter(id) { function delete_filter(id) {
if (confirm(${escapejs(@actions.confirm.del_filter)})) { if (confirm(${escapejs(@actions.confirm.del_filter)})) {
jQuery.ajax({ jQuery.ajax({
url: '${relative_url(BugtrackerUrlBuilder::delete_filter())}', url: '${relative_url(BugtrackerUrlBuilder::delete_filter())}',
type: "post", type: "post",
data: {'id' : id, 'token' : '{TOKEN}'}, data: {'id' : id, 'token' : '{TOKEN}'},
success: function(returnData){ success: function(returnData){
if (returnData.code > 0) { if (returnData.code > 0) {
jQuery("#filter" + returnData.code).remove(); jQuery("#filter" + returnData.code).remove();
} }
} }
}); });
} }
} }
function toggle_filters_table() { function toggle_filters_table() {
jQuery("#table_filters").fadeToggle(); jQuery("#table_filters").fadeToggle();
} }
--> -->
</script> </script>
<div class="cssmenu-group"> <div class="bugtracker-filter">
<a href="" onclick="toggle_filters_table(); return false;" class="cssmenu-title"><i class="fa fa-filter"></i> {L_FILTERS}</a> <a href="" onclick="toggle_filters_table(); return false;" class="cssmenu-title"><i class="fa fa-filter" aria-hidden="true"></i> {L_FILTERS}</a>
</div> </div>
<table id="table_filters"# IF NOT C_HAS_SELECTED_FILTERS # style="display: none;"# ENDIF #> <table id="table_filters"# IF NOT C_HAS_SELECTED_FILTERS # style="display: none;"# ENDIF #>
<thead> <thead>
<tr> <tr>
# IF C_DISPLAY_TYPES # # IF C_DISPLAY_TYPES #
<th> <th>
{@labels.fields.type} {@labels.fields.type}
</th> </th>
# ENDIF # # ENDIF #
# IF C_DISPLAY_CATEGORIES # # IF C_DISPLAY_CATEGORIES #
<th> <th>
{@labels.fields.category} {@labels.fields.category}
</th> </th>
# ENDIF # # ENDIF #
# IF C_DISPLAY_SEVERITIES # # IF C_DISPLAY_SEVERITIES #
<th> <th>
{@labels.fields.severity} {@labels.fields.severity}
</th> </th>
# ENDIF # # ENDIF #
<th> <th>
{@labels.fields.status} {@labels.fields.status}
</th> </th>
# IF C_DISPLAY_VERSIONS # # IF C_DISPLAY_VERSIONS #
<th> <th>
{@labels.fields.version} {@labels.fields.version}
</th> </th>
# ENDIF # # ENDIF #
# IF C_DISPLAY_SAVE_BUTTON # # IF C_DISPLAY_SAVE_BUTTON #
<th> <th>
</th> </th>
# ENDIF # # ENDIF #
</tr> </tr>
</thead> </thead>
<tfoot>
<tr>
<td colspan="{FILTERS_NUMBER}">${LangLoader::get_message('items_number', 'common')} : {BUGS_NUMBER}</td>
</tr>
</tfoot>
<tbody> <tbody>
<tr> <tr>
# IF C_DISPLAY_TYPES # # IF C_DISPLAY_TYPES #
<td class="no-separator"> <td class="no-separator">
# INCLUDE SELECT_TYPE # # INCLUDE SELECT_TYPE #
</td> </td>
# ENDIF # # ENDIF #
# IF C_DISPLAY_CATEGORIES # # IF C_DISPLAY_CATEGORIES #
<td class="no-separator"> <td class="no-separator">
# INCLUDE SELECT_CATEGORY # # INCLUDE SELECT_CATEGORY #
</td> </td>
# ENDIF # # ENDIF #
# IF C_DISPLAY_SEVERITIES # # IF C_DISPLAY_SEVERITIES #
<td class="no-separator"> <td class="no-separator">
# INCLUDE SELECT_SEVERITY # # INCLUDE SELECT_SEVERITY #
</td> </td>
# ENDIF # # ENDIF #
<td class="no-separator"> <td class="no-separator">
# INCLUDE SELECT_STATUS # # INCLUDE SELECT_STATUS #
</td> </td>
# IF C_DISPLAY_VERSIONS # # IF C_DISPLAY_VERSIONS #
<td class="no-separator"> <td class="no-separator">
# INCLUDE SELECT_VERSION # # INCLUDE SELECT_VERSION #
</td> </td>
# ENDIF # # ENDIF #
# IF C_DISPLAY_SAVE_BUTTON # # IF C_DISPLAY_SAVE_BUTTON #
<td class="no-separator"> <td class="no-separator">
<a href="{LINK_FILTER_SAVE}" title="{@labels.save_filters}"><i class="fa fa-save"></i></a> <a href="{LINK_FILTER_SAVE}" aria-label="{@labels.save_filters}"><i class="fa fa-save" aria-hidden="true" title="{@labels.save_filters}"></i></a>
</td> </td>
# ENDIF # # ENDIF #
</tr> </tr>
# IF C_SAVED_FILTERS # # IF C_SAVED_FILTERS #
# START filters # # START filters #
<tr id="filter{filters.ID}"> <tr id="filter{filters.ID}">
<td colspan="{FILTERS_NUMBER}"> <td colspan="{FILTERS_NUMBER}">
<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> <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>
<a href="{filters.LINK_FILTER}">{filters.FILTER}</a>
</td> </td>
</tr> </tr>
# END filters # # END filters #
# ENDIF # # ENDIF #
</tbody> </tbody>
<tfoot>
<tr>
<td colspan="{FILTERS_NUMBER}">${LangLoader::get_message('items_number', 'common')} : {BUGS_NUMBER}</td>
</tr>
</tfoot>
</table> </table>
<div class="spacer"></div> <div class="spacer"></div>
<script> <script>
jQuery('#table_filters').basictable(); jQuery('#table_filters').basictable();
</script> </script>
Editor
Original Text
Changed Text