Fix subDn form style

This commit is contained in:
Benjamin Renard 2020-08-06 13:20:49 +02:00
parent 634e2e18f5
commit 626e0d854c
4 changed files with 15 additions and 7 deletions

View file

@ -90,11 +90,10 @@ a img {
*/ */
#LSsession_topDn { #LSsession_topDn {
height: 1.5em; height: 1.5em;
width: 150px; width: 166px;
} }
#LSsession_topDn_form { #LSsession_topDn_form {
width: 150px;
margin: 5px; margin: 5px;
color: #fff; color: #fff;
} }

View file

@ -37,6 +37,12 @@
vertical-align: baseline; vertical-align: baseline;
} }
#LSsession_topDn_form {
margin: 0;
color: var(--dark-color);
font-weight: bold;
}
/* ---- Menu ---- */ /* ---- Menu ---- */
ul.menu { ul.menu {
padding: 0; padding: 0;
@ -255,7 +261,7 @@ tr.LSobject-list-bis, .LSform input[type=text], .LSform input[type=password], .L
background-color: var(--light-color); background-color: var(--light-color);
} }
.LSform select, select#LSview_search_predefinedFilter { #LSsession_topDn, .LSform select, select#LSview_search_predefinedFilter {
appearance: none; appearance: none;
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
@ -263,6 +269,9 @@ tr.LSobject-list-bis, .LSform input[type=text], .LSform input[type=password], .L
border: 1px solid var(--medium-color); border: 1px solid var(--medium-color);
} }
#LSsession_topDn {
background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 5px center/8px 10px;
}
/* ---- Dark ---- */ /* ---- Dark ---- */
li.LSform_layout_current, .LSform input[type=submit], input[type='submit'].LSview_search, ul.LSaccessRightsMatrixView_tabs li.LSaccessRightsMatrixView_active_tab { li.LSform_layout_current, .LSform input[type=submit], input[type='submit'].LSview_search, ul.LSaccessRightsMatrixView_tabs li.LSaccessRightsMatrixView_active_tab {

View file

@ -1563,8 +1563,8 @@ class LSsession {
$listTopDn = self :: getSubDnLdapServer(); $listTopDn = self :: getSubDnLdapServer();
if (is_array($listTopDn)) { if (is_array($listTopDn)) {
asort($listTopDn); asort($listTopDn);
LStemplate :: assign('label_level',self :: getSubDnLabel()); LStemplate :: assign('LSsession_subDn_level',self :: getSubDnLabel());
LStemplate :: assign('_refresh',_('Refresh')); LStemplate :: assign('LSsession_subDn_refresh',_('Refresh'));
$LSsession_topDn_index = array(); $LSsession_topDn_index = array();
$LSsession_topDn_name = array(); $LSsession_topDn_name = array();
foreach($listTopDn as $index => $name) { foreach($listTopDn as $index => $name) {

View file

@ -8,8 +8,8 @@
{if isset($LSsession_subDn) && $LSsession_subDn!=""} {if isset($LSsession_subDn) && $LSsession_subDn!=""}
<form action="" method='post' id='LSsession_topDn_form'> <form action="" method='post' id='LSsession_topDn_form'>
<label>{$label_level|escape:"htmlall"} <label>{$LSsession_subDn_level|escape:"htmlall"}
<a href="?LSsession_refresh"><img src='{img name='refresh'}' alt='{$_refresh|escape:"htmlall"}' title='{$_refresh|escape:"htmlall"}' /></a> <a href="?LSsession_refresh"><img src='{img name='refresh'}' alt='{$LSsession_subDn_refresh|escape:"htmlall"}' title='{$LSsession_subDn_refresh|escape:"htmlall"}' /></a>
<select name='LSsession_topDn' id='LSsession_topDn'> <select name='LSsession_topDn' id='LSsession_topDn'>
{html_options values=$LSsession_subDn_indexes output=$LSsession_subDn_names selected=$LSsession_subDn} {html_options values=$LSsession_subDn_indexes output=$LSsession_subDn_names selected=$LSsession_subDn}
</select> </select>