restyling

This commit is contained in:
daniel 2023-02-23 12:34:41 +01:00
parent e672ba141b
commit 598a1b1456
3 changed files with 47 additions and 9 deletions

View File

@ -6734,11 +6734,27 @@ function html_print_menu_button(array $options, bool $return=false)
}
function html_print_label_input_block(?string $label, $calbackFn):string
{
$output = '<div>';
function html_print_label_input_block(
?string $label,
$calbackFn,
?array $options=[]
):string {
$div_class = '';
$label_class = '';
if (empty($options) === false) {
if (isset($options['div_class']) === true) {
$div_class = $options['div_class'];
}
if (isset($options['label_class']) === true) {
$label_class = $options['label_class'];
}
}
$output = '<div class="'.$div_class.'">';
if ($label !== null) {
$output .= '<label>'.$label.'</label>';
$output .= '<label class="'.$label_class.'">'.$label.'</label>';
}
$output .= $calbackFn;

View File

@ -521,9 +521,15 @@ a.pandora_pagination.current:hover {
margin: 0 1em;
}
/*
table.filter-table-adv {
max-width: 1024px;
}
*/
table.filter-table-adv td {
vertical-align: top;
}
table.filter-table-adv td > div {
display: flex;
@ -540,6 +546,18 @@ table.filter-table-adv td > div label {
margin-bottom: 10px;
}
table.filter-table-adv td > div.add-input-reverse {
flex-direction: row-reverse;
justify-content: flex-end;
align-items: center;
margin-top: 5px;
}
table.filter-table-adv td > div .label-thin {
color: #3f3f3f;
font-weight: 400;
}
/*
padding-right: calc(100% - 1024px);
*/

View File

@ -257,17 +257,21 @@ $table->data['group'][0] = html_print_label_input_block(
)
);
$table->data['group'][1] = html_print_label_input_block(
$table->data['group'][0] .= html_print_label_input_block(
__('Recursion'),
html_print_checkbox_switch(
'recursion',
1,
$recursion,
true
)
),
[
'div_class' => 'add-input-reverse',
'label_class' => 'label-thin',
]
);
$table->data['group'][2] = html_print_label_input_block(
$table->data['group'][1] = html_print_label_input_block(
__('Status'),
html_print_select(
$fields,
@ -314,12 +318,12 @@ $searchForm .= html_print_div(
[
'class' => 'action-buttons',
'content' => html_print_submit_button(
__('Search'),
__('Filter'),
'srcbutton',
false,
[
'icon' => 'search',
'mode' => 'secondary mini',
'mode' => 'mini',
],
true
),