Improve samba config in LSexample

This commit is contained in:
Benjamin Renard 2020-09-09 20:20:03 +02:00
parent fd4bf4f38a
commit 1e6fa6fe8e
2 changed files with 17 additions and 15 deletions

View file

@ -827,10 +827,8 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'html_options' => array( 'html_options' => array(
'time' => True, 'time' => True,
'showTodayButton' => False, 'showTodayButton' => False,
'special_values' => array(
'0' => 'Never',
),
), ),
'no_value_label' => 'Never',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w'
), ),
@ -852,10 +850,8 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'html_options' => array( 'html_options' => array(
'time' => True, 'time' => True,
'showTodayButton' => False, 'showTodayButton' => False,
'special_values' => array(
'0' => 'Never',
),
), ),
'no_value_label' => 'Never',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w'
), ),
@ -882,7 +878,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
LS_SAMBA_INFINITY_TIME => 'Never', LS_SAMBA_INFINITY_TIME => 'Never',
), ),
), ),
'no_value_label' => 'Never', 'no_value_label' => 'Default (never)',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w'
), ),
@ -959,13 +955,13 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
LS_SAMBA_INFINITY_TIME => 'Never', LS_SAMBA_INFINITY_TIME => 'Never',
), ),
), ),
'no_value_label' => 'Never', 'no_value_label' => 'Default (never)',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w'
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 0 'modify' => 1
) )
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -987,7 +983,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
0 => 'Whenever', 0 => 'Whenever',
), ),
), ),
'no_value_label' => 'Whenever', 'no_value_label' => 'Default (whenever)',
'multiple' => true, 'multiple' => true,
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w'

View file

@ -42,6 +42,15 @@ $GLOBALS['LSlang'] = array (
"Company" => "Company" =>
"Société", "Société",
# LSobjects.LSpeople.attrs.sambaKickoffTime.no_value_label
# LSobjects.LSpeople.attrs.sambaPwdMustChange.no_value_label
"Default (never)" =>
"Par défaut (jamais)",
# LSobjects.LSpeople.attrs.sambaPwdCanChange.no_value_label
"Default (whenever)" =>
"Par défaut (n'importe quand)",
# LSobjects.LSpeople.attrs.description.label # LSobjects.LSpeople.attrs.description.label
# LSobjects.LSgroup.attrs.description.label # LSobjects.LSgroup.attrs.description.label
# LSobjects.LSsysaccount.attrs.description.label # LSobjects.LSsysaccount.attrs.description.label
@ -183,12 +192,10 @@ $GLOBALS['LSlang'] = array (
"Nb / page :" => "Nb / page :" =>
"Nb / page :", "Nb / page :",
# LSobjects.LSpeople.attrs.sambaLogonTime.html_options.special_values.0 # LSobjects.LSpeople.attrs.sambaLogonTime.no_value_label
# LSobjects.LSpeople.attrs.sambaLogoffTime.html_options.special_values.0 # LSobjects.LSpeople.attrs.sambaLogoffTime.no_value_label
# LSobjects.LSpeople.attrs.sambaKickoffTime.no_value_label
# LSobjects.LSpeople.attrs.sambaKickoffTime.html_options.special_values.2147483647 # LSobjects.LSpeople.attrs.sambaKickoffTime.html_options.special_values.2147483647
# LSobjects.LSpeople.attrs.sambaPwdLastSet.no_value_label # LSobjects.LSpeople.attrs.sambaPwdLastSet.no_value_label
# LSobjects.LSpeople.attrs.sambaPwdMustChange.no_value_label
# LSobjects.LSpeople.attrs.sambaPwdMustChange.html_options.special_values.2147483647 # LSobjects.LSpeople.attrs.sambaPwdMustChange.html_options.special_values.2147483647
# LSobjects.LSpeople.attrs.sambaPwdCanChange.html_options.special_values.2147483647 # LSobjects.LSpeople.attrs.sambaPwdCanChange.html_options.special_values.2147483647
"Never" => "Never" =>
@ -335,7 +342,6 @@ $GLOBALS['LSlang'] = array (
"Users" => "Users" =>
"Utilisateurs", "Utilisateurs",
# LSobjects.LSpeople.attrs.sambaPwdCanChange.no_value_label
# LSobjects.LSpeople.attrs.sambaPwdCanChange.html_options.special_values.0 # LSobjects.LSpeople.attrs.sambaPwdCanChange.html_options.special_values.0
"Whenever" => "Whenever" =>
"N'importe quand", "N'importe quand",