Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Commit

Permalink
As a stakeholder I want all copy on checkout page to be editable from…
Browse files Browse the repository at this point in the history
… administration interface (#13)

* [#155649274] Added fields for Checkout settings.

* [#155649274] Added default values for Checkout settings.

* [#155649274] Reverted wrong commit.

* [#155649274] Updated order of fields.

* [#155649274] Outputted step1 description from the backend.

* [#155649274] Outputted descriptions from the backend.
  • Loading branch information
ikorgik authored and Kate committed Apr 1, 2018
1 parent 9f314c1 commit 833606d
Show file tree
Hide file tree
Showing 18 changed files with 374 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ status: true
dependencies:
config:
- config_pages.type.site_content_settings
- field.field.config_pages.site_content_settings.field_config_checkout_cards
- field.field.config_pages.site_content_settings.field_config_checkout_optins
- field.field.config_pages.site_content_settings.field_config_checkout_page_title
- field.field.config_pages.site_content_settings.field_config_checkout_step_1
- field.field.config_pages.site_content_settings.field_config_checkout_step_2
- field.field.config_pages.site_content_settings.field_config_contact_us_address
- field.field.config_pages.site_content_settings.field_config_corporate_images
- field.field.config_pages.site_content_settings.field_config_corporate_labels
Expand Down Expand Up @@ -68,6 +73,7 @@ third_party_settings:
- group_config_front_page
- group_config_contact_us_page
- group_corporate_gifts
- group_checkout
parent_name: ''
weight: 0
format_type: tabs
Expand Down Expand Up @@ -103,11 +109,68 @@ third_party_settings:
description: ''
required_fields: true
label: 'How Gifts Work section'
group_checkout:
children:
- field_config_checkout_page_title
- field_config_checkout_step_1
- field_config_checkout_optins
- field_config_checkout_step_2
- field_config_checkout_cards
parent_name: group_config_tabs
weight: 5
format_type: tab
format_settings:
id: ''
classes: ''
formatter: closed
description: ''
required_fields: true
label: Checkout
id: config_pages.site_content_settings.default
targetEntityType: config_pages
bundle: site_content_settings
mode: default
content:
field_config_checkout_cards:
weight: 10
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: text_textarea
region: content
field_config_checkout_optins:
weight: 8
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: text_textarea
region: content
field_config_checkout_page_title:
weight: 6
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_config_checkout_step_1:
weight: 7
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_config_checkout_step_2:
weight: 9
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_config_contact_us_address:
weight: 5
settings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ status: true
dependencies:
config:
- config_pages.type.site_content_settings
- field.field.config_pages.site_content_settings.field_config_checkout_cards
- field.field.config_pages.site_content_settings.field_config_checkout_optins
- field.field.config_pages.site_content_settings.field_config_checkout_page_title
- field.field.config_pages.site_content_settings.field_config_checkout_step_1
- field.field.config_pages.site_content_settings.field_config_checkout_step_2
- field.field.config_pages.site_content_settings.field_config_contact_us_address
- field.field.config_pages.site_content_settings.field_config_corporate_images
- field.field.config_pages.site_content_settings.field_config_corporate_labels
Expand All @@ -20,6 +25,44 @@ targetEntityType: config_pages
bundle: site_content_settings
mode: default
content:
field_config_checkout_cards:
weight: 13
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
field_config_checkout_optins:
weight: 12
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
field_config_checkout_page_title:
weight: 9
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_config_checkout_step_1:
weight: 10
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_config_checkout_step_2:
weight: 11
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_config_contact_us_address:
weight: 4
label: above
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 4d1e1402-5f73-45b5-b5f0-1ff1647e7a47
langcode: en
status: true
dependencies:
config:
- config_pages.type.site_content_settings
- field.storage.config_pages.field_config_checkout_cards
module:
- text
id: config_pages.site_content_settings.field_config_checkout_cards
field_name: field_config_checkout_cards
entity_type: config_pages
bundle: site_content_settings
label: 'Cards description'
description: 'Description for the Cards section.'
required: false
translatable: false
default_value:
-
value: "<p><strong>Each gift comes with either an e-card or a postal card.</strong> All you have to do is choose which one you want your relative or friend to receive. If you choose to send an e-card, we’ll send it directly on your behalf. If you would prefer to give a postal card, we will post it to you and you’ll be able to deliver it in person.</p>\r\n"
format: basic_html
default_value_callback: ''
settings: { }
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 388a2a24-c8b9-4d58-be29-4573d599ed84
langcode: en
status: true
dependencies:
config:
- config_pages.type.site_content_settings
- field.storage.config_pages.field_config_checkout_optins
module:
- text
id: config_pages.site_content_settings.field_config_checkout_optins
field_name: field_config_checkout_optins
entity_type: config_pages
bundle: site_content_settings
label: 'Opt-ins Description'
description: 'Description for the Opt-ins section.'
required: false
translatable: false
default_value:
-
value: "<p>We would love to keep you updated about our work and let you know how you can continue to help changing lives. Please tick the boxes below to confirm that we can contact you by:</p>\r\n"
format: basic_html
default_value_callback: ''
settings: { }
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: b3e1dff7-ef5d-4659-be62-693ffe239629
langcode: en
status: true
dependencies:
config:
- config_pages.type.site_content_settings
- field.storage.config_pages.field_config_checkout_page_title
id: config_pages.site_content_settings.field_config_checkout_page_title
field_name: field_config_checkout_page_title
entity_type: config_pages
bundle: site_content_settings
label: 'Page title'
description: ''
required: true
translatable: false
default_value:
-
value: 'Checkout and save lives'
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 13dbee6b-9a5b-4136-8fa7-3866635b8eba
langcode: en
status: true
dependencies:
config:
- config_pages.type.site_content_settings
- field.storage.config_pages.field_config_checkout_step_1
id: config_pages.site_content_settings.field_config_checkout_step_1
field_name: field_config_checkout_step_1
entity_type: config_pages
bundle: site_content_settings
label: 'Step 1 Subheader'
description: ''
required: false
translatable: false
default_value:
-
value: 'Step 1 - Enter your personal details'
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 8e000fdd-ee47-4dd9-887c-a1b3d5e2d9be
langcode: en
status: true
dependencies:
config:
- config_pages.type.site_content_settings
- field.storage.config_pages.field_config_checkout_step_2
id: config_pages.site_content_settings.field_config_checkout_step_2
field_name: field_config_checkout_step_2
entity_type: config_pages
bundle: site_content_settings
label: 'Step 2 Subheader'
description: ''
required: false
translatable: false
default_value:
-
value: 'Step 2 - Choose a card to go with your gifts'
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 1aa67cf5-e850-49ad-8a0c-086f8130fcd9
langcode: en
status: true
dependencies:
module:
- config_pages
- text
id: config_pages.field_config_checkout_cards
field_name: field_config_checkout_cards
entity_type: config_pages
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: e7b68da3-b25b-493a-b054-781e85117a84
langcode: en
status: true
dependencies:
module:
- config_pages
- text
id: config_pages.field_config_checkout_optins
field_name: field_config_checkout_optins
entity_type: config_pages
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 7e742497-aacb-4f67-b093-dc11782d0342
langcode: en
status: true
dependencies:
module:
- config_pages
id: config_pages.field_config_checkout_page_title
field_name: field_config_checkout_page_title
entity_type: config_pages
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 8d995f7f-147f-4b8b-9174-9e51dcec6089
langcode: en
status: true
dependencies:
module:
- config_pages
id: config_pages.field_config_checkout_step_1
field_name: field_config_checkout_step_1
entity_type: config_pages
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: ee306d19-af7d-47a1-b7db-eced2b1f0d13
langcode: en
status: true
dependencies:
module:
- config_pages
id: config_pages.field_config_checkout_step_2
field_name: field_config_checkout_step_2
entity_type: config_pages
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading

0 comments on commit 833606d

Please sign in to comment.