mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 03:05:26 +02:00
Minor adjustments to ProcessPageLister and InputfieldSelector
This commit is contained in:
@@ -113,10 +113,14 @@
|
||||
}
|
||||
|
||||
.InputfieldSelector .selector-row .opval input.input-or {
|
||||
width: 1.5%;
|
||||
margin-left: 0.5%;
|
||||
display: none;
|
||||
}
|
||||
body.AdminThemeDefault .InputfieldSelector .selector-row .opval input.input-or,
|
||||
body.AdminThemeReno .InputfieldSelector .selector-row .opval input.input-or {
|
||||
width: 1.5%;
|
||||
}
|
||||
|
||||
.InputfieldSelector .selector-row.has-or-value .opval input.input-or,
|
||||
.InputfieldSelector .selector-row.has-or-field .opval input.input-or {
|
||||
display: block;
|
||||
|
@@ -636,7 +636,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
||||
}
|
||||
}
|
||||
|
||||
$f->addOption('-', '———');
|
||||
$f->addOption('-', '———', array('disabled' => 'disabled'));
|
||||
|
||||
// custom fields (sort)
|
||||
foreach($fields as $field) {
|
||||
@@ -662,17 +662,19 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
||||
$_field = $template->fieldgroup->getField($field->name, true); // context
|
||||
if($_field) $field = $_field;
|
||||
}
|
||||
|
||||
if($useLabels) {
|
||||
$label = $field->getLabel();
|
||||
$desc = $field->name;
|
||||
$f->addOption($field->name, $field->getLabel(), array('data-desc' => $field->name));
|
||||
} else {
|
||||
$label = $field->name;
|
||||
$desc = $field->getLabel();
|
||||
}
|
||||
|
||||
$attr = array('data-desc' => $desc);
|
||||
$icon = $field->getIcon(true);
|
||||
if($icon) $attr['data-handle'] = wireIconMarkup($icon, 'fw');
|
||||
|
||||
$f->addOption($field->name, $label, $attr);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user