move record type further up in form

This commit is contained in:
Uwe Steinmann 2023-01-11 11:58:15 +01:00
parent f2381dca72
commit 69a70242b0

View File

@ -785,6 +785,22 @@ function typeahead() { /* {{{ */
)
);
}
if(!isset($facets['record_type'])) {
$options = array();
$options[] = array('document', getMLText('document'), $record_type && in_array('document', $record_type));
$options[] = array('folder', getMLText('folder'), $record_type && in_array('folder', $record_type));
$this->formField(
getMLText("record_type"),
array(
'element'=>'select',
'class'=>'chzn-select',
'name'=>'record_type[]',
'multiple'=>true,
'attributes'=>array(array('data-placeholder', getMLText('select_record_type'))),
'options'=>$options
)
);
}
if(!isset($facets['category'])) {
$tmpcatids = array();
foreach($categories as $tmpcat)
@ -832,22 +848,6 @@ function typeahead() { /* {{{ */
)
);
}
if(!isset($facets['record_type'])) {
$options = array();
$options[] = array('document', getMLText('document'), $record_type && in_array('document', $record_type));
$options[] = array('folder', getMLText('folder'), $record_type && in_array('folder', $record_type));
$this->formField(
getMLText("record_type"),
array(
'element'=>'select',
'class'=>'chzn-select',
'name'=>'record_type[]',
'multiple'=>true,
'attributes'=>array(array('data-placeholder', getMLText('select_record_type'))),
'options'=>$options
)
);
}
if($facets) {
foreach($facets as $facetname=>$values) {