most of it
This commit is contained in:
@@ -39,35 +39,7 @@ subFields:
|
||||
folding:
|
||||
previewFolded: contentType
|
||||
previewUnfolded: contentType
|
||||
css: &cols
|
||||
input:
|
||||
wrapper: |
|
||||
& > div > div {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: baseline;
|
||||
flex-wrap: wrap;
|
||||
padding-right: 40px;
|
||||
}
|
||||
& .add-element {
|
||||
width: 30px;
|
||||
min-height: 200px;
|
||||
|
||||
& > button {
|
||||
transform-origin: 0 0;
|
||||
transform: rotate(90deg) translateY(-100%);
|
||||
justify-content: left;
|
||||
width: 200px;
|
||||
}
|
||||
}
|
||||
element:
|
||||
eval: |
|
||||
`
|
||||
flex: 1;
|
||||
flex-grow: ${{"": 1, narrow: 0.5, medium: 1, wide: 2}[$element?.width]};
|
||||
min-width: 350px;
|
||||
height: 100%;
|
||||
`
|
||||
direction: horizontal
|
||||
subFields:
|
||||
- name: contentType
|
||||
type: string
|
||||
@@ -87,14 +59,59 @@ subFields:
|
||||
id: iconBoard
|
||||
- name: Formular
|
||||
id: form
|
||||
- name: Vieoswitch
|
||||
id: videos
|
||||
- name: Textfeld
|
||||
id: text
|
||||
- name: GoogleMaps
|
||||
id: googleMaps
|
||||
- name: Video
|
||||
id: video
|
||||
- name: Icon Informationsbrett
|
||||
id: iconInfoBoard
|
||||
- name: Boxenliste
|
||||
id: boxlist
|
||||
- name: Produkt Vorschau
|
||||
id: productPreview
|
||||
|
||||
- name: boxList
|
||||
type: object
|
||||
meta:
|
||||
label: Boxenliste
|
||||
dependsOn:
|
||||
eval: $parent.contentType == 'boxlist'
|
||||
subFields:
|
||||
- name: boxes
|
||||
type: object[]
|
||||
meta:
|
||||
label: Boxen
|
||||
subFields:
|
||||
- name: name
|
||||
type: string
|
||||
meta:
|
||||
label: Name
|
||||
|
||||
- name: iconInfoBoard
|
||||
type: object
|
||||
meta:
|
||||
label: Icon Informationsbrett
|
||||
dependsOn:
|
||||
eval: $parent.contentType == 'iconInfoBoard'
|
||||
subFields:
|
||||
- name: title
|
||||
type: string
|
||||
meta:
|
||||
label: Titel
|
||||
helperText: "Dieser Titel wird im Infobrett angezeigt."
|
||||
|
||||
- name: text
|
||||
type: string
|
||||
meta:
|
||||
widget: richtext
|
||||
label: Text
|
||||
helperText: "Dieser Text wird im Infobrett angezeigt."
|
||||
|
||||
- name: icon
|
||||
type: file
|
||||
meta:
|
||||
label: Icon
|
||||
helperText: "Das Icon wird im Infobrett angezeigt."
|
||||
|
||||
- name: imageSlider
|
||||
type: object[]
|
||||
@@ -179,21 +196,6 @@ subFields:
|
||||
previewUnfolded: titleForWork
|
||||
dependsOn:
|
||||
eval: $parent.contentType == "table"
|
||||
css:
|
||||
input:
|
||||
wrapper: |
|
||||
& .object-array-input-content{
|
||||
& .add-element {
|
||||
height: 30px;
|
||||
min-height: 0px;
|
||||
width: 100%;
|
||||
|
||||
& > button {
|
||||
transform-origin: 0 0;
|
||||
transform: rotate(0deg) translateY(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subFields:
|
||||
- !include titleForWork.yml
|
||||
@@ -208,21 +210,6 @@ subFields:
|
||||
meta:
|
||||
label: Zeile
|
||||
addElementLabel: Zeile hinzufügen
|
||||
css:
|
||||
input:
|
||||
wrapper: |
|
||||
& .object-array-input-content{
|
||||
& .add-element {
|
||||
height: 30px;
|
||||
min-height: 0px;
|
||||
width: 100%;
|
||||
|
||||
& > button {
|
||||
transform-origin: 0 0;
|
||||
transform: rotate(0deg) translateY(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subFields:
|
||||
- name: bold
|
||||
@@ -303,25 +290,40 @@ subFields:
|
||||
id: path
|
||||
name: path
|
||||
|
||||
- name: productPreview
|
||||
type: object[]
|
||||
meta:
|
||||
label: Produkt Vorschau
|
||||
dependsOn:
|
||||
eval: $parent.contentType == "productPreview"
|
||||
subFields:
|
||||
- name: image
|
||||
type: file
|
||||
meta:
|
||||
label: Bild
|
||||
widget: image
|
||||
|
||||
- name: title
|
||||
type: string
|
||||
meta:
|
||||
label: Titel
|
||||
|
||||
- name: text
|
||||
type: string
|
||||
meta:
|
||||
label: description
|
||||
widget: richtext
|
||||
- name: price
|
||||
type: string
|
||||
meta:
|
||||
label: Preis
|
||||
|
||||
- name: iconBoard
|
||||
type: object[]
|
||||
|
||||
meta:
|
||||
label: Icons
|
||||
css:
|
||||
input:
|
||||
wrapper: |
|
||||
& .object-array-input-content{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
element: |
|
||||
& {
|
||||
flex-grow: 1;
|
||||
min-width: 33%;
|
||||
marin-top: 0px !important;
|
||||
height: 100%;
|
||||
}
|
||||
direction: horizontal
|
||||
|
||||
dependsOn:
|
||||
eval: $parent.contentType == "iconBoard"
|
||||
@@ -336,83 +338,6 @@ subFields:
|
||||
meta:
|
||||
label: Text
|
||||
|
||||
- name: video
|
||||
type: file
|
||||
meta:
|
||||
widget: file
|
||||
dependsOn:
|
||||
eval: $parent.contentType == "video"
|
||||
|
||||
- name: titleVideo
|
||||
type: string
|
||||
meta:
|
||||
label: Titel
|
||||
dependsOn:
|
||||
eval: $parent.contentType == "video"
|
||||
|
||||
- name: descriptionVideo
|
||||
type: string
|
||||
meta:
|
||||
label: Beschreibung
|
||||
widget: richtext
|
||||
dependsOn:
|
||||
eval: $parent.contentType == "video"
|
||||
|
||||
- name: videoSwitch
|
||||
type: object[]
|
||||
validator:
|
||||
eval: |
|
||||
(function(){
|
||||
if($parent.contentType != "videos") return true;
|
||||
return $parent.videoSwitch.length == 2;
|
||||
})()
|
||||
meta:
|
||||
label: Videoswitch
|
||||
helperText: Hier sind 2 Angaben notwendig!
|
||||
dependsOn:
|
||||
eval: $parent.contentType == "videos"
|
||||
folding:
|
||||
previewFolded: titleForWork
|
||||
previewUnfolded: titleForWork
|
||||
css:
|
||||
input:
|
||||
wrapper: |
|
||||
& .object-array-input-content{
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
element: |
|
||||
& {
|
||||
flex-grow: 1;
|
||||
margin-top: 0px !important;
|
||||
height: 100%;
|
||||
}
|
||||
subFields:
|
||||
- name: video
|
||||
type: file
|
||||
meta:
|
||||
widget: file
|
||||
- !include titleForWork.yml
|
||||
- name: title
|
||||
type: string
|
||||
meta:
|
||||
label: Titel
|
||||
- name: description
|
||||
type: string
|
||||
meta:
|
||||
widget: richtext
|
||||
label: Beschreibung
|
||||
- name: link
|
||||
type: string
|
||||
meta:
|
||||
label: link
|
||||
widget: select
|
||||
choices:
|
||||
endpoint: content
|
||||
mapping:
|
||||
id: path
|
||||
name: path
|
||||
|
||||
- name: formEmailTitle
|
||||
type: string
|
||||
meta:
|
||||
@@ -442,7 +367,7 @@ subFields:
|
||||
folding:
|
||||
previewFolded: titleForWork
|
||||
previewUnfolded: titleForWork
|
||||
css: *cols
|
||||
direction: horizontal
|
||||
subFields:
|
||||
- !include titleForWork.yml
|
||||
|
||||
@@ -503,22 +428,7 @@ subFields:
|
||||
helperText: "Die Angaben werden in folgendes Übersetzt: Anfangspunkt - Endpunkt"
|
||||
dependsOn:
|
||||
eval: $parent?.showTimes
|
||||
css: ×Css
|
||||
input:
|
||||
wrapper: |
|
||||
& .object-array-input-content {
|
||||
.add-element{
|
||||
transform-origin: right;
|
||||
margin-left: 80px;
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
.object .sliceFields{
|
||||
display: flex;
|
||||
.field-input-wrapper{
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
direction: horizontal
|
||||
|
||||
subFields:
|
||||
- name: timeFrom
|
||||
@@ -581,7 +491,7 @@ subFields:
|
||||
helperText: "Die Angaben werden in folgendes Übersetzt: Anfangspunkt - Endpunkt"
|
||||
dependsOn:
|
||||
eval: $parent.showSelect
|
||||
css: *timesCss
|
||||
direction: horizontal
|
||||
|
||||
subFields:
|
||||
- name: leftSide
|
||||
|
||||
Reference in New Issue
Block a user