diff --git a/main/course_progress/index.php b/main/course_progress/index.php index 9547da2fda..28a016610b 100755 --- a/main/course_progress/index.php +++ b/main/course_progress/index.php @@ -230,6 +230,27 @@ if ($action == 'thematic_advance_add' || $action == 'thematic_advance_edit') { $interbreadcrumb[] = array ('url' => '#', 'name' => get_lang('NewThematicAdvance')); } +if ($action == 'thematic_plan_list') { + $htmlHeadXtra[] = " + + "; +} + // Distpacher actions to controller switch ($action) { case 'thematic_add': diff --git a/main/course_progress/thematic_plan.php b/main/course_progress/thematic_plan.php index be76ed8047..f68e0da4ef 100755 --- a/main/course_progress/thematic_plan.php +++ b/main/course_progress/thematic_plan.php @@ -45,8 +45,16 @@ if ($action === 'thematic_plan_list') { $form->addElement('hidden', 'thematic_id', $thematic_id); foreach ($default_thematic_plan_title as $id => $title) { + $btnDelete = Display::toolbarButton( + get_lang('Delete'), + '#', + 'times', + 'danger', + ['role' => 'button', 'data-id' => $id, 'class' => 'btn-delete'] + ); + $form->addElement('hidden', 'description_type['.$id.']', $id); - $form->addText('title['.$id.']', get_lang('Title'), false, array('size'=>'50')); + $form->addText("title[$id]", [get_lang('Title'), null, $btnDelete], false); $form->addHtmlEditor( 'description['.$id.']', get_lang('Description'),