Skip to content

Commit

Permalink
Move filter edit option to button
Browse files Browse the repository at this point in the history
  • Loading branch information
cproensa committed Jan 14, 2017
1 parent 9734e3f commit 7f670f2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions manage_filter_page.php
Expand Up @@ -94,12 +94,7 @@ function table_print_filter_row( $p_filter_id ) {
# Filter name
echo '<td>';
$t_name = string_display( filter_get_field( $p_filter_id, 'name' ) );
if( $t_editable ) {
print_link( 'manage_filter_edit_page.php?filter_id=' . $p_filter_id, $t_name );
} else {
# If the user can't edit the filter, follow to filter view page, where he can modify and apply as current filter
print_link( 'view_filters_page.php?filter_id=' . $p_filter_id, $t_name );
}
print_link( 'view_filters_page.php?filter_id=' . $p_filter_id, $t_name );
echo '</td>';
# RSS
if( $t_rss_enabled ) {
Expand All @@ -119,6 +114,9 @@ function table_print_filter_row( $p_filter_id ) {
print_form_button( 'view_all_set.php', lang_get( 'apply_filter_button' ), array( 'type' => 3, 'source_query_id' => $p_filter_id ), /* security token */ OFF );
echo '</div>';
if( $t_editable ) {
echo '<div class="pull-left">';
print_form_button( 'manage_filter_edit_page.php', lang_get( 'edit_link' ), array( 'filter_id' => $p_filter_id ) );
echo '</div>';
echo '<div class="pull-left">';
print_form_button( 'manage_filter_delete.php', lang_get( 'delete_filter_button' ), array( 'filter_id' => $p_filter_id ) );
echo '</div>';
Expand Down

0 comments on commit 7f670f2

Please sign in to comment.