Skip to content

Commit

Permalink
[F] add number question and validations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff authored and Blake Mason committed Apr 18, 2024
1 parent a9c83d6 commit 6035f65
Show file tree
Hide file tree
Showing 8 changed files with 823 additions and 742 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,98 @@ 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: b0369af6-cbb4-4ac0-8301-401d8a0ec2cf
values:
- number
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 79f2f742-966c-42df-9d04-8492d456325c # Minimum
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: e972137e-acc9-48fe-a897-06639c0cc354
userCondition: null
warning: null
width: 25
-
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\OptionsFieldConditionRule
fieldUid: a966d509-84b0-43ab-9a5b-42590a5fb537 # Answer Type
operator: in
uid: 210b86ab-5066-4414-9848-ac87a33a6232
values:
- number
elementType: craft\elements\Entry
fieldContext: global
fieldUid: d5901e55-99c9-441a-937e-05a065d6e60b # Maximum
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 08139682-17dd-426c-af3b-dd9d171a63ac
userCondition: null
warning: null
width: 25
-
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\OptionsFieldConditionRule
fieldUid: a966d509-84b0-43ab-9a5b-42590a5fb537 # Answer Type
operator: in
uid: 56af986b-38fc-4fb6-9c5f-c147b11902c3
values:
- number
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 24f2e959-23a9-4f1a-8394-0849fb85b85b # Precision
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 5eb2e698-b5d8-4dad-b93e-f1415fa657f2
userCondition: null
warning: null
width: 25
-
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\OptionsFieldConditionRule
fieldUid: a966d509-84b0-43ab-9a5b-42590a5fb537 # Answer Type
operator: in
uid: fa7553ab-5c70-4b93-a086-ef38824696cc
values:
- number
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 37af5dda-9a0b-458a-b48c-1bd31b9170af # Validation
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 4c8613d1-5b87-49c5-9916-5223625962ec
userCondition: null
warning: null
width: 100
name: Content
uid: 38c902fa-7739-496e-a506-0b98d6d480d0
userCondition: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,32 @@ settings:
__assoc__:
-
- label
- Select
- Textarea
-
- value
- select
- textarea
-
- default
- ''
-
__assoc__:
-
- label
- Widget
- Select
-
- value
- widget
- select
-
- default
- ''
-
__assoc__:
-
- label
- Textarea
- Number
-
- value
- textarea
- number
-
- default
- ''
Expand All @@ -63,6 +63,17 @@ settings:
-
- default
- ''
-
__assoc__:
-
- label
- Widget
-
- value
- widget
-
- default
- ''
-
__assoc__:
-
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
columnSuffix: vcifkykz
contentColumnType: integer(10)
fieldGroup: e1b23b33-c33f-4c74-9811-250c2cc2789a # Data
handle: maximum
instructions: null
name: Maximum
searchable: false
settings:
decimals: 0
defaultValue: null
max: null
min: 0
prefix: null
previewCurrency: null
previewFormat: decimal
size: null
suffix: null
translationKeyFormat: null
translationMethod: none
type: craft\fields\Number
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
columnSuffix: pychgyxo
contentColumnType: integer(10)
fieldGroup: e1b23b33-c33f-4c74-9811-250c2cc2789a # Data
handle: minimum
instructions: null
name: Minimum
searchable: false
settings:
decimals: 0
defaultValue: null
max: null
min: 0
prefix: null
previewCurrency: null
previewFormat: decimal
size: null
suffix: null
translationKeyFormat: null
translationMethod: none
type: craft\fields\Number
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
columnSuffix: uibuvada
contentColumnType: smallint(1)
fieldGroup: e1b23b33-c33f-4c74-9811-250c2cc2789a # Data
handle: precision
instructions: null
name: Precision
searchable: false
settings:
decimals: 0
defaultValue: 0
max: 6
min: 0
prefix: null
previewCurrency: null
previewFormat: none
size: null
suffix: null
translationKeyFormat: null
translationMethod: none
type: craft\fields\Number
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
columnSuffix: null
contentColumnType: string
fieldGroup: b0465285-e18b-4739-a3a5-cb0ec0571dd8 # Questions
handle: validation
instructions: null
name: Validation
searchable: false
settings:
contentTable: '{{%matrixcontent_validation}}'
maxBlocks: null
minBlocks: null
propagationKeyFormat: null
propagationMethod: all
translationKeyFormat: null
translationMethod: site
type: craft\fields\Matrix
Loading

0 comments on commit 6035f65

Please sign in to comment.