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

Allow Interflux Admins to approve companies as ICSF suppliers #41

Merged
merged 2 commits into from
Jan 28, 2024
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/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
Loading