-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #610 from lblod/feature/add-message-when-no-kbo-or…
…ganization Add message when kboOrganization is missing
- Loading branch information
Showing
2 changed files
with
89 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,86 @@ | ||
<DataCard> | ||
<:title>Bestuurseenheid</:title> | ||
<:card as |Card|> | ||
<Card.Columns> | ||
<:left as |Item|> | ||
<Item> | ||
<:label>Naam</:label> | ||
<:content> | ||
{{@kboOrganization.legalName}} | ||
</:content> | ||
</Item> | ||
<Item> | ||
<:label>Commerciële naam</:label> | ||
<:content> | ||
{{@kboOrganization.name}} | ||
</:content> | ||
</Item> | ||
{{#if @kboOrganization}} | ||
<DataCard> | ||
<:title>Bestuurseenheid</:title> | ||
<:card as |Card|> | ||
<Card.Columns> | ||
<:left as |Item|> | ||
<Item> | ||
<:label>Naam</:label> | ||
<:content> | ||
{{@kboOrganization.legalName}} | ||
</:content> | ||
</Item> | ||
<Item> | ||
<:label>Commerciële naam</:label> | ||
<:content> | ||
{{@kboOrganization.name}} | ||
</:content> | ||
</Item> | ||
|
||
<Item> | ||
<:label>Afgekorte naam</:label> | ||
<:content> | ||
{{@kboOrganization.alternativeName}} | ||
</:content> | ||
</Item> | ||
<Item> | ||
<:label>Afgekorte naam</:label> | ||
<:content> | ||
{{@kboOrganization.alternativeName}} | ||
</:content> | ||
</Item> | ||
|
||
<Item> | ||
<:label>Rechtsvorm</:label> | ||
<:content> | ||
{{@kboOrganization.rechtsvorm}} | ||
</:content> | ||
</Item> | ||
</:left> | ||
<:right as |Item|> | ||
<Item> | ||
<:label>Status</:label> | ||
<:content> | ||
<OrganizationStatus | ||
@id={{@kboOrganization.organizationStatus.id}} | ||
@label={{@kboOrganization.organizationStatus.label}} | ||
/> | ||
</:content> | ||
</Item> | ||
<Item> | ||
<:label>Rechtsvorm</:label> | ||
<:content> | ||
{{@kboOrganization.rechtsvorm}} | ||
</:content> | ||
</Item> | ||
</:left> | ||
<:right as |Item|> | ||
<Item> | ||
<:label>Status</:label> | ||
<:content> | ||
<OrganizationStatus | ||
@id={{@kboOrganization.organizationStatus.id}} | ||
@label={{@kboOrganization.organizationStatus.label}} | ||
/> | ||
</:content> | ||
</Item> | ||
|
||
<Item> | ||
<:label>Begindatum</:label> | ||
<:content> | ||
{{date-format @kboOrganization.startDate}} | ||
</:content> | ||
</Item> | ||
<Item> | ||
<:label>Begindatum</:label> | ||
<:content> | ||
{{date-format @kboOrganization.startDate}} | ||
</:content> | ||
</Item> | ||
|
||
<Item> | ||
<:label>Ondernemingsnummer</:label> | ||
<:content> | ||
{{#each @kboOrganization.identifiers as |identifier|}} | ||
<Item> | ||
<:label>Ondernemingsnummer</:label> | ||
<:content> | ||
{{#each @kboOrganization.identifiers as |identifier|}} | ||
{{kbo-format identifier.structuredIdentifier.localId}} | ||
{{/each}} | ||
</:content> | ||
</Item> | ||
<Item> | ||
<:label>Website KBO</:label> | ||
<:content> | ||
<AuLinkExternal | ||
href="https://kbopub.economie.fgov.be/kbopub/zoeknummerform.html?nummer={{@kboIdentifier.structuredIdentifier.localId}}" | ||
> | ||
Link to page (externe link) | ||
</AuLinkExternal> | ||
</:content> | ||
</Item> | ||
</:right> | ||
</Card.Columns> | ||
</:card> | ||
</DataCard> | ||
<Site::ContactDataCard | ||
@address={{@kboContact.contactAddress}} | ||
@primaryContact={{@kboContact}} | ||
> | ||
<:title> | ||
Maatschappelijke zetel | ||
</:title> | ||
</Site::ContactDataCard> | ||
{{/each}} | ||
</:content> | ||
</Item> | ||
<Item> | ||
<:label>Website KBO</:label> | ||
<:content> | ||
<AuLinkExternal | ||
href="https://kbopub.economie.fgov.be/kbopub/zoeknummerform.html?nummer={{@kboIdentifier.structuredIdentifier.localId}}" | ||
> | ||
Link to page (externe link) | ||
</AuLinkExternal> | ||
</:content> | ||
</Item> | ||
</:right> | ||
</Card.Columns> | ||
</:card> | ||
</DataCard> | ||
<Site::ContactDataCard | ||
@address={{@kboContact.contactAddress}} | ||
@primaryContact={{@kboContact}} | ||
> | ||
<:title> | ||
Maatschappelijke zetel | ||
</:title> | ||
</Site::ContactDataCard> | ||
{{else}} | ||
<AuAlert @skin="warning" @size="tiny"> | ||
<p>{{if @kboIdentifier this.noKboOrganizationMessage this.noKboMessage}}</p> | ||
</AuAlert> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
export default class DataCardComponent extends Component { | ||
noKboMessage = | ||
'Het KBO nummer is niet ingevuld. Hierdoor kunnen we de KBO gegevens niet tonen.'; | ||
noKboOrganizationMessage = | ||
'De KBO gegevens van deze organisatie kunnen we niet tonen omdat deze momenteel niet beschikbaar zijn in onze bron Organisatieregister Wegwijs.'; | ||
} |