From bc382d731765848a8f88df97d07511836d499122 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 17 Apr 2015 11:22:07 -0700 Subject: [PATCH] Issue #609 - Frontpage interface up/down arrows not working. Replaced with editable option in add/edit mode. --- e107_admin/frontpage.php | 67 ++++++++++++++++++++++++++++++---------- 1 file changed, 51 insertions(+), 16 deletions(-) diff --git a/e107_admin/frontpage.php b/e107_admin/frontpage.php index c9474205a..b01648c21 100644 --- a/e107_admin/frontpage.php +++ b/e107_admin/frontpage.php @@ -397,7 +397,7 @@ class frontpage - ".LAN_ORDER." + ".LAN_ORDER." ".FRTLAN_53." ".FRTLAN_49." ".FRTLAN_35." @@ -411,14 +411,17 @@ class frontpage $title = e107::getUserClass()->uc_get_classname($current_value['class']); $text .= " - ".$order." + ".$order." ".$title." ".$this->lookup_path($current_value['page'])." ".$this->lookup_path($current_value['force'])." -
- ".$frm->admin_button('fp_inc',$order,'up',ADMIN_UP_ICON)." - ".$frm->admin_button('fp_dec',$order,'down',ADMIN_DOWN_ICON)." +
"; + + // ".$frm->admin_button('fp_inc',$order,'up',ADMIN_UP_ICON)." + // ".$frm->admin_button('fp_dec',$order,'down',ADMIN_DOWN_ICON)." + + $text .= " ".ADMIN_EDIT_ICON." ".$frm->admin_button('fp_delete_rule['.$order.']',$order,'',ADMIN_DELETE_ICON)."
@@ -496,14 +499,24 @@ class frontpage
- - + + - ".$text_tmp_1." - ".$this->add_other('frontpage', $is_other_home, $rule_info['page'])." + + +
Selection + + + + + + ".$text_tmp_1." + ".$this->add_other('frontpage', $is_other_home, $rule_info['page'])." +
+
@@ -511,22 +524,44 @@ class frontpage
- - + + - - ".$text_tmp_2." - + + + +
+ + + + + + ".$text_tmp_2." ".$this->add_other('fp_force_page', $is_other_force, $rule_info['force'])." +
+
+ + + + + + + + + + + + + +
".FRTLAN_43."".e107::getUserClass()->uc_dropdown('class', $rule_info['class'], 'public,guest,member,admin,main,classes')."
".LAN_ORDER."".$this->frm->number('fp_order', $rule_info['order'], 3, 'min=0')."
- ".$this->frm->hidden('fp_order', $rule_info['order'])." - ".FRTLAN_43.": ".e107::getUserClass()->uc_dropdown('class', $rule_info['class'], 'public,guest,member,admin,main,classes')." + ".$this->frm->admin_button('fp_save_new', LAN_UPDATE, 'update')." ".$this->frm->admin_button('fp_cancel', LAN_CANCEL, 'cancel')."