|
|
|
|
@ -10,7 +10,12 @@ $categories = $em |
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
$form = new FormValidator('add_portfolio', 'post', $baseUrl.'action=add_item'); |
|
|
|
|
if (api_get_configuration_value('save_titles_as_html')) { |
|
|
|
|
$form->addHtmlEditor('title', get_lang('Title'), true, false, ['ToolbarSet' => 'NotebookStudent']); |
|
|
|
|
} else { |
|
|
|
|
$form->addText('title', get_lang('Title')); |
|
|
|
|
$form->applyFilter('title', 'trim'); |
|
|
|
|
} |
|
|
|
|
$form->addHtmlEditor('content', get_lang('Content'), true, false, ['ToolbarSet' => 'NotebookStudent']); |
|
|
|
|
$form->addSelectFromCollection('category', get_lang('Category'), $categories, [], true); |
|
|
|
|
$form->addButtonCreate(get_lang('Create')); |
|
|
|
|
|