Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save proofek/5812148 to your computer and use it in GitHub Desktop.

Select an option

Save proofek/5812148 to your computer and use it in GitHub Desktop.

Revisions

  1. proofek revised this gist Jun 19, 2013. 1 changed file with 49 additions and 35 deletions.
    84 changes: 49 additions & 35 deletions Demo_Suppliers_subpanel_demo_suppliercontactdetails.php
    Original file line number Diff line number Diff line change
    @@ -1,38 +1,52 @@
    <?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,
    ),
    );
    '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,
    ),
    );
  2. proofek created this gist Jun 19, 2013.
    38 changes: 38 additions & 0 deletions Demo_Suppliers_subpanel_demo_suppliercontactdetails.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    <?php

    $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,
    ),
    );