Merge branch 'ent-9662-Restyling-fuentes-colores-botones' of brutus.artica.es:artica/pandorafms into ent-9662-Restyling-fuentes-colores-botones

This commit is contained in:
Jose Gonzalez 2023-03-02 17:25:00 +01:00
commit 18076d27cc
6 changed files with 160 additions and 55 deletions

View File

@ -3657,7 +3657,7 @@ class NetworkMap
$output .= '" charset="utf-8"></script>'; $output .= '" charset="utf-8"></script>';
$output .= '<div id="simple_map" data-id="'.$this->idMap.'" '; $output .= '<div id="simple_map" data-id="'.$this->idMap.'" ';
$output .= 'class="border_1px_dd" style="'; $output .= 'class="border_1px_dd" style="background-color: #fff; ';
if ($this->fullSize) { if ($this->fullSize) {
$output .= ' width:100%'; $output .= ' width:100%';

View File

@ -2476,7 +2476,8 @@ function html_print_input_text_extended(
$password=false, $password=false,
$function='', $function='',
$autocomplete='off', $autocomplete='off',
$disabled=false $disabled=false,
$hide_div_eye=false,
) { ) {
global $config; global $config;
static $idcounter = 0; static $idcounter = 0;
@ -2551,7 +2552,7 @@ function html_print_input_text_extended(
} }
// Only for password inputs. // Only for password inputs.
if (($attribute === 'class') && ($password === true)) { if (($attribute === 'class') && ($password === true) && ($hide_div_eye === false)) {
$attr_value .= ' show-hide-pass-background'; $attr_value .= ' show-hide-pass-background';
$hasClass = true; $hasClass = true;
} }
@ -2563,7 +2564,7 @@ function html_print_input_text_extended(
$attributes = []; $attributes = [];
} }
if (($hasClass === false) && ($password === true)) { if (($hasClass === false) && ($password === true) && ($hide_div_eye === false)) {
$output .= 'class="show-hide-pass-background" '; $output .= 'class="show-hide-pass-background" ';
} }
@ -2615,7 +2616,7 @@ function html_print_input_text_extended(
$output .= $function.'/>'; $output .= $function.'/>';
if ($password === true) { if ($password === true && $hide_div_eye === false) {
$output .= html_print_div( $output .= html_print_div(
[ [
'id' => 'show-hide-'.$id, 'id' => 'show-hide-'.$id,
@ -2800,7 +2801,8 @@ function html_print_input_password(
$disabled=false, $disabled=false,
$required=false, $required=false,
$class='', $class='',
$autocomplete='off' $autocomplete='off',
$hide_div_eye=false,
) { ) {
if ($maxlength == 0) { if ($maxlength == 0) {
$maxlength = 255; $maxlength = 255;
@ -2831,7 +2833,7 @@ function html_print_input_password(
} }
} }
return '<div class="relative container-div-input-password">'.html_print_input_text_extended($name, $value, 'password-'.$name, $alt, $size, $maxlength, $disabled, '', $attr, $return, true, '', $autocomplete).'</div>'; return '<div class="relative container-div-input-password">'.html_print_input_text_extended($name, $value, 'password-'.$name, $alt, $size, $maxlength, $disabled, '', $attr, $return, true, '', $autocomplete, false, $hide_div_eye).'</div>';
} }

View File

@ -312,15 +312,17 @@ table pre {
white-space: pre-wrap; white-space: pre-wrap;
} }
tr:first-child > th { /* tr:first-child > th {
background-color: #373737; background-color: #373737;
} } */
th { th {
color: #fff; /* color: #fff; */
background-color: #666; /* background-color: #666; */
color: #000;
font-size: 7.5pt; font-size: 7.5pt;
letter-spacing: 0.3pt; letter-spacing: 0.3pt;
border-bottom: 1px solid #e2e2e2;
} }
pre .color_333 { pre .color_333 {
@ -2021,8 +2023,11 @@ table.databox {
.databox > tbody > tr > th, .databox > tbody > tr > th,
.databox > thead > tr > th a { .databox > thead > tr > th a {
padding: 9px 7px; padding: 9px 7px;
font-weight: normal; /* font-weight: normal; */
color: #fff; font-weight: bold;
font-size: 9pt;
line-height: 16pt;
/* color: #fff; */
text-align: center; text-align: center;
} }
@ -10004,6 +10009,10 @@ select:disabled,
color: #8a96a6; color: #8a96a6;
} }
/* input[type="password"] {
background-color: #f6f7fb;
} */
input:not([type="image"]):focus, input:not([type="image"]):focus,
textarea:focus, textarea:focus,
select:focus { select:focus {

View File

@ -735,6 +735,12 @@ tr.datos2 > td.datos2 > div > div > label {
margin-bottom: 10px; margin-bottom: 10px;
} }
.label-ipam-calculator {
font-size: 13px;
line-height: 20px;
font-weight: bold;
}
#text-vrf_name { #text-vrf_name {
width: 100%; width: 100%;
} }
@ -758,3 +764,29 @@ table.filter-table-adv td div.inline-radio-button input[type="radio"] {
padding-left: 12px; padding-left: 12px;
margin-right: 10px; margin-right: 10px;
} }
.select2-w100p > span.select2 {
width: 100% !important;
}
form#create_site > ul {
display: flex;
flex-wrap: wrap;
}
.select-ips-ipam > select {
min-height: 19.8em !important;
}
div.margin-top-50p {
margin-top: 50% !important;
}
.line-height-normal {
line-height: normal;
}
div[id^="auto-os-"] > img {
width: 20px;
height: 20px;
}

View File

@ -195,3 +195,18 @@ ul.wizard li.mrgn_0px {
ul.wizard li.pdd_0px { ul.wizard li.pdd_0px {
padding: 0; padding: 0;
} }
li#textarea-create-site > textarea {
width: 100%;
}
form#create_site > ul.wizard > li > label {
font-size: 13px;
line-height: 16px;
font-weight: bold;
margin-bottom: 10px;
}
select[multiple] {
min-height: 20em;
}

View File

@ -312,31 +312,43 @@ if ($view_graph) {
} }
$period_label = human_time_description_raw($period); $period_label = human_time_description_raw($period);
echo '<form method="POST" action="index.php?sec=reporting&sec2=operation/reporting/graph_viewer&view_graph=1&id=$id_graph">'; $searchForm = '<form method="POST" action="index.php?sec=reporting&sec2=operation/reporting/graph_viewer&view_graph=1&id='.$id_graph.'">';
echo "<table class='databox filters w100p' cellpadding='4' cellspacing='4'>"; $searchForm .= "<table class='filter-table-adv w100p' cellpadding='4' cellspacing='4'>";
echo '<tr>'; $searchForm .= '<tr>';
echo '<td>'; $searchForm .= '<td class="w30p">';
echo '<b>'.__('Date').'</b>'; $searchForm .= html_print_label_input_block(
echo '</td>'; __('Date'),
html_print_input_text(
echo '<td>'; 'date',
echo html_print_input_text('date', $date, '', 12, 10, true).' '; $date,
echo '</td>'; '',
'',
echo '<td>'; 10,
echo html_print_input_text('time', $time, '', 7, 7, true).' '; true
echo '</td>'; )
);
echo "<td class='datos'>"; $searchForm .= '</td><td class="datos w30p">';
echo '<b>'.__('Time range').'</b>'; $searchForm .= html_print_label_input_block(
echo '</td>'; __('Time'),
html_print_input_text(
echo "<td class='datos'>"; 'time',
echo html_print_extended_select_for_time('period', $period, '', '', '0', 10, true); $time,
echo '</td>'; '',
'',
echo "<td class='datos'>"; 7,
true
)
);
$searchForm .= '</td>';
$searchForm .= "<td class='datos w30p'>";
$searchForm .= html_print_label_input_block(
__('Time range'),
html_print_extended_select_for_time('period', $period, '', '', '0', 10, true, 'width:100%')
);
$searchForm .= '</td>';
$searchForm .= '</tr><tr>';
$searchForm .= "<td class='datos w30p'>";
$stackeds = []; $stackeds = [];
$stackeds[0] = __('Graph defined'); $stackeds[0] = __('Graph defined');
$stackeds[CUSTOM_GRAPH_AREA] = __('Area'); $stackeds[CUSTOM_GRAPH_AREA] = __('Area');
@ -348,32 +360,67 @@ if ($view_graph) {
$stackeds[CUSTOM_GRAPH_HBARS] = __('Horizontal Bars'); $stackeds[CUSTOM_GRAPH_HBARS] = __('Horizontal Bars');
$stackeds[CUSTOM_GRAPH_VBARS] = __('Vertical Bars'); $stackeds[CUSTOM_GRAPH_VBARS] = __('Vertical Bars');
$stackeds[CUSTOM_GRAPH_PIE] = __('Pie'); $stackeds[CUSTOM_GRAPH_PIE] = __('Pie');
html_print_select($stackeds, 'stacked', $stacked, '', '', -1, false, false); $searchForm .= html_print_label_input_block(__('Type'), html_print_select($stackeds, 'stacked', $stacked, '', '', -1, true, false, true, '', false, 'width:100%'));
echo '</td>'; $searchForm .= '</td>';
$searchForm .= "<td class='datos w30p'>";
$searchForm .= html_print_label_input_block(
__('Equalize maxiddmum thresholds').ui_print_help_tip(
__('If an option is selected, all graphs will have the highest value from all modules included in the graph as a maximum threshold'),
true
),
html_print_checkbox(
'threshold',
CUSTOM_GRAPH_BULLET_CHART_THRESHOLD,
$check,
true,
false,
'',
false
)
);
$searchForm .= '</div>';
$searchForm .= '</td>';
echo "<td class='datos'>"; $searchForm .= "<td class='datos w30p'>";
echo "<div class='float-left' id='thresholdDiv' name='thresholdDiv'>&nbsp;&nbsp;<b>".__('Equalize maxiddmum thresholds').'</b>'.ui_print_help_tip(__('If an option is selected, all graphs will have the highest value from all modules included in the graph as a maximum threshold'), true);
html_print_checkbox('threshold', CUSTOM_GRAPH_BULLET_CHART_THRESHOLD, $check, false, false, '', false);
echo '</div>';
echo '</td>';
echo "<td class='datos'>";
$zooms = []; $zooms = [];
$zooms[0] = __('Graph defined'); $zooms[0] = __('Graph defined');
$zooms[1] = __('Zoom x1'); $zooms[1] = __('Zoom x1');
$zooms[2] = __('Zoom x2'); $zooms[2] = __('Zoom x2');
$zooms[3] = __('Zoom x3'); $zooms[3] = __('Zoom x3');
html_print_select($zooms, 'zoom', $zoom, '', '', 0); $searchForm .= html_print_label_input_block(__('Zoom'), html_print_select($zooms, 'zoom', $zoom, '', '', 0, true, false, true, '', false, 'width:100%'));
echo '</td>'; $searchForm .= '</td>';
echo "<td class='datos'>"; $searchForm .= '</tr>';
echo "<input id='submit-refresh' type=submit value='".__('Refresh')."' class='sub upd'>"; $searchForm .= '</table>';
echo '</td>'; $searchForm .= html_print_div(
[
'class' => 'action-buttons',
'content' => html_print_submit_button(
__('Filter'),
'submit-refresh',
false,
[
'mode' => 'mini',
'icon' => 'search',
],
true
),
],
true
);
$searchForm .= '</form>';
echo '</tr>'; ui_toggle(
echo '</table>'; $searchForm,
echo '</form>'; '<span class="subsection_header_title">'.__('Filters').'</span>',
'filter_form',
'',
true,
false,
'',
'white-box-content',
'box-flat white_table_graph fixed_filter_bar'
);
if ($graph_return) { if ($graph_return) {
echo "<table id='graph-container' class='databox filters' cellpadding='0' cellspacing='0' style='height:100%;width:100%;overflow:hidden;'>"; echo "<table id='graph-container' class='databox filters' cellpadding='0' cellspacing='0' style='height:100%;width:100%;overflow:hidden;'>";