array( 'templateMeta' => array( 'form' => array( 'hidden' => array( '', ), 'buttons' => array( 'SAVE', 'CANCEL', array( 'customCode' => '{if $fields.status.value != "Completed"}{/if}', ), ), ), 'maxColumns' => '2', 'widths' => array( array( 'label' => '10', 'field' => '30', ), array( 'label' => '10', 'field' => '30', ), ), 'useTabs' => false, ), 'panels' => array( 'default' => array( array( array( 'name' => 'name', 'displayParams' => array( 'required' => true, ), ), array( 'name' => 'status', 'displayParams' => array( 'required' => true, ), ), ), array( array( 'name' => 'date_start', 'type' => 'datetimecombo', 'displayParams' => array( 'showNoneCheckbox' => true, 'showFormats' => true, ), ), array( 'name' => 'parent_name', 'label' => 'LBL_LIST_RELATED_TO', ), ), array( array( 'name' => 'date_due', 'type' => 'datetimecombo', 'displayParams' => array( 'showNoneCheckbox' => true, 'showFormats' => true, ), ), array( 'name' => 'contact_name', 'label' => 'LBL_CONTACT_NAME', ), ), array( array( 'name' => 'priority', 'displayParams' => array( 'required' => true, ), ), ), array( array( 'name' => 'assigned_user_name', 'label' => 'LBL_ASSIGNED_TO_NAME', ), ), array( array( 'name' => 'description', 'displayParams' => array( 'rows' => 8, 'cols' => 60, ), ), ), ), ), ), );