|
@@ -2862,11 +2862,12 @@ function show_add_post_form($current_forum, $forum_setting, $action, $id = '', $
|
|
|
if (!empty($iframe)) {
|
|
|
$form->addElement('label', get_lang('Thread'), $iframe);
|
|
|
}
|
|
|
- $form->addElement('advanced_settings', 'advanced_params', get_lang('AdvancedParameters'));
|
|
|
- $form->addElement('html', '<div id="advanced_params_options" style="display:none">');
|
|
|
|
|
|
if ((api_is_course_admin() || api_is_course_coach() || api_is_course_tutor()) && !($myThread)) {
|
|
|
|
|
|
+ $form->addElement('advanced_settings', 'advanced_params', get_lang('AdvancedParameters'));
|
|
|
+ $form->addElement('html', '<div id="advanced_params_options" style="display:none">');
|
|
|
+
|
|
|
// Thread qualify
|
|
|
if (Gradebook::is_active()) {
|
|
|
//Loading gradebook select
|
|
@@ -2910,7 +2911,7 @@ function show_add_post_form($current_forum, $forum_setting, $action, $id = '', $
|
|
|
],
|
|
|
' '
|
|
|
);
|
|
|
-
|
|
|
+ $form->addElement('html', '</div>');
|
|
|
$form->addElement('html', '</div>');
|
|
|
}
|
|
|
|
|
@@ -2918,8 +2919,6 @@ function show_add_post_form($current_forum, $forum_setting, $action, $id = '', $
|
|
|
$form->addElement('checkbox', 'thread_sticky', '', get_lang('StickyPost'));
|
|
|
}
|
|
|
|
|
|
- $form->addElement('html', '</div>');
|
|
|
-
|
|
|
if (in_array($action, ['quote', 'replymessage'])) {
|
|
|
$form->addFile('user_upload[]', get_lang('Attachment'));
|
|
|
$form->addButton(
|