footer_text) || $focus->footer_text == '') && (!isset($focus->name) || $focus->name == '') && (!isset($focus->id) || $focus->id == '')) $focus->footer_text = translate('LBL_DEFAULT_FOOTER_TEXT', 'EcmDocumentTemplates');
if((!isset($focus->header_text) || $focus->header_text == '') && (!isset($focus->name) || $focus->name == '') && (!isset($focus->id) || $focus->id == '')) $focus->header_text = translate('LBL_DEFAULT_HEADER_TEXT', 'EcmDocumentTemplates');
$viewdefs['EcmDocumentTemplates']['EditView'] = array (
'templateMeta' => array (
'form' => array (
'enctype'=>'multipart/form-data',
'buttons'=>array(
'SAVE',
'CANCEL',
),
),
'maxColumns' => '2',
'widths' => array (
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30'),
),
'includes' => array(
array('file'=>'include/JSON.js'),
array('file'=>'include/javascript/quicksearch.js'),
array('file'=>'modules/EcmDocumentTemplates/formloader.js'),
array('file'=>'modules/EcmDocumentTemplates/EcmDocumentTemplates.js'),
),
),
'panels' => array (
'LBL_INFORMATIONS'=> array(
array (
'name',
'assigned_user_name'
),
array (
'document_number_format_id',
'account_name'
),
array (
array(
'name' => 'change_all_old_records',
'tabIndex' => '1',
'customCode' => ''
),
array(
'name' => 'show_header_on_all_pages',
'tabIndex' => '1',
'customCode' => ''
),
//'document_number_letter'
),
array (
'documents_per',
array(
'name' => 'show_footer_on_all_pages',
'tabIndex' => '1',
'customCode' => ''
),
//'correct_number_letter'
),
array ('place_of_register', 'ecmlanguage'),
array (
'',
'account_number'
),
array (
'footer_account',
'footer_krs',
),
array (
'footer_address',
'footer_regon'
),
array (
'footer_phone',
'footer_capital'
),
array (
'footer_fax',
'footer_management'
),
array (
'footer_swift',
'footer_nip'
),
array (
'footer_bankname',
'footer_vatid'
),
),
'LBL_LOGO' => array(
array (
array(
'name' => 'logo_name',
'label' => 'LBL_LOGO_PATH',
'tabIndex' => 'l',
'customCode' => '
{$MOD.LBL_LOGO_INFO}',
),
array(
'label' => 'LBL_LOGO_PREVIEW',
'customCode' => '{if $fields.logo_id.value != ""}