I want to add the account city to the headerpane.hbs

I would like to add the account city address to the headerpanes.hbs

I know I have to copy the generic headerpanes.hbs to

C:\inetpub\wwwroot\Sugar\custom\modules\Accounts\clients\base\views\record

I have successfully changed the font size and color of the name

but can not figure out how to add the city next to the name in a smaller font.

This way if they have to do a duplicate merge they will have a hint to help them with the merge

Parents
  • Copy Accounts' record.php file 

    from: modules/Accounts/clients/base/views/record/record.php

    to: custom/modules/Accounts/clients/base/views/record/record.php

    and add city field in panel_header fields in record.php like this.

    0 => 
    array (
      'name' => 'panel_header',
      'label' => 'LBL_PANEL_HEADER',
      'header' => true,
      'fields' =>
      array (
        0 =>
        array (
          'name' => 'picture',
          'type' => 'avatar',
          'size' => 'large',
          'dismiss_label' => true,
          'readonly' => true,
        ),
        1 =>
        array (
          'name' => 'name',
          'events' =>
          array (
            'keyup' => 'update:account',
          ),
        ),
        //=================== Add field here =======================
        2 => array (
          'name' => 'billing_address_city',
        ),
        3 =>
        array (
          'name' => 'favorite',
          'label' => 'LBL_FAVORITE',
          'type' => 'favorite',
          'dismiss_label' => true,
        ),
        4 =>
        array (
          'name' => 'follow',
          'label' => 'LBL_FOLLOW',
          'type' => 'follow',
          'readonly' => true,
          'dismiss_label' => true,
        ),
      ),
    ),
Reply Children
No Data