init
This commit is contained in:
17
custom/modules/Contacts/Ext/Layoutdefs/layoutdefs.ext.php
Normal file
17
custom/modules/Contacts/Ext/Layoutdefs/layoutdefs.ext.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
//WARNING: The contents of this file are auto-generated
|
||||
|
||||
|
||||
$layout_defs['Contacts']['subpanel_setup']['ecmquotes'] = array(
|
||||
'order' => 29,
|
||||
'module' => 'EcmQuotes',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'ecmquotes',
|
||||
'add_subpanel_data' => 'ecmquote_id',
|
||||
'title_key' => 'LBL_ECMQUOTES_SUBPANEL_TITLE',
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
17
custom/modules/Contacts/Ext/Vardefs/vardefs.ext.php
Normal file
17
custom/modules/Contacts/Ext/Vardefs/vardefs.ext.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
//WARNING: The contents of this file are auto-generated
|
||||
|
||||
|
||||
$dictionary['Contact']['fields']['ecmquotes'] = array (
|
||||
'name' => 'ecmquotes',
|
||||
'type' => 'link',
|
||||
'relationship' => 'ecmquotes_contact',
|
||||
'source' =>'non-db',
|
||||
);
|
||||
$dictionary['Contact']['relationships']['ecmquotes_contact'] = array (
|
||||
'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmQuotes', 'rhs_table' => 'ecmquotes', 'rhs_key' => 'contact_id',
|
||||
'relationship_type' => 'one-to-many'
|
||||
);
|
||||
|
||||
?>
|
||||
72
custom/modules/Contacts/metadata/subpanels/LeadForLeads.php
Normal file
72
custom/modules/Contacts/metadata/subpanels/LeadForLeads.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'Contacts'),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
|
||||
|
||||
'list_fields' => array(
|
||||
'first_name'=>array(
|
||||
'name'=>'first_name',
|
||||
'usage' => 'query_only',
|
||||
),
|
||||
'last_name'=>array(
|
||||
'name'=>'last_name',
|
||||
'usage' => 'query_only',
|
||||
),
|
||||
'name'=>array(
|
||||
'name'=>'name',
|
||||
'vname' => 'LBL_LIST_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'module' => 'Contacts',
|
||||
'width' => '43%',
|
||||
),
|
||||
'title'=>array(
|
||||
'name'=>'title',
|
||||
'vname' => 'LBL_LIST_TITLE',
|
||||
//'widget_class' => 'SubPanelDetailViewLink',
|
||||
//'module' => 'Contacts',
|
||||
'width' => '10%',
|
||||
),
|
||||
'primary_address_city'=>array(
|
||||
'name'=>'primary_address_city',
|
||||
'vname' => 'LBL_LIST_CITY',
|
||||
'width' => '20%',
|
||||
),
|
||||
'primary_address_state'=>array(
|
||||
'name'=>'primary_address_state',
|
||||
'vname' => 'LBL_LIST_STATE',
|
||||
'width' => '10%',
|
||||
),
|
||||
'email1'=>array(
|
||||
'name'=>'email1',
|
||||
'vname' => 'LBL_LIST_EMAIL',
|
||||
'widget_class' => 'SubPanelEmailLink',
|
||||
'width' => '30%',
|
||||
'sortable' => false,
|
||||
),
|
||||
'phone_work'=>array (
|
||||
'name'=>'phone_work',
|
||||
'vname' => 'LBL_LIST_PHONE',
|
||||
'width' => '15%',
|
||||
),
|
||||
'edit_button'=>array(
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => 'Contacts',
|
||||
'width' => '5%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => 'Contacts',
|
||||
'width' => '5%',
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user