|
@@ -104,6 +104,8 @@ if ($action == 'set') {
|
|
|
$resultCreat = $defaultValues->create($user);
|
|
|
if ($resultCreat < 0) {
|
|
|
setEventMessages($defaultValues->error, $defaultValues->errors, 'errors');
|
|
|
+ } else {
|
|
|
+ setEventMessages($langs->trans("RecordSaved"), null, 'mesgs');
|
|
|
}
|
|
|
} elseif ($action == 'specimen') { // For orders
|
|
|
$modele = GETPOST('module', 'alpha');
|
|
@@ -316,6 +318,16 @@ print '<td class="center"> </td>'."\n";
|
|
|
print '<td class="right">'.$langs->trans("Value").'</td>'."\n";
|
|
|
print '</tr>'."\n";
|
|
|
|
|
|
+// AGENDA_DEFAULT_VIEW
|
|
|
+print '<tr class="oddeven">'."\n";
|
|
|
+$htmltext = $langs->trans("ThisValueCanOverwrittenOnUserLevel", $langs->transnoentitiesnoconv("UserGUISetup"));
|
|
|
+print '<td>'.$form->textwithpicto($langs->trans("AGENDA_DEFAULT_VIEW"), $htmltext).'</td>'."\n";
|
|
|
+print '<td class="center"> </td>'."\n";
|
|
|
+print '<td class="right">'."\n";
|
|
|
+$tmplist = array(''=>' ', 'show_list'=>$langs->trans("ViewList"), 'show_month'=>$langs->trans("ViewCal"), 'show_week'=>$langs->trans("ViewWeek"), 'show_day'=>$langs->trans("ViewDay"), 'show_peruser'=>$langs->trans("ViewPerUser"));
|
|
|
+print $form->selectarray('AGENDA_DEFAULT_VIEW', $tmplist, $conf->global->AGENDA_DEFAULT_VIEW);
|
|
|
+print '</td></tr>'."\n";
|
|
|
+
|
|
|
// Manual or automatic
|
|
|
|
|
|
print '<tr class="oddeven">'."\n";
|
|
@@ -340,16 +352,6 @@ if (!empty($conf->global->AGENDA_USE_EVENT_TYPE)) {
|
|
|
print '</td></tr>'."\n";
|
|
|
}
|
|
|
|
|
|
-// AGENDA_DEFAULT_VIEW
|
|
|
-print '<tr class="oddeven">'."\n";
|
|
|
-$htmltext = $langs->trans("ThisValueCanOverwrittenOnUserLevel", $langs->transnoentitiesnoconv("UserGUISetup"));
|
|
|
-print '<td>'.$form->textwithpicto($langs->trans("AGENDA_DEFAULT_VIEW"), $htmltext).'</td>'."\n";
|
|
|
-print '<td class="center"> </td>'."\n";
|
|
|
-print '<td class="right">'."\n";
|
|
|
-$tmplist = array(''=>' ', 'show_list'=>$langs->trans("ViewList"), 'show_month'=>$langs->trans("ViewCal"), 'show_week'=>$langs->trans("ViewWeek"), 'show_day'=>$langs->trans("ViewDay"), 'show_peruser'=>$langs->trans("ViewPerUser"));
|
|
|
-print $form->selectarray('AGENDA_DEFAULT_VIEW', $tmplist, $conf->global->AGENDA_DEFAULT_VIEW);
|
|
|
-print '</td></tr>'."\n";
|
|
|
-
|
|
|
// AGENDA_EVENT_DEFAULT_STATUS
|
|
|
print '<tr class="oddeven">'."\n";
|
|
|
print '<td>'.$langs->trans("AGENDA_EVENT_DEFAULT_STATUS").'</td>'."\n";
|