|
|
|
|
@ -163,7 +163,6 @@ $form->addGroup($group, '', array(get_lang("Stylesheets")), ''); |
|
|
|
|
|
|
|
|
|
$form->addElement('label', get_lang('DocumentQuota'), format_file_size(DocumentManager::get_course_quota())); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null,'<i class="fa fa-floppy-o"></i> '. get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
// COURSE ACCESS |
|
|
|
|
@ -199,8 +198,8 @@ $form->addText('course_registration_password', get_lang('CourseRegistrationPassw |
|
|
|
|
|
|
|
|
|
$form->addElement('checkbox', 'activate_legal', array(null, get_lang('ShowALegalNoticeWhenEnteringTheCourse')), get_lang('ActivateLegal')); |
|
|
|
|
$form->addElement('textarea', 'legal', get_lang('CourseLegalAgreement'), array('class'=>'span6', 'rows' => 8)); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null, '<i class="fa fa-floppy-o"></i> '.get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
|
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
// Documents |
|
|
|
|
@ -213,7 +212,7 @@ if (api_get_setting('documents_default_visibility_defined_in_course') == 'true') |
|
|
|
|
); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("DocumentsDefaultVisibility")), ''); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null,'<i class="fa fa-floppy-o"></i> '.get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
} |
|
|
|
|
@ -246,8 +245,7 @@ $group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("QuizEmailAlert")), ''); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null, '<i class="fa fa-floppy-o"></i> '.get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
|
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
@ -273,8 +271,7 @@ $group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_view_user_list', get_lang('AllowUserViewUserList'), get_lang('AllowUserViewUserListActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_user_view_user_list', null, get_lang('AllowUserViewUserListDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowUserViewUserList")), ''); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null, '<i class="fa fa-floppy-o"></i> '.get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
// CHAT SETTINGS |
|
|
|
|
@ -284,8 +281,7 @@ $group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowOpenchatWindow")), ''); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null,'<i class="fa fa-floppy-o"></i> '. get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
// LEARNING PATH |
|
|
|
|
@ -328,8 +324,7 @@ if (isset($_configuration['allow_lp_return_link']) && $_configuration['allow_lp_ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (is_settings_editable()) { |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null, '<i class="fa fa-floppy-o"></i> '.get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
} else { |
|
|
|
|
// Is it allowed to edit the course settings? |
|
|
|
|
if (!is_settings_editable()) { |
|
|
|
|
@ -340,7 +335,13 @@ if (is_settings_editable()) { |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
// THEMATIC ADVANCE SETTINGS |
|
|
|
|
$form->addElement('html', '<div><h3>'.Display::return_icon('course_progress.png', Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')).'</h3><div>'); |
|
|
|
|
$form->addElement( |
|
|
|
|
'html', |
|
|
|
|
'<div><h3>'.Display::return_icon( |
|
|
|
|
'course_progress.png', |
|
|
|
|
Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')),'',ICON_SIZE_SMALL |
|
|
|
|
).' '.Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')).'</h3><div>' |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$group = array(); |
|
|
|
|
$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', get_lang('InfoAboutAdvanceInsideHomeCourse'), get_lang('DisplayAboutLastDoneAdvance'), 1); |
|
|
|
|
@ -348,8 +349,7 @@ $group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', |
|
|
|
|
$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDoneAndLastDoneAdvance'), 3); |
|
|
|
|
$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DoNotDisplayAnyAdvance'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("InfoAboutAdvanceInsideHomeCourse")), ''); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null,'<i class="fa fa-floppy-o"></i> '.get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
// Document settings |
|
|
|
|
@ -361,8 +361,7 @@ $group = array( |
|
|
|
|
|
|
|
|
|
); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("ShowSystemFolders")), ''); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null,'<i class="fa fa-floppy-o"></i> '.get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
|
|
|
|
|
// Certificate settings |
|
|
|
|
@ -372,8 +371,7 @@ if (api_get_setting('allow_public_certificates')=='true') { |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1); |
|
|
|
|
$group[]=$form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0); |
|
|
|
|
$form->addGroup($group, '', array(get_lang("AllowPublicCertificates")), ''); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'),'submit_save'); |
|
|
|
|
//$form->addElement('style_submit_button', null,'<i class="fa fa-floppy-o"></i> '.get_lang('SaveSettings'), 'class="btn btn-primary"'); |
|
|
|
|
$form->addButtonSave(get_lang('SaveSettings'), 'submit_save'); |
|
|
|
|
$form->addElement('html', '</div></div>'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|