Changeset 14487

Show
Ignore:
Timestamp:
01/17/08 16:46:15 (11 months ago)
Author:
bergie
Message:

Minor UI tweaking

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.reflector/config/config.inc

    r14480 r14487  
    4747    'midgard_group', 
    4848    'org_openpsa_organization', 
     49    /* Replicator subscriptions have their own specific admin UI */ 
     50    'midcom_helper_replicator_subscription', 
    4951), 
    5052// 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  
    7979        midgard_admin_asgard_plugin::get_common_toolbar($this->_request_data); 
    8080    } 
     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    } 
    81118 
    82119    function _load_configs($component, $object = null) 
     
    214251        $this->_prepare_toolbar($handler_id); 
    215252        $_MIDCOM->set_pagetitle($data['view_title']); 
    216  
     253        $this->_prepare_breadcrumbs($handler_id); 
    217254        return true; 
    218255    } 
     
    509546            $this->_prepare_toolbar($handler_id); 
    510547            $data['view_title'] = sprintf($this->_l10n->get('edit configuration for %s'), $data['name']); 
     548            $this->_prepare_breadcrumbs($handler_id); 
    511549        } 
    512550 
  • trunk/midcom/midgard.admin.asgard/handler/components.php

    r14482 r14487  
    206206        midgard_admin_asgard_plugin::get_common_toolbar($data); 
    207207 
     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        ); 
    208217 
    209218        // Set the breadcrumb data 
  • trunk/midcom/midgard.admin.asgard/style/midgard_admin_asgard_trash_type.php

    r14472 r14487  
    3838        $disabled = ' disabled="disabled"'; 
    3939    } 
    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    } 
    4153    echo "{$prefix}    <td class=\"checkbox\"><input type=\"checkbox\" name=\"undelete[]\"{$disabled} value=\"{$object->guid}\" id=\"{$object->guid}\" /></td>\n"; 
    4254    //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";