feat: implement admin modules for RT log, document revisions, ferrit logs, and NCR creator, and add centralized common settings page
This commit is contained in:
@@ -12,30 +12,17 @@ var options = e.editorOptions;
|
||||
if (e.parentType == 'dataRow' && e.editorName == 'dxTextBox') {
|
||||
|
||||
|
||||
if(e.dataField.indexOf("_result") !== -1) {
|
||||
e.editorName = 'dxSelectBox';
|
||||
e.editorOptions.dataSource = <?php echo json_encode_tr(
|
||||
db("results")
|
||||
->get()
|
||||
->pluck("title")
|
||||
->toArray()
|
||||
) ?>;
|
||||
|
||||
} else {
|
||||
options.onValueChanged = function(selectData) {
|
||||
<?php $except = [
|
||||
'languages',
|
||||
'subcontractor',
|
||||
'work-permit-personel-list',
|
||||
]; ?>
|
||||
options.onValueChanged = function(selectData) {
|
||||
<?php $except = [
|
||||
'languages',
|
||||
]; ?>
|
||||
|
||||
@if(!in_array($id, $except))
|
||||
e.setValue(selectData.value.trim().toUpperCase());
|
||||
@else
|
||||
e.setValue(selectData.value.trim());
|
||||
@endif
|
||||
};
|
||||
}
|
||||
@if(!in_array($id, $except))
|
||||
e.setValue(selectData.value.trim().toUpperCase());
|
||||
@else
|
||||
e.setValue(selectData.value.trim());
|
||||
@endif
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user