Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #113 from WeTransfer/gh-xxx-new-variant
Browse files Browse the repository at this point in the history
Added pricing block variant back with extra options
  • Loading branch information
dsnipe authored Jun 15, 2017
2 parents 5535406 + 68c7d2d commit ededca5
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions web/static/js/variantpayloadoptions.es6
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const options = {
}
},
signupFormPlanSelectorType: {
disabled: true,
disabled: false,
name: 'Singup Form - Plan Selector Type',
key: 'signupFormPlanSelectorType',
defaults: {
Expand All @@ -245,18 +245,40 @@ const options = {
type: {
type: 'string',
required: true
},
yearlyCopy: {
type:'string',
required: true,
requiredWhen: {
field: 'type',
value: ['priceByMonth']
}
},
monthlyCopy: {
type:'string',
required: true,
requiredWhen: {
field: 'type',
value: ['priceByMonth']
}
}
},
properties: [
{
key: 'type',
type: 'string',
title: 'Type*',
enum: [
{label: 'default', value: 'original'},
{label: 'full width', value: 'fullWidthBlock'},
{label: 'larger yearly block', value: 'largeYearlyBlock'}
{label: 'price by month', value: 'priceByMonth'}
]
},
{
key: 'yearlyCopy',
title: 'Yearly tagline*'
},
{
key: 'monthlyCopy',
title: 'Monthly tagline*'
}
]
}
Expand Down Expand Up @@ -403,4 +425,4 @@ const options = {

export default {
web: options
};
};

0 comments on commit ededca5

Please sign in to comment.