Skip to content

Commit

Permalink
Updated field and test
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Nov 18, 2024
1 parent c9d991f commit 5b3a421
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,6 @@ third_party_settings:
open: false
description: ''
required_fields: true
group_web_coupon_codes:
children: { }
label: 'Web Coupon Codes'
region: content
parent_name: group_prices
weight: 65
format_type: details
format_settings:
classes: ''
show_empty_fields: false
id: ''
open: false
description: ''
required_fields: true
group_publication_status:
children:
- sup_book_print_desk_copies
Expand Down Expand Up @@ -118,6 +104,7 @@ third_party_settings:
required_fields: true
group_prices:
children:
- sup_book_price_data
- sup_book_no_cart
- sup_book_sales_rank
- group_web_coupon_codes
Expand Down Expand Up @@ -406,7 +393,7 @@ content:
third_party_settings: { }
sup_book_no_cart:
type: boolean_checkbox
weight: 56
weight: 32
region: content
settings:
display_label: true
Expand All @@ -433,14 +420,17 @@ content:
placeholder: ''
third_party_settings: { }
sup_book_price_data:
type: entity_reference_autocomplete
type: inline_entity_form_simple
weight: 31
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
form_mode: default
override_labels: false
label_singular: ''
label_plural: ''
collapsible: false
collapsed: false
revision: false
third_party_settings: { }
sup_book_print_desk_copies:
type: boolean_checkbox
Expand Down Expand Up @@ -497,7 +487,7 @@ content:
third_party_settings: { }
sup_book_sales_rank:
type: number
weight: 63
weight: 33
region: content
settings:
placeholder: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,116 +20,101 @@ mode: default
content:
sup_cloth_discount:
type: number_decimal
label: hidden
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
weight: 3
weight: 1
region: content
sup_cloth_price:
type: number_decimal
label: hidden
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
weight: 2
weight: 0
region: content
sup_cloth_sale:
type: number_decimal
label: hidden
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
weight: 4
weight: 2
region: content
sup_coming_soon:
type: boolean
label: hidden
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 10
weight: 8
region: content
sup_intl_cart:
type: boolean
label: hidden
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 6
weight: 4
region: content
sup_paper_discount:
type: number_decimal
label: hidden
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
weight: 8
weight: 6
region: content
sup_paper_price:
type: number_decimal
label: hidden
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
weight: 7
weight: 5
region: content
sup_paper_sale:
type: number_decimal
label: hidden
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
weight: 9
weight: 7
region: content
sup_preorder:
type: boolean
label: hidden
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 5
region: content
title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
work_id:
type: number_integer
label: hidden
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
weight: 1
weight: 3
region: content
hidden:
search_api_excerpt: true
title: true
work_id: true
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ id: press.prices.sup_cloth_discount
field_name: sup_cloth_discount
entity_type: press
bundle: prices
label: 'Cloth Sale Discount'
label: 'Cloth Sale Percent'
description: ''
required: false
translatable: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ id: press.prices.sup_paper_discount
field_name: sup_paper_discount
entity_type: press
bundle: prices
label: 'Paper Sale Discount'
label: 'Paper Sale Percent'
description: ''
required: false
translatable: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ langcode: en
status: true
dependencies: { }
id: award
label: Award
label: Awards
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct() {
*/
public function testBookContentType(AcceptanceTester $I) {
// content type exists
$I->logInWithRole('site_manager');
$I->logInWithRole('administrator');
$I->amOnPage('/node/add/sup_book');
$I->see('Create Book');
// check the fields
Expand Down

0 comments on commit 5b3a421

Please sign in to comment.