Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save proofek/5812148 to your computer and use it in GitHub Desktop.
Save proofek/5812148 to your computer and use it in GitHub Desktop.
Supplier Contact Details subpanel definition
<?php
<?php
// created: 2013-06-19 07:45:46
$subpanel_layout['list_fields'] = array (
'demo_suppliers_name' =>
array (
'type' => 'relate',
'link' => true,
'vname' => 'LBL_SUPPLIER_NAME',
'id' => 'DEMO_SUPPLIERS_ID',
'width' => '10%',
'default' => true,
'widget_class' => 'SubPanelDetailViewLink',
'target_module' => 'Demo_Suppliers',
'target_record_key' => 'demo_suppliers_id',
),
'contact_type' =>
array (
'type' => 'enum',
'studio' => 'visible',
'vname' => 'LBL_CONTACT_TYPE',
'width' => '10%',
'default' => true,
),
'value' =>
array (
'type' => 'varchar',
'vname' => 'LBL_VALUE',
'width' => '10%',
'default' => true,
),
'date_modified' =>
array (
'type' => 'datetime',
'vname' => 'LBL_DATE_MODIFIED',
'width' => '10%',
'default' => true,
),
'edit_button' => array (
'widget_class' => 'SubPanelEditButton',
'module' => 'Demo_SupplierContactDetails',
'width' => '4%',
'default' => true,
),
'remove_button' => array (
'widget_class' => 'SubPanelRemoveButton',
'module' => 'Demo_SupplierContactDetails',
'width' => '5%',
'default' => true,
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment