Skip to content

feat: add refund policy section in other-details step #5029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/models/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default class Event extends ModelBase.extend(CustomPrimaryKeyMixin, {
chequeDetails : attr('string'),
bankDetails : attr('string'),
onsiteDetails : attr('string'),
refundPolicy : attr('string'),


schedulePublishedOn: attr('moment', { defaultValue: () => moment(0) }),
Expand Down
14 changes: 14 additions & 0 deletions app/templates/components/forms/wizard/other-details-step.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@
@removeItem={{action "removeItem" socialLink "socialLinks"}} />
{{/each}}
</div>

<div class="ui section divider"></div>
<div class="field">
<div class="ui header">
<label for="refund_policy">{{t 'Refund Policy'}}</label>
<div class="sub header">
{{t 'Refunds to be processed by the organizer through payment provider. Refund payments to attendees cannot be made on the eventyay platform. Please go to your payment provider, make a refund and mark the ticket as refunded in the eventyay platform.'}}
</div>
</div>
<Widgets::Forms::RichTextEditor
@textareaId="refunduct"
@value={{this.data.event.refundPolicy}}
/>
</div>

<div class="ui section divider"></div>
<div class="grouped fields">
Expand Down
5 changes: 5 additions & 0 deletions app/templates/components/public/ticket-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@
<button id="total" class="ui primary small button no right margin" disabled={{this.shouldDisableOrderButton}} {{action this.placeOrder this.orderAmountInput}}>
{{t 'Order Now'}}
</button>
<div class="ui hidden divider"></div>
<UiPopup @html={{this.event.refundPolicy}} @class="ui mini labeled teal icon button" @position="right center">
<i class="info icon"></i>
{{t 'Refund Policy'}}
</UiPopup>
</div>
</div>
</div>
Expand Down