Skip to content

Commit

Permalink
feat: allow admin to add logo to invoice (#5980)
Browse files Browse the repository at this point in the history
  • Loading branch information
maze-runnar authored Dec 11, 2020
1 parent 0d5a933 commit 0513cec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default ModelBase.extend({
adminBillingZip : attr('string'),
adminBillingAdditionalInfo : attr('string'),
adminBillingPaypalEmail : attr('string'),
adminBillingLogo : attr('string'),
isGoogleRecaptchaEnabled : attr('boolean', { defaultValue: false }),
googleRecaptchaSite : attr('string'),
googleRecaptchaSecret : attr('string')
Expand Down
11 changes: 11 additions & 0 deletions app/templates/components/forms/admin/settings/billing.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,16 @@
<label for="adminBillingAdditionalInfo">{{t 'Additional Info'}}</label>
<Input @type="text" @id="adminBillingAdditionalInfo" @value={{this.model.adminBillingAdditionalInfo}} />
</div>
<div class="field">
<label for="event_invoice_logo">{{t 'Organisation Logo'}}</label>
<Widgets::Forms::ImageUpload
@imageUrl={{this.model.adminBillingLogo}}
@label={{t "Logo"}}
@id="event_invoice_logo"
@icon="image"
@hint={{t "Select Organisation Logo"}}
@imageText={{t "Logo"}}
@maxSizeInKb={{1000}} />
</div>
<button class="ui teal button" type="submit" name="submit">{{t 'Save'}}</button>
</form>

1 comment on commit 0513cec

@vercel
Copy link

@vercel vercel bot commented on 0513cec Dec 11, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.