eventSubmission.form.yaml 5.35 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205

renderingOptions:
  submitButtonLabel: Submit
type: Form
identifier: eventSubmission
label: 'Event Submission'
prototypeName: standard
finishers:
  -
    identifier: T3oSaveToDatabase
    options:
      -
        table: 'tx_sfeventmgt_domain_model_event'
        mode: insert
        userdata:
          uid: 0
          __newEventStatus: 1
        databaseColumnMappings:
          pid:
            value: 180
          hidden:
            value: '{T3oSaveToDatabase.feuser.__newEventStatus}'
          author_fe_user:
            value: '{T3oSaveToDatabase.feuser.uid}'
          crdate:
            value: '{__currentTimestamp}'
          tstamp:
            value: '{__currentTimestamp}'
        elements:
          fileupload:
            mapOnDatabaseColumn: 'image'
          title:
            mapOnDatabaseColumn: 'title'
          startdate:
            mapOnDatabaseColumn: 'startdate'
          enddate:
            mapOnDatabaseColumn: 'enddate'
          teaser:
            mapOnDatabaseColumn: 'teaser'
          description:
            mapOnDatabaseColumn: 'description'
          link:
            mapOnDatabaseColumn: 'link'
          program:
            mapOnDatabaseColumn: 'program'
          room:
            mapOnDatabaseColumn: 'room'
      -
        table: sys_file_reference
        mode: insert
        elements:
          image:
            mapOnDatabaseColumn: 'uid_local'
            skipIfValueIsEmpty: true
        databaseColumnMappings:
          table_local:
            value: 'sys_file'
          tablenames:
            value: 'tx_sfeventmgt_domain_model_event'
          fieldname:
            value: 'image'
          tstamp:
            value: '{__currentTimestamp}'
          crdate:
            value: '{__currentTimestamp}'
          uid_foreign:
            value: '{T3oSaveToDatabase.insertedUids.0}'
      -
        table: sys_category_record_mm
        mode: insert
        elements:
          category:
            mapOnDatabaseColumn: 'uid_local'
        databaseColumnMappings:
          tablenames:
            value: 'tx_sfeventmgt_domain_model_event'
          fieldname:
            value: 'category'
          uid_foreign:
            value: '{T3oSaveToDatabase.insertedUids.0}'

  -
    options:
      subject: 'new Event submitted on typo3.org'
      recipients:
        t3o@typo3.org: 'TYPO3 T3O team'
      senderAddress: noreply@typo3.org
      senderName: typo3.org
      addHtmlPart: true
      attachUploads: false
      useFluidEmail: false
      title: 'new Event submitted on typo3.org'
      #templateName: 'EventSubmission{@format}.html'
    identifier: EmailToReceiver
  -
    options:
      message: 'Thank You!'
    identifier: Confirmation
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'Previous step'
      nextButtonLabel: 'Next step'
    type: Page
    identifier: page-1
    label: Step
    renderables:
      -
        defaultValue: ''
        type: Text
        identifier: title
        label: Title
        properties:
          elementDescription: 'Enter a descriptive title for the event'
          fluidAdditionalAttributes:
            required: required
        validators:
          -
            identifier: NotEmpty
      -
        type: GridRow
        identifier: gridrow-1
        label: 'Grid: Row'
        renderables:
        -
          defaultValue: ''
          properties:
            fluidAdditionalAttributes:
              step: 1
              required: required
            elementDescription: 'The date this event starts'
          type: Date
          identifier: startdate
          label: 'Start date'
          validators:
            -
              identifier: NotEmpty
        -
          defaultValue: ''
          properties:
            fluidAdditionalAttributes:
              min: ''
              max: ''
              step: 1
              required: required
            elementDescription: 'The date this event ends'
          type: Date
          identifier: enddate
          label: 'End date'
          validators:
            -
              identifier: NotEmpty
      -
        defaultValue: ''
        type: Textarea
        identifier: teaser
        label: Teaser
        properties:
          elementDescription: 'short description'
      -
        defaultValue: ''
        type: Textarea
        identifier: description
        label: Description
        properties:
          elementDescription: 'full description of the event'
      -
        defaultValue: ''
        type: Url
        identifier: link
        label: Link
        properties:
          elementDescription: 'link to an event site'
      -
        defaultValue: ''
        type: Textarea
        identifier: program
        label: 'Program / Schedule'
      -
        properties:
          systemCategory:
            uid: 34
            exclude: 36
          prependOptionLabel: 'Please select...'
          fluidAdditionalAttributes:
            required: required
        type: SingleSelectWithSystemCategory
        identifier: category
        label: 'Category'
      -
        defaultValue: ''
        type: Text
        identifier: room
        label: Room
        properties:
          elementDescription: 'room name or number'
      -
        properties:
          saveToFileMount: '1:/user_upload/'
          allowedMimeTypes:
            - image/jpeg
            - image/png
        type: ImageUpload
        identifier: image
        label: Images