Files
crm.e5.pl/modules/EcmWorkCards/metadata/editviewdefs.php
2024-04-27 09:23:34 +02:00

124 lines
3.9 KiB
PHP

<?php
$viewdefs ['EcmWorkCards'] ['EditView'] = array (
'templateMeta' => array (
'form' => array (
'enctype' => 'multipart/form-data',
'hidden' => array (
'<input type="hidden" name="isSaveAndNew" value="false">',
'<input type="hidden" id="create_new" name="create_new" value="0">'
),
'buttons' => array (
'SAVE',
'CANCEL',
array (
'customCode' => '<input tabindex="209" title="Zapisz [Alt+S]" accesskey="S" class="button primary" id="save_and_next" onclick="this.form.action.value=\'Save\';$(\'#create_new\').val(1);return check_form(\'EditView\');" name="button" value="Zapisz i dodaj nowy" type="submit">'
)
)
),
'maxColumns' => '2',
'widths' => array (
array (
'label' => '10',
'field' => '30'
),
array (
'label' => '10',
'field' => '30'
)
),
'javascript' => '
<link class="theme" rel="stylesheet" href="include/jQuery/jquery-timepicker/jquery.timepicker.css">
<script type="text/javascript" src="include/jQuery/jquery-timepicker/jquery.timepicker.min.js"></script>
<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}"></script>
<script type="text/javascript" src="modules/EcmWorkCards/js/EditViewDocumentReady6.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>',
'includes' => array (
array (
'file' => 'include/JSON.js'
)
)
),
'panels' => array (
'LBL_ITEMS_TAB' => array (
array (
array (
'type' => 'tab',
'active' => true
)
),
array (
array (
'name' => 'worker_name',
'label' => 'LBL_WORKER_NAME',
'displayParams' => array (
'size' => 50
)
)
),
array (
array (
'name' => 'date',
'label' => 'LBL_DATE',
'tabIndex' => '102'
)
),
array (
array (
'name' => 'product_name',
'customCode' => '<input size="50" id="product_name" type="txt" name="product_name" value="{$fields.product_name.value}"><input type="hidden" id="product_id" name="product_id" value="{$fields.product_id.value}">'
)
),
array (
array (
'name' => 'action_name',
'customCode' => '<input size="50" id="action_name" type="txt" name="action_name" value="{$fields.action_name.value}"><input type="hidden" id="action_id" name="action_id" value="{$fields.action_id.value}">'
)
),
array (
array (
'name' => 'time_from',
'label' => "Czas od do",
'customCode' => '<input type="text" tabindex="105" id="time_from" name="time_from" value="{$fields.time_from.value}"> - <input tabindex="106" type="text" id="time_to" name="time_to" value="{$fields.time_to.value}">'
)
),
array (
array (
'name' => 'quantity',
'label' => 'Ilość',
'customCode' => '<input type="text" onchange="$(this).val(FormatNumber($(this).val()));" onclick="$(this).select();" tabindex="107" id="quantity" name="quantity" value="{$fields.quantity.value|number_format:2:",":"."}">'
)
),
array (
array (
'label' => 'LBL_DESCRIPTION',
'name' => 'description',
'displayParams' => array (
'rows' => 2,
'cols' => 60
)
)
)
)
/*
* 'LBL_ACTIONS' => array (
* array (
* array (
* 'type' => 'tab'
* )
* ),
* array (
* array (
* 'allCols' => true,
* 'hideLabel' => true,
* 'customCode' => "{include file='modules/EcmWorkCards/tpl/EditViewTableEcmActions.tpl'}"
* )
* )
* )
*/
)
);
?>