<?php
$viewdefs ['Calls'] =
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'includes' =>
array (
0 =>
array (
'file' => 'modules/Reminders/Reminders.js',
),
1 =>
array (
'file' => 'modules/Calls/script.php',
),
),
'maxColumns' => '2',
'form' =>
array (
'hidden' =>
array (
0 => '',
1 => '',
2 => '',
3 => '',
4 => '',
),
'buttons' =>
array (
0 =>
array (
'customCode' => '',
),
1 => 'CANCEL',
2 =>
array (
'customCode' => '',
),
3 =>
array (
'customCode' => '{if $fields.status.value != "Held"}{/if}',
),
),
),
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
'javascript' => '{sugar_getscript file="cache/include/javascript/sugar_grp_jsolait.js"}',
'useTabs' => false,
'tabDefs' =>
array (
'DEFAULT' =>
array (
'newTab' => false,
'panelDefault' => 'expanded',
),
),
),
'panels' =>
array (
'default' =>
array (
0 =>
array (
0 =>
array (
'name' => 'name',
'displayParams' =>
array (
'required' => true,
),
),
1 =>
array (
'name' => 'status',
'displayParams' =>
array (
'required' => true,
),
'fields' =>
array (
0 =>
array (
'name' => 'direction',
),
1 =>
array (
'name' => 'status',
),
),
),
),
1 =>
array (
0 =>
array (
'name' => 'date_start',
'type' => 'datetimecombo',
'displayParams' =>
array (
'required' => true,
'updateCallback' => 'SugarWidgetScheduler.update_time();',
),
'label' => 'LBL_DATE_TIME',
),
1 =>
array (
'name' => 'parent_name',
'label' => 'LBL_LIST_RELATED_TO',
),
),
2 =>
array (
0 =>
array (
'name' => 'duration_hours',
'label' => 'LBL_DURATION',
'customCode' => '{literal}{/literal}{$fields.duration_minutes.value}
{$MOD.LBL_HOURS_MINUTES}',
'displayParams' =>
array (
'required' => true,
),
),
1 =>
array (
'name' => 'call_medium_c',
'studio' => 'visible',
'label' => 'LBL_CALL_MEDIUM',
),
),
3 =>
array (
0 =>
array (
'name' => 'reminders',
'customCode' => '{include file="modules/Reminders/tpls/reminders.tpl"}',
'label' => 'LBL_REMINDERS',
),
),
),
),
),
);
?>
quickcreatedefs.php file code