Skip to content

Commit

Permalink
Tracking: Fix form layout in course - refs BT#18514
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Mar 29, 2021
1 parent bd33b68 commit daea012
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main/tracking/courseLog.php
Expand Up @@ -234,7 +234,6 @@ function(index) {
FormValidator::LAYOUT_INLINE
);
$renderer = $form_search->defaultRenderer();
$renderer->setCustomElementTemplate('<span>{element}</span>');
$form_search->addHidden('from', Security::remove_XSS($from));
$form_search->addHidden('session_id', $sessionId);
$form_search->addHidden('id_session', $sessionId);
Expand Down Expand Up @@ -566,8 +565,7 @@ function(index) {
'get',
api_get_path(WEB_CODE_PATH).'announcements/announcements.php?'.api_get_cidreq(),
null,
['style' => 'margin-bottom: 10px'],
FormValidator::LAYOUT_INLINE
['style' => 'margin-bottom: 10px']
);
$options = [
2 => sprintf($getLangXDays, 2),
Expand All @@ -592,7 +590,7 @@ function(index) {
$form->addElement('hidden', 'cidReq', $courseInfo['code']);
$form->addElement('hidden', 'id_session', api_get_session_id());
$form->addButtonSend(get_lang('SendNotification'));
$form->addHtml('<a id="download-csv" href="#!" class=" btn btn-default " > '.
$form->addLabel(get_lang('Export'), '<a id="download-csv" href="#!" class=" btn btn-default " > '.
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_SMALL).
get_lang('ExportAsCSV')
.' </a>');
Expand Down

0 comments on commit daea012

Please sign in to comment.