Skip to content

Commit

Permalink
Merge branch 'production' of github.com:interflux-electronics/interfl…
Browse files Browse the repository at this point in the history
…ux-admin-ember-frontend into feature/visitors
  • Loading branch information
janwerkhoven committed Feb 10, 2024
2 parents 0bc5d8e + 241b9cb commit 721d3ac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/company.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default class CompanyModel extends Model {
@attr('boolean') isHeadquarter;
@attr('boolean') shownOnMainWebsite;
@attr('boolean') shownOnGroupWebsite;
@attr('boolean') shownOnIcsfWebsite;
@attr('string') coreActivity;
@attr('string') history;
@attr('number') rankOnGroupWebsite;
Expand Down
3 changes: 2 additions & 1 deletion app/pods/secure/companies/company/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export default class CompanyController extends Controller {
}
this.company.setProperties({
shownOnMainWebsite: false,
shownOnGroupWebsite: false
shownOnGroupWebsite: false,
shownOnIcsfWebsite: false
});
this.company.save();
}
Expand Down
9 changes: 9 additions & 0 deletions app/pods/secure/companies/company/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@
@attribute='shownOnGroupWebsite'
@layout='horizontal'
/>

<Field::Boolean::Pills
@label='Shown on jetfluxer.com?'
@legend='Select "yes" if this company is an approved ICSF supplier.'
@record={{company}}
@attribute='shownOnIcsfWebsite'
@layout='horizontal'
/>

{{/if}}

{{#if company.public}}
Expand Down

0 comments on commit 721d3ac

Please sign in to comment.