diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php
index 82a8542a9e0..045c370de8e 100644
--- a/htdocs/holiday/card.php
+++ b/htdocs/holiday/card.php
@@ -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);
@@ -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
@@ -1543,7 +1541,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
//$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
- print '
';
+ print '
';
$MAXEVENT = 10;
@@ -1552,7 +1550,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
$formactions = new FormActions($db);
$somethingshown = $formactions->showactions($object, $object->element, (is_object($object->thirdparty) ? $object->thirdparty->id : 0), 1, '', $MAXEVENT, '', $morehtmlright);
- print '
';
+ print '
';
}
}
}