Skip to content
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

fix: make billing info field checkbox #4651

Merged
merged 1 commit into from
Jul 28, 2020
Merged
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
67 changes: 39 additions & 28 deletions app/templates/components/forms/wizard/basic-details-step.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,18 @@
</label>
<Textarea
@id="cheque_details"
@value={{this.data.event.chequeDetails}} /> </div>
@value={{this.data.event.chequeDetails}}
/>
</div>
{{/if}}

<div class="field payments">
<div class="ui checkbox">
<Input
@type="checkbox"
@id="payment_by_bank"
@checked={{this.data.event.canPayByBank}} />
@type="checkbox"
@id="payment_by_bank"
@checked={{this.data.event.canPayByBank}}
/>
<label for="payment_by_bank">
{{t 'YES, accept payment by Telegraphic Transfer(TT) / Bank Transfer '}}
</label>
Expand All @@ -493,16 +496,18 @@
{{t 'Enter your bank details and other required details/instructions to ticket buyers'}}
</label>
<Textarea
@id="bank_details"
@value={{this.data.event.bankDetails}} /> </div>
@id="bank_details"
@value={{this.data.event.bankDetails}}
/>
</div>
{{/if}}

<div class="field payments">
<div class="ui checkbox">
<Input
@type="checkbox"
@id="payment_onsite"
@checked={{this.data.event.canPayOnsite}} />
@type="checkbox"
@id="payment_onsite"
@checked={{this.data.event.canPayOnsite}} />
<label for="payment_onsite">
{{t 'YES, accept payment at the event (on site) '}}
</label>
Expand All @@ -515,8 +520,10 @@
{{t 'Enter your payment instructions and other required details/instructions to ticket buyers'}}
</label>
<Textarea
@id="on_site_details"
@value={{this.data.event.onsiteDetails}} /> </div>
@id="on_site_details"
@value={{this.data.event.onsiteDetails}}
/>
</div>
{{/if}}

<div class="ui section divider"></div>
Expand Down Expand Up @@ -561,11 +568,12 @@
{{/if}}
<div class="ui hidden divider"></div>
<div class="field">
<div class="ui radio checkbox">
<div class="ui checkbox">
Comment on lines -564 to +571
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main change is here, rest is formatting.

<Input
@type="checkbox"
@id="billing_info_mandatory"
@checked={{this.data.event.isBillingInfoMandatory}} />
@type="checkbox"
@id="billing_info_mandatory"
@checked={{this.data.event.isBillingInfoMandatory}}
/>
<label for="billing_info">
<strong>{{t 'Billing Info'}}:</strong>
{{t 'Require Billing Information from Ticket Buyer'}}
Expand Down Expand Up @@ -643,8 +651,9 @@
<div class="field">
<label for="code_of_conduct">{{t 'Code of Conduct'}}</label>
<Widgets::Forms::RichTextEditor
@textareaId="code_of_conduct"
@value={{this.data.event.codeOfConduct}} />
@textareaId="code_of_conduct"
@value={{this.data.event.codeOfConduct}}
/>
</div>
{{/if}}
<div class="ui section divider"></div>
Expand All @@ -670,15 +679,16 @@
</div>
</label>
<UiDropdown
@class="search selection"
@selected={{this.data.event.copyright.licence}}
@onChange={{action "updateCopyright"}}
@forceSelection={{false}}
@fullTextSearch={{true}}>
@class="search selection"
@selected={{this.data.event.copyright.licence}}
@onChange={{action "updateCopyright"}}
@forceSelection={{false}}
@fullTextSearch={{true}}>
<Input
@type="hidden"
@id="license"
@value={{this.data.event.copyright.licence}} />
@type="hidden"
@id="license"
@value={{this.data.event.copyright.licence}}
/>
<i class="dropdown icon"></i>
<div class="default text">{{t 'Select License'}}</div>
<div class="menu">
Expand Down Expand Up @@ -710,6 +720,7 @@
</form>

<Modals::TaxInfoModal
@isOpen={{this.taxModalIsOpen}}
@tax={{this.data.event.tax}}
@hasTaxInfo={{this.data.event.isTaxEnabled}} />
@isOpen={{this.taxModalIsOpen}}
@tax={{this.data.event.tax}}
@hasTaxInfo={{this.data.event.isTaxEnabled}}
/>