Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabular questions #87

Merged
merged 2 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fieldLayouts:
disabled: false
elementCondition: null
id: null
inputType: null
instructions: 'For backend reference.'
label: null
max: null
Expand Down Expand Up @@ -66,6 +67,29 @@ fieldLayouts:
userCondition: null
warning: null
width: 100
-
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\OptionsFieldConditionRule
fieldUid: a966d509-84b0-43ab-9a5b-42590a5fb537 # Answer Type
operator: in
uid: ee8840a7-939c-4dae-915e-e1bd9a10d2c8
values:
- tabular
elementType: craft\elements\Entry
fieldContext: global
fieldUid: fcc60644-81ac-4f94-ad34-8bdaeeb4a6b6 # Question Table
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 447233ea-b878-4183-96be-80710d4a7876
userCondition: null
warning: null
width: 100
-
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ settings:
-
- default
- ''
-
__assoc__:
-
- label
- Table
-
- value
- tabular
-
- default
- ''
translationKeyFormat: null
translationMethod: none
type: craft\fields\Dropdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: 'Display Table'
searchable: false
settings:
blockTypeFields: 0
changedFieldIndicator: 1112726131
changedFieldIndicator: 2042855894
columns:
__assoc__:
-
Expand All @@ -17,8 +17,15 @@ settings:
-
- width
- ''
contentTable: '{{%stc_displaytable_1}}'
fieldLayout: table
-
- 301c4afd-e88a-4847-a0ce-1b134b5c3741 # Previous Question
-
__assoc__:
-
- width
- ''
contentTable: '{{%stc_displaytable}}'
fieldLayout: row
maxRows: null
minRows: 1
propagationKeyFormat: null
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
columnSuffix: null
contentColumnType: string
fieldGroup: b0465285-e18b-4739-a3a5-cb0ec0571dd8 # Questions
handle: questionTable
instructions: null
name: 'Question Table'
searchable: false
settings:
blockTypeFields: 0
changedFieldIndicator: 1804289584
columns:
__assoc__:
-
- 8b781860-2b8c-4100-969a-2f13c5272420 # Table Cells
-
__assoc__:
-
- width
- ''
-
- c74bb176-8889-459f-a14a-b9d4601786a6 # Previous Question
-
__assoc__:
-
- width
- ''
contentTable: '{{%stc_questiontable}}'
fieldLayout: row
maxRows: null
minRows: 1
propagationKeyFormat: null
propagationMethod: all
selectionLabel: null
staticField: null
translationKeyFormat: null
translationMethod: none
type: verbb\supertable\fields\SuperTableField
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
field: 8b781860-2b8c-4100-969a-2f13c5272420 # Table Cells
fieldLayouts:
0bd639bb-fcdb-4685-abf9-754d9c8797a2:
tabs:
-
elementCondition: null
elements:
-
elementCondition: null
fieldUid: 210fad18-08a1-4042-821c-bf4a09c06ec6 # Question Type
instructions: null
label: null
required: true
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 9e45e48c-9671-49a9-b235-92eb1ab1679c
userCondition: null
warning: null
width: 100
-
elementCondition: null
fieldUid: a531c6b8-3ef6-480b-8840-babb586617bc # Options
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: aaa4c297-c58f-4e31-a999-0095b680cb82
userCondition: null
warning: null
width: 100
name: Content
uid: cb6accbd-3e94-4bac-9ab4-8b7bbb5807db
userCondition: null
fields:
210fad18-08a1-4042-821c-bf4a09c06ec6: # Question Type
columnSuffix: xfosopmy
contentColumnType: string(6)
fieldGroup: null
handle: questionType
instructions: null
name: 'Question Type'
searchable: false
settings:
columnType: null
options:
-
__assoc__:
-
- label
- Text
-
- value
- text
-
- default
- '1'
-
__assoc__:
-
- label
- Select
-
- value
- select
-
- default
- ''
translationKeyFormat: null
translationMethod: none
type: craft\fields\Dropdown
a531c6b8-3ef6-480b-8840-babb586617bc: # Options
columnSuffix: null
contentColumnType: string
fieldGroup: null
handle: options
instructions: 'Options for dropdown select questions'
name: Options
searchable: false
settings:
blockTypeFields: 0
changedFieldIndicator: 1538452176
columns:
__assoc__:
-
- 6caa0b9c-4aa9-418b-847c-f6b8e3807cdd # Option Label
-
__assoc__:
-
- width
- ''
-
- e818f50c-bd7d-48dd-9bd6-17d725e65533 # Option Value
-
__assoc__:
-
- width
- ''
contentTable: '{{%stc_47_options}}'
fieldLayout: table
maxRows: null
minRows: null
propagationKeyFormat: null
propagationMethod: all
selectionLabel: null
staticField: null
translationKeyFormat: null
translationMethod: site
type: verbb\supertable\fields\SuperTableField
handle: question
name: Question
sortOrder: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
field: 8b781860-2b8c-4100-969a-2f13c5272420 # Table Cells
fieldLayouts:
42907a15-1f1c-467d-b5f6-ab6726fe55c0:
tabs:
-
elementCondition: null
elements:
-
elementCondition: null
fieldUid: 69cb131c-4118-487d-84be-d370e75627bd # Text
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 8997b7cc-30fe-45fb-b2bc-054a304dc36c
userCondition: null
warning: null
width: 100
-
elementCondition: null
fieldUid: fc7f5dc8-43b1-487c-8302-07abecd2429a # Equation
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 54a6712e-2188-418b-adf3-794f720c99d3
userCondition: null
warning: null
width: 100
-
elementCondition: null
fieldUid: 17499e5e-0bba-4aa4-8c78-56cdbe8422e0 # Header
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 9645a5ea-9466-4a83-ba68-5670e72a1757
userCondition: null
warning: null
width: 100
name: Content
uid: b4b66028-d2a4-4aae-944d-5499d9f90674
userCondition: null
fields:
69cb131c-4118-487d-84be-d370e75627bd: # Text
columnSuffix: nanmdcwh
contentColumnType: text
fieldGroup: null
handle: text
instructions: null
name: Text
searchable: false
settings:
byteLimit: null
charLimit: null
code: false
columnType: null
initialRows: 4
multiline: false
placeholder: null
uiMode: normal
translationKeyFormat: null
translationMethod: site
type: craft\fields\PlainText
17499e5e-0bba-4aa4-8c78-56cdbe8422e0: # Header
columnSuffix: qmhrjxcz
contentColumnType: boolean
fieldGroup: null
handle: header
instructions: 'Check if this cell is a header. This should only be used for the first cell in each row. The first row of a table is a header by default.'
name: Header
searchable: false
settings:
default: false
offLabel: null
onLabel: null
translationKeyFormat: null
translationMethod: none
type: craft\fields\Lightswitch
fc7f5dc8-43b1-487c-8302-07abecd2429a: # Equation
columnSuffix: lhtlrftk
contentColumnType: text
fieldGroup: null
handle: equation
instructions: 'LaTeX format input, reference the Temml documentation for help formatting: https://temml.org/docs/en/supported'
name: Equation
searchable: false
settings:
byteLimit: null
charLimit: null
code: true
columnType: null
initialRows: 4
multiline: false
placeholder: null
uiMode: normal
translationKeyFormat: null
translationMethod: none
type: craft\fields\PlainText
handle: static
name: 'Static Cell'
sortOrder: 1
Loading
Loading