Changeset 14487
- Timestamp:
- 01/17/08 16:46:15 (11 months ago)
- Files:
-
- trunk/midcom/midcom.helper.reflector/config/config.inc (modified) (1 diff)
- trunk/midcom/midgard.admin.asgard/handler/component/configuration.php (modified) (3 diffs)
- trunk/midcom/midgard.admin.asgard/handler/components.php (modified) (1 diff)
- trunk/midcom/midgard.admin.asgard/style/midgard_admin_asgard_trash_type.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.reflector/config/config.inc
r14480 r14487 47 47 'midgard_group', 48 48 'org_openpsa_organization', 49 /* Replicator subscriptions have their own specific admin UI */ 50 'midcom_helper_replicator_subscription', 49 51 ), 50 52 // Classes that should always be listed as root class (mainly workaround for schema bugs) trunk/midcom/midgard.admin.asgard/handler/component/configuration.php
r14385 r14487 79 79 midgard_admin_asgard_plugin::get_common_toolbar($this->_request_data); 80 80 } 81 82 function _prepare_breadcrumbs($handler_id) 83 { 84 // Set the breadcrumb data 85 $tmp = array(); 86 $tmp[] = array 87 ( 88 MIDCOM_NAV_URL => '__mfa/asgard/', 89 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('midgard.admin.asgard', 'midgard.admin.asgard'), 90 ); 91 $tmp[] = array 92 ( 93 MIDCOM_NAV_URL => '__mfa/asgard/components/', 94 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('components', 'midgard.admin.asgard'), 95 ); 96 $tmp[] = array 97 ( 98 MIDCOM_NAV_URL => "__mfa/asgard/components/{$this->_request_data['name']}/", 99 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string($this->_request_data['name'], $this->_request_data['name']), 100 ); 101 $tmp[] = array 102 ( 103 MIDCOM_NAV_URL => "__mfa/asgard/components/configuration/{$this->_request_data['name']}/", 104 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('component configuration', 'midcom'), 105 ); 106 107 if ($handler_id == '____mfa-asgard-components_configuration_edit') 108 { 109 $tmp[] = array 110 ( 111 MIDCOM_NAV_URL => "__mfa/asgard/components/configuration/{$this->_request_data['name']}/edit/", 112 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('edit', 'midcom'), 113 ); 114 } 115 116 $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp); 117 } 81 118 82 119 function _load_configs($component, $object = null) … … 214 251 $this->_prepare_toolbar($handler_id); 215 252 $_MIDCOM->set_pagetitle($data['view_title']); 216 253 $this->_prepare_breadcrumbs($handler_id); 217 254 return true; 218 255 } … … 509 546 $this->_prepare_toolbar($handler_id); 510 547 $data['view_title'] = sprintf($this->_l10n->get('edit configuration for %s'), $data['name']); 548 $this->_prepare_breadcrumbs($handler_id); 511 549 } 512 550 trunk/midcom/midgard.admin.asgard/handler/components.php
r14482 r14487 206 206 midgard_admin_asgard_plugin::get_common_toolbar($data); 207 207 208 $data['asgard_toolbar']->add_item 209 ( 210 array 211 ( 212 MIDCOM_TOOLBAR_URL => "__mfa/asgard/components/configuration/{$data['component']}", 213 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('component configuration', 'midcom'), 214 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_folder-properties.png', 215 ) 216 ); 208 217 209 218 // Set the breadcrumb data trunk/midcom/midgard.admin.asgard/style/midgard_admin_asgard_trash_type.php
r14472 r14487 38 38 $disabled = ' disabled="disabled"'; 39 39 } 40 40 41 if (is_array($label)) 42 { 43 foreach ($label as $property) 44 { 45 if ( isset($object->$property) 46 && $object->$property) 47 { 48 $label = $property; 49 break; 50 } 51 } 52 } 41 53 echo "{$prefix} <td class=\"checkbox\"><input type=\"checkbox\" name=\"undelete[]\"{$disabled} value=\"{$object->guid}\" id=\"{$object->guid}\" /></td>\n"; 42 54 //echo "{$prefix} <td class=\"label\" style=\"padding-left: {$indent}px\"><label for=\"{$object->guid}\"><a href=\"{$url_prefix}__mfa/asgard/object/view/{$object->guid}/\">{$icon} {$object->$label}</a></label></td>\n";
