diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php
index b4bb54f3b1b..e84fb79c7e3 100644
--- a/htdocs/holiday/card.php
+++ b/htdocs/holiday/card.php
@@ -882,7 +882,7 @@ $object = new Holiday($db);
$listhalfday = array('morning'=>$langs->trans("Morning"), "afternoon"=>$langs->trans("Afternoon"));
-$title = $langs->trans('CPTitreMenu');
+$title = $langs->trans('Leave');
$help_url = 'EN:Module_Holiday';
llxHeader('', $title, $help_url);
@@ -1088,7 +1088,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
print '
';
print ''.$langs->trans("DescCP").' ';
print '';
- $doleditor = new DolEditor('description', GETPOST('description', 'restricthtml'), '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, '90%');
+ $doleditor = new DolEditor('description', GETPOST('description', 'restricthtml'), '', 80, 'dolibarr_notes', 'In', 0, false, empty($conf->fckeditor->enabled) ? false : $conf->fckeditor->enabled, ROWS_3, '90%');
print $doleditor->Create(1);
print ' ';
@@ -1158,7 +1158,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
setEventMessages($errors, null, 'errors');
}
- // On vérifie si l'utilisateur à le droit de lire cette demande
+ // check if the user has the right to read this request
if ($canread) {
$head = holiday_prepare_head($object);
@@ -1289,7 +1289,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
print '';
print ''.$langs->trans('DescCP').' ';
print '';
- $doleditor = new DolEditor('description', $object->description, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, '90%');
+ $doleditor = new DolEditor('description', $object->description, '', 80, 'dolibarr_notes', 'In', 0, false, empty($conf->fckeditor->enabled) ? false : $conf->fckeditor->enabled, ROWS_3, '90%');
print $doleditor->Create(1);
print ' ';
}
@@ -1433,11 +1433,9 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
if (($action == 'edit' && $object->statut == Holiday::STATUS_DRAFT) || ($action == 'editvalidator')) {
if ($action == 'edit' && $object->statut == Holiday::STATUS_DRAFT) {
- print '';
if ($cancreate && $object->statut == Holiday::STATUS_DRAFT) {
- print ' ';
+ print $form->buttonsSaveCancel();
}
- print '
';
}
print '';
@@ -1521,7 +1519,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
$action = 'presend';
}
- if ($action != 'presend') {
+ if ($action != 'presend' && $action != 'edit') {
print '';
print '
'; // ancre
diff --git a/htdocs/holiday/document.php b/htdocs/holiday/document.php
index 7dc086a113f..6986d75d630 100644
--- a/htdocs/holiday/document.php
+++ b/htdocs/holiday/document.php
@@ -137,8 +137,7 @@ include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
$form = new Form($db);
$listhalfday = array('morning'=>$langs->trans("Morning"), "afternoon"=>$langs->trans("Afternoon"));
-
-$title = $langs->trans('InterventionCard');
+$title = $langs->trans("Leave").' - '.$langs->trans("Files");
llxHeader('', $title);
@@ -347,12 +346,12 @@ if ($object->id) {
print dol_get_fiche_end();
-
-
- $modulepart = 'holiday';
$permissiontoadd = $user->rights->holiday->write;
$permtoedit = $user->rights->holiday->write;
$param = '&id='.$object->id;
+ $relativepathwithnofile = $modulepart.'/'.dol_sanitizeFileName($object->ref).'/';
+ $savingdocmask = dol_sanitizeFileName($object->ref).'-__file__';
+
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
} else {
print $langs->trans("ErrorUnknown");
diff --git a/htdocs/holiday/info.php b/htdocs/holiday/info.php
index 3ec95e61a52..5df3a5069de 100644
--- a/htdocs/holiday/info.php
+++ b/htdocs/holiday/info.php
@@ -78,7 +78,7 @@ $result = restrictedArea($user, 'holiday', $object->id, 'holiday');
$form = new Form($db);
-$title = $langs->trans("Holiday")." - ".$langs->trans("Info");
+$title = $langs->trans("Leave")." - ".$langs->trans("Info");
$helpurl = "";
llxHeader("", $title, $helpurl);