Add combo on ldap selection
This commit is contained in:
parent
999ac8eccd
commit
7030d0d596
@ -369,7 +369,7 @@ if (empty($reshook)) {
|
||||
|
||||
$object->default_range = GETPOST('default_range');
|
||||
$object->default_c_exp_tax_cat = GETPOST('default_c_exp_tax_cat');
|
||||
|
||||
|
||||
if (! empty($conf->multicompany->enabled))
|
||||
{
|
||||
if (! empty($_POST["superadmin"]))
|
||||
@ -718,6 +718,7 @@ if ($action == 'create' || $action == 'adduserldap')
|
||||
if (is_array($liste) && count($liste))
|
||||
{
|
||||
print $form->selectarray('users', $liste, '', 1);
|
||||
print ajax_combobox('users');
|
||||
}
|
||||
print '</td><td align="center">';
|
||||
print '<input type="submit" class="button" value="'.dol_escape_htmltag($langs->trans('Get')).'"'.(count($liste)?'':' disabled').'>';
|
||||
@ -1111,7 +1112,7 @@ if ($action == 'create' || $action == 'adduserldap')
|
||||
null, '90%' );
|
||||
print "</td></tr>";
|
||||
}
|
||||
|
||||
|
||||
if (!empty($conf->global->MAIN_USE_EXPENSE_IK))
|
||||
{
|
||||
print '<tr><td>'.$langs->trans("DefaultCategoryCar").'</td>';
|
||||
@ -1125,7 +1126,7 @@ if ($action == 'create' || $action == 'adduserldap')
|
||||
print $form->selectarray('default_range', range(0, $maxRangeNum), $object->default_range);
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
|
||||
// Other attributes
|
||||
$parameters=array('objectsrc' => $objectsrc, 'colspan' => ' colspan="3"');
|
||||
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||
@ -1143,7 +1144,7 @@ if ($action == 'create' || $action == 'adduserldap')
|
||||
$doleditor=new DolEditor('note','','',120,'dolibarr_notes','',false,true,$conf->global->FCKEDITOR_ENABLE_SOCIETE,ROWS_3,'90%');
|
||||
$doleditor->Create();
|
||||
print "</td></tr>\n";
|
||||
|
||||
|
||||
// Signature
|
||||
print '<tr><td class="tdtop">'.$langs->trans("Signature").'</td>';
|
||||
print '<td>';
|
||||
@ -1527,7 +1528,7 @@ else
|
||||
print $object->default_range;
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
|
||||
// Other attributes
|
||||
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_view.tpl.php';
|
||||
|
||||
@ -2428,14 +2429,14 @@ else
|
||||
print '<td>';
|
||||
print $form->selectExpenseCategories($object->default_c_exp_tax_cat, 'default_c_exp_tax_cat', 1);
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
print '<tr><td>'.$langs->trans("DefaultRangeNumber").'</td>';
|
||||
print '<td>';
|
||||
$maxRangeNum = ExpenseReportIk::getMaxRangeNumber($object->default_c_exp_tax_cat);
|
||||
print $form->selectarray('default_range', range(0, $maxRangeNum), $object->default_range);
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
|
||||
// Other attributes
|
||||
$parameters=array('colspan' => ' colspan="2"');
|
||||
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||
|
||||
Loading…
Reference in New Issue
Block a user