-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add blocks. * Add data to blocks. --------- Co-authored-by: jonas <[email protected]>
- Loading branch information
Showing
75 changed files
with
2,436 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Block/AdvancedTextBlock: | ||
label: 'Advanced text' | ||
groups: [ layout ] | ||
block_type: true | ||
use: | ||
- App\Entity\Block\Traits\CtaTrait | ||
traits: | ||
- CtaTrait | ||
|
||
properties: | ||
text: | ||
template: expanded-choice | ||
columns: | ||
template: expanded-choice | ||
overline: | ||
template: text | ||
headline: | ||
template: headline | ||
copy: | ||
template: wysiwyg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Block/CardBlock: | ||
label: 'Card' | ||
groups: [ layout ] | ||
block_type: true | ||
use: | ||
- App\Entity\Block\Traits\CtaTrait | ||
traits: | ||
- CtaTrait | ||
|
||
properties: | ||
gradient: | ||
template: expanded-choice | ||
layouts: | ||
template: expanded-choice | ||
media: | ||
template: file | ||
overline: | ||
template: text | ||
headline: | ||
template: headline | ||
copy: | ||
template: wysiwyg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Block/ContentFlexBlock: | ||
label: 'Content Flex' | ||
groups: [ layout ] | ||
block_type: true | ||
|
||
properties: | ||
layout: | ||
template: expanded-choice | ||
alignment: | ||
template: expanded-choice | ||
headline: | ||
template: headline | ||
items: | ||
template: items | ||
type_options: | ||
singular: item | ||
entry_class: ContentFlexBlockItem | ||
relation: | ||
target_entity: ContentFlexBlockItem::class | ||
mapped_by: contentFlexBlock | ||
form: | ||
options: | ||
entry_type: ContentFlexBlockItemType::class | ||
|
||
classes: | ||
Block/ContentFlexBlockItem: | ||
use: | ||
- App\Entity\Block\Traits\CtaTrait | ||
traits: | ||
- CtaTrait | ||
|
||
properties: | ||
id: | ||
template: primary-key | ||
contentFlexBlock: | ||
type: ContentFlexBlock | ||
nullable: true | ||
relation: | ||
type: ManyToOne | ||
target_entity: ContentFlexBlock::class | ||
inversed_by: items | ||
position: | ||
template: PositionType | ||
media: | ||
template: picture | ||
overline: | ||
template: text | ||
headline: | ||
template: headline | ||
copy: | ||
template: wysiwyg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Block/QuoteBlock: | ||
label: 'Quote' | ||
groups: [ layout ] | ||
block_type: true | ||
|
||
properties: | ||
alignment: | ||
template: expanded-choice | ||
text: | ||
template: wysiwyg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Block/TeamBlock: | ||
label: 'Team' | ||
groups: [ layout ] | ||
block_type: true | ||
|
||
properties: | ||
overline: | ||
template: text | ||
headline: | ||
template: headline | ||
items: | ||
template: items | ||
type_options: | ||
singular: item | ||
entry_class: TeamBlockItem | ||
relation: | ||
target_entity: TeamBlockItem::class | ||
mapped_by: teamBlock | ||
form: | ||
options: | ||
entry_type: TeamBlockItemType::class | ||
|
||
classes: | ||
Block/TeamBlockItem: | ||
properties: | ||
id: | ||
template: primary-key | ||
teamBlock: | ||
type: TeamBlock | ||
nullable: true | ||
relation: | ||
type: ManyToOne | ||
target_entity: TeamBlock::class | ||
inversed_by: items | ||
position: | ||
template: PositionType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type: string | ||
nullable: true | ||
form: | ||
use: | ||
- Symfony\Component\Form\Extension\Core\Type\ChoiceType | ||
class: ChoiceType | ||
options: | ||
expanded: true | ||
choices: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
type: FileInterface | ||
type_options: | ||
use: | ||
- Enhavo\Bundle\MediaBundle\Model\FileInterface | ||
nullable: true | ||
relation: | ||
type: ManyToOne | ||
target_entity: FileInterface::class | ||
inversed_by: false | ||
form: | ||
use: | ||
- Enhavo\Bundle\MediaBundle\Form\Type\MediaType | ||
class: MediaType | ||
options: | ||
translation_domain: "'EnhavoMediaBundle'" | ||
multiple: 'false' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type: string | ||
nullable: true | ||
form: | ||
use: | ||
- Enhavo\Bundle\FormBundle\Form\Type\HeadLineType | ||
class: HeadlineType | ||
options: | ||
label: "'Headline'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
type: Collection | ||
allow_setter: false | ||
type_options: | ||
constructor: ArrayCollection | ||
use: | ||
- Doctrine\Common\Collections\Collection | ||
- Doctrine\Common\Collections\ArrayCollection | ||
remover: removeElement | ||
relation: | ||
type: OneToMany | ||
order_by: | ||
position: asc | ||
form: | ||
use: | ||
- Enhavo\Bundle\FormBundle\Form\Type\ListType | ||
class: ListType | ||
options: | ||
sortable: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
type: FileInterface | ||
type_options: | ||
use: | ||
- Enhavo\Bundle\MediaBundle\Model\FileInterface | ||
nullable: true | ||
relation: | ||
type: ManyToOne | ||
target_entity: Enhavo\Bundle\MediaBundle\Model\FileInterface | ||
form: | ||
use: | ||
- Enhavo\Bundle\MediaBundle\Form\Type\MediaType | ||
class: MediaType | ||
options: | ||
label: "'Picture'" | ||
help: "'Supported formats are jpeg, gif, png, webp'" | ||
multiple: 'false' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type: int | ||
orm_type: integer | ||
orm_primary_key: true | ||
orm_generated_value_type: AUTO | ||
nullable: true | ||
allow_setter: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
type: string | ||
nullable: true | ||
default: SidebarAwareInterface::SIDEBAR_OFF | ||
type_options: | ||
use: | ||
- App\Model\SidebarAwareInterface | ||
form: | ||
options: | ||
expanded: "true" | ||
use: | ||
- App\Form\Type\Block\Core\SidebarType | ||
class: SidebarType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type: string | ||
nullable: true | ||
form: | ||
use: | ||
- Symfony\Component\Form\Extension\Core\Type\TextType | ||
class: TextType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
type: FileInterface | ||
type_options: | ||
use: | ||
- Enhavo\Bundle\MediaBundle\Model\FileInterface | ||
nullable: true | ||
relation: | ||
type: ManyToOne | ||
target_entity: Enhavo\Bundle\MediaBundle\Model\FileInterface | ||
form: | ||
use: | ||
- Enhavo\Bundle\MediaBundle\Form\Type\MediaType | ||
class: MediaType | ||
options: | ||
label: "'Video'" | ||
help: "'Supported formats are mp4'" | ||
multiple: 'false' | ||
upload: 'false' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: string | ||
orm_type: text | ||
nullable: true | ||
form: | ||
use: | ||
- Enhavo\Bundle\FormBundle\Form\Type\WysiwygType | ||
class: WysiwygType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
doctrine_migrations: | ||
migrations_paths: | ||
'App\Migration': '%kernel.project_dir%/src/Migration' | ||
'App\Migration': '%kernel.project_dir%/migrations' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# @see https://github.com/Sylius/SyliusResourceBundle/blob/master/docs/index.md | ||
sylius_resource: | ||
# Override default settings | ||
#settings: | ||
|
||
# Configure your resources | ||
resources: | ||
#app.book: | ||
#classes: | ||
#model: App\Entity\Book | ||
app.team_member: | ||
classes: | ||
model: App\Entity\TeamMember | ||
controller: Enhavo\Bundle\AppBundle\Controller\ResourceController | ||
form: App\Form\Type\TeamMemberType | ||
repository: App\Repository\TeamMemberRepository | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
enhavo_app: | ||
vue: | ||
route_providers: | ||
admin: | ||
type: routing | ||
groups: ['admin'] |
Oops, something went wrong.