Skip to content

Commit

Permalink
fix: Choosing Ticket holder same as ticket buyer not makes the text l…
Browse files Browse the repository at this point in the history
…ight gray (#4008)

* Update order-form.hbs

* updating message to 15 minutes

* Update index.js

* Update index.js

Co-authored-by: Kush Trivedi <44091822+kushthedude@users.noreply.github.com>
  • Loading branch information
maze-runnar and kushthedude authored Feb 7, 2020
1 parent 3a8d169 commit 6af54b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/controllers/public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default Controller.extend({
order.set('attendees', attendees);
await order.save()
.then(order => {
this.notify.success(this.l10n.t('Order details saved. Please fill further details within 10 minutes.'));
this.notify.success(this.l10n.t(`Order details saved. Please fill further details within ${this.settings.orderExpiryTime} minutes.`));
this.transitionToRoute('orders.new', order.identifier);
})
.catch(async e => {
Expand Down
14 changes: 8 additions & 6 deletions app/templates/components/forms/orders/order-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,21 @@
</div>
{{#each allFields.attendee as |field|}}
{{#if field.isIncluded}}
<div class="field {{if
(and sameAsBuyer (eq index 0) (or (eq field.fieldIdentifier 'firstname') (eq field.fieldIdentifier 'lastname') (eq field.fieldIdentifier 'email')))
'disabled'}}">
<div class="field">
<label class="{{if field.isRequired 'required'}}" for="name">{{field.name}}</label>
{{#if (is-input-field field.type) }}
{{#if field.isLongText}}
{{widgets/forms/rich-text-editor value=(mut (get holder field.fieldIdentifier))
name=(if field.isRequired (concat field.fieldIdentifier '_required_' index) (concat field.fieldIdentifier '_' index))}}

{{else}}
{{input type=field.type value=(mut (get holder field.fieldIdentifier))
name=(if field.isRequired (concat field.fieldIdentifier '_required_' index) (concat field.fieldIdentifier '_' index))}}

{{#if (and sameAsBuyer (eq index 0) (or (eq field.fieldIdentifier 'firstname') (eq field.fieldIdentifier 'lastname') (eq field.fieldIdentifier 'email')))}}
{{input type=field.type value=(mut (get holder field.fieldIdentifier))
name=(if field.isRequired (concat field.fieldIdentifier '_required_' index) (concat field.fieldIdentifier '_' index)) readonly=""}}
{{else}}
{{input type=field.type value=(mut (get holder field.fieldIdentifier))
name=(if field.isRequired (concat field.fieldIdentifier '_required_' index) (concat field.fieldIdentifier '_' index))}}
{{/if}}
{{/if}}
{{else if (eq field.fieldIdentifier 'gender')}}
{{#ui-dropdown class='search selection' value=(mut (get holder field.fieldIdentifier)) onChange=(action (mut holder.gender)) as |execute mapper|}}
Expand Down

0 comments on commit 6af54b2

Please sign in to comment.