@@ 1235-1255 (lines=21) @@ | ||
1232 | } |
|
1233 | ||
1234 | ||
1235 | protected function _category_details($view) { |
|
1236 | ||
1237 | //load formatter helper |
|
1238 | //load field generator helper |
|
1239 | ||
1240 | $route = $view == 'edit' ? 'update_category' : 'insert_category'; |
|
1241 | $this->_set_add_edit_form_tags($route); |
|
1242 | ||
1243 | $this->_set_category_object(); |
|
1244 | $id = !empty($this->_category->id) ? $this->_category->id : ''; |
|
1245 | ||
1246 | $delete_action = 'delete_category'; |
|
1247 | ||
1248 | $redirect = EE_Admin_Page::add_query_args_and_nonce( array( 'action' => 'category_list' ), $this->_admin_base_url ); |
|
1249 | ||
1250 | $this->_set_publish_post_box_vars( 'VEN_CAT_ID', $id, $delete_action, $redirect ); |
|
1251 | ||
1252 | //take care of contents |
|
1253 | $this->_template_args['admin_page_content'] = $this->_category_details_content(); |
|
1254 | $this->display_admin_page_with_sidebar(); |
|
1255 | } |
|
1256 | ||
1257 | ||
1258 |
@@ 2121-2142 (lines=22) @@ | ||
2118 | } |
|
2119 | ||
2120 | ||
2121 | protected function _category_details($view) { |
|
2122 | ||
2123 | //load formatter helper |
|
2124 | //load field generator helper |
|
2125 | ||
2126 | $route = $view == 'edit' ? 'update_category' : 'insert_category'; |
|
2127 | $this->_set_add_edit_form_tags($route); |
|
2128 | ||
2129 | $this->_set_category_object(); |
|
2130 | $id = !empty($this->_category->id) ? $this->_category->id : ''; |
|
2131 | ||
2132 | $delete_action = 'delete_category'; |
|
2133 | ||
2134 | //custom redirect |
|
2135 | $redirect = EE_Admin_Page::add_query_args_and_nonce( array('action' => 'category_list'), $this->_admin_base_url ); |
|
2136 | ||
2137 | $this->_set_publish_post_box_vars( 'EVT_CAT_ID', $id, $delete_action, $redirect ); |
|
2138 | ||
2139 | //take care of contents |
|
2140 | $this->_template_args['admin_page_content'] = $this->_category_details_content(); |
|
2141 | $this->display_admin_page_with_sidebar(); |
|
2142 | } |
|
2143 | ||
2144 | ||
2145 |