|
|
@ -71,7 +71,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'addnote') |
|
|
|
//$form->applyFilter('note_title', 'html_filter'); |
|
|
|
//$form->applyFilter('note_title', 'html_filter'); |
|
|
|
$form->addElement('html_editor', 'note_comment', get_lang('NoteComment'), null, api_is_allowed_to_edit() |
|
|
|
$form->addElement('html_editor', 'note_comment', get_lang('NoteComment'), null, api_is_allowed_to_edit() |
|
|
|
? array('ToolbarSet' => 'Notebook', 'Width' => '100%', 'Height' => '300') |
|
|
|
? array('ToolbarSet' => 'Notebook', 'Width' => '100%', 'Height' => '300') |
|
|
|
: array('ToolbarSet' => 'Notebook_Student', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student') |
|
|
|
: array('ToolbarSet' => 'NotebookStudent', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student') |
|
|
|
); |
|
|
|
); |
|
|
|
$form->addElement('style_submit_button', 'SubmitNote', get_lang('AddNote'), 'class="add"'); |
|
|
|
$form->addElement('style_submit_button', 'SubmitNote', get_lang('AddNote'), 'class="add"'); |
|
|
|
|
|
|
|
|
|
|
@ -121,7 +121,7 @@ else if (isset($_GET['action']) && $_GET['action'] == 'editnote' && is_numeric($ |
|
|
|
//$form->applyFilter('note_title', 'html_filter'); |
|
|
|
//$form->applyFilter('note_title', 'html_filter'); |
|
|
|
$form->addElement('html_editor', 'note_comment', get_lang('NoteComment'), null, api_is_allowed_to_edit() |
|
|
|
$form->addElement('html_editor', 'note_comment', get_lang('NoteComment'), null, api_is_allowed_to_edit() |
|
|
|
? array('ToolbarSet' => 'Notebook', 'Width' => '100%', 'Height' => '300') |
|
|
|
? array('ToolbarSet' => 'Notebook', 'Width' => '100%', 'Height' => '300') |
|
|
|
: array('ToolbarSet' => 'Notebook_Student', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student') |
|
|
|
: array('ToolbarSet' => 'NotebookStudent', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student') |
|
|
|
); |
|
|
|
); |
|
|
|
$form->addElement('style_submit_button', 'SubmitNote', get_lang('ModifyNote'), 'class="save"'); |
|
|
|
$form->addElement('style_submit_button', 'SubmitNote', get_lang('ModifyNote'), 'class="save"'); |
|
|
|
|
|
|
|
|
|
|
|