Backend- support for adding descriptions to pages, posts, photos
This commit is contained in:
parent
4564aa9534
commit
d09f49ed24
7 changed files with 36 additions and 0 deletions
|
|
@ -39,6 +39,14 @@ const editorInit = () => {
|
|||
"width": 800,
|
||||
"height": 500
|
||||
});
|
||||
|
||||
const descEditor = Jodit.make('#post_description', {
|
||||
"enter": "P",
|
||||
"theme": 'dark',
|
||||
"disablePlugins": "ai-assistant,about",
|
||||
"width": 800,
|
||||
"height": 200
|
||||
});
|
||||
}
|
||||
|
||||
if (document.querySelector('#page_text')) {
|
||||
|
|
@ -49,6 +57,14 @@ const editorInit = () => {
|
|||
"width": 800,
|
||||
"height": 500
|
||||
});
|
||||
|
||||
const descEditoreditor = Jodit.make('#page_description', {
|
||||
"enter": "P",
|
||||
"theme": 'dark',
|
||||
"disablePlugins": "ai-assistant,about",
|
||||
"width": 800,
|
||||
"height": 200
|
||||
});
|
||||
}
|
||||
|
||||
if (document.querySelector('#photos_text')) {
|
||||
|
|
@ -59,6 +75,14 @@ const editorInit = () => {
|
|||
"width": 800,
|
||||
"height": 500
|
||||
});
|
||||
|
||||
const descEditoreditor = Jodit.make('#photos_description', {
|
||||
"enter": "P",
|
||||
"theme": 'dark',
|
||||
"disablePlugins": "ai-assistant,about",
|
||||
"width": 800,
|
||||
"height": 200
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ class PageType extends AbstractType
|
|||
{
|
||||
$builder
|
||||
->add('title')
|
||||
->add('description')
|
||||
->add('text')
|
||||
->add('url')
|
||||
->add('published')
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ class PhotosType extends AbstractType
|
|||
->add('date', DateType::class)
|
||||
->add('category', CategoryAutocompleteField::class)
|
||||
->add('tags', TagAutocompleteField::class, ['required' => false])
|
||||
->add('description')
|
||||
->add('text')
|
||||
->add('thumbnail', FileType::class, [
|
||||
'label' => 'Thumbnail',
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ class PostType extends AbstractType
|
|||
$builder
|
||||
->add('title', TextType::class)
|
||||
->add('date', DateType::class)
|
||||
->add('description')
|
||||
->add('text', TextareaType::class)
|
||||
->add('category', CategoryAutocompleteField::class)
|
||||
->add('tags', TagAutocompleteField::class, ['required' => false])
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@
|
|||
<div class="row">
|
||||
{{ form_row(form.title) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.description) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.text) }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
<div class="row">
|
||||
{{ form_row(form.thumbnail) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.description)}}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.text)}}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@
|
|||
<div class="row">
|
||||
{{ form_row(form.date) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.description) }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ form_row(form.text) }}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue