wip styles

This commit is contained in:
fbsanchez 2019-05-27 18:03:56 +02:00
parent 556c07ad99
commit f0fb6d7fd9
5 changed files with 83 additions and 10 deletions

View File

@ -322,7 +322,21 @@ $table_primary_group .= '</span></div></div></div>';
$table_interval = '<div class="label_select"><p class="input_label">'.__('Interval').': </p>';
$table_interval .= '<div class="label_select_parent">';
$table_interval .= html_print_extended_select_for_time('intervalo', $intervalo, '', '', '0', 10, true);
$table_interval .= html_print_extended_select_for_time(
'intervalo',
$intervalo,
'',
'',
'0',
10,
true,
false,
true,
'w40p'
);
if ($intervalo < SECONDS_5MINUTES) {
$table_interval .= clippy_context_help('interval_agent_min');
}

View File

@ -783,13 +783,17 @@ class Wizard
/**
* Print a form.
*
* @param array $data Definition of target form to be printed.
* @param boolean $return Return as string or direct output.
* @param array $data Definition of target form to be printed.
* @param boolean $return Return as string or direct output.
* @param boolean $print_white_box Print a white box.
*
* @return string HTML code.
*/
public function printForm(array $data, bool $return=false, bool $print_white_box=false)
{
public function printForm(
array $data,
bool $return=false,
bool $print_white_box=false
) {
$form = $data['form'];
$inputs = $data['inputs'];
$js = $data['js'];

View File

@ -1079,7 +1079,7 @@ function html_print_extended_select_for_time(
'class' => $uniq_name.'_toggler '.$class,
'alt' => __('Custom'),
'title' => __('Custom'),
'style' => 'width: 18px;'.$style_icon,
'style' => 'width: 18px; margin-bottom: -5px;'.$style_icon,
],
false,
false,
@ -1114,7 +1114,7 @@ function html_print_extended_select_for_time(
'class' => $uniq_name.'_toggler',
'alt' => __('List'),
'title' => __('List'),
'style' => 'width: 18px;'.$style_icon,
'style' => 'width: 18px;margin-bottom: -5px;'.$style_icon,
]
).'</a>';
echo '</div>';

View File

@ -2795,7 +2795,31 @@ function ui_print_page_header(
$buffer = '<div id="'.$type2.'" style="">';
if (!empty($breadcrumbs)) {
$buffer .= '<div class="breadcrumbs_container">'.$breadcrumbs.'</div>';
if (is_array($breadcrumbs)) {
$bc = [];
$i = 0;
foreach ($breadcrumbs as $content) {
if ($content['selected'] == 1) {
$class = 'selected';
} else {
$class = '';
}
$bc[$i] = '';
$bc[$i] .= '<span><a class="breadcrumb_link '.$class.'" href="'.$content['link'].'">';
$bc[$i] .= $content['label'];
$bc[$i] .= '</a>';
$bc[$i] .= '</span>';
$i++;
}
$buffer .= implode(
'<span class="breadcrumb_link">&nbsp/&nbsp</span>',
$this->breadcrum
);
} else {
$buffer .= '<div class="breadcrumbs_container">'.$breadcrumbs.'</div>';
}
}
$buffer .= '<div id="menu_tab_left">';

View File

@ -431,6 +431,30 @@ select:-internal-list-box {
* - GLOBAL STYLES -
* ---------------------------------------------------------------------
*/
.w10p {
max-width: 10%;
}
.w20p {
max-width: 20%;
}
.w30p {
max-width: 30%;
}
.w40p {
max-width: 40%;
}
.w50p {
max-width: 50%;
}
.w100p {
max-width: 100%;
}
div#page {
background: #fbfbfb;
background-image: none;
@ -1436,8 +1460,8 @@ div#agent_wizard_subtabs {
#menu_tab_left li span {
color: #343434;
font-family: "lato-bolder", "Open Sans", sans-serif !important;
font-size: 20pt;
line-height: 20pt;
font-size: 18pt;
line-height: 18pt;
}
/*
@ -2862,6 +2886,7 @@ a.tip {
a.tip > img {
margin-left: 2px;
margin-right: 2px;
margin-bottom: -0.3em;
}
.head_tip {
@ -5544,6 +5569,10 @@ table.info_table.policy_sub_table {
flex-wrap: wrap;
}
.label_simple_items a.tip > img {
margin-bottom: 0px;
}
.label_simple_items > * {
margin-right: 5px;
}
@ -5553,6 +5582,8 @@ table.info_table.policy_sub_table {
font-weight: bold;
padding-right: 10px;
margin: 0px 0px 5px 0px;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
.input_label_simple {