-
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 #165 from etalab/features/entities-in-summary
Displays entities in summaries
- Loading branch information
Showing
3 changed files
with
66 additions
and
63 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
63 changes: 63 additions & 0 deletions
63
app/views/authorization_requests/shared/_organization_and_applicant.html.erb
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,63 @@ | ||
<div class="fr-container-fluid"> | ||
<div class="fr-grid-row"> | ||
<div class="fr-col-12 fr-col-lg-6 fr-pr-4v fr-pb-4v"> | ||
<div class="fr-basic-card"> | ||
<div class="contact-card__kind"> | ||
Organisation | ||
</div> | ||
|
||
<div class="contact-card__full_name"> | ||
<%= @authorization_request.organization.raison_sociale %> | ||
</div> | ||
|
||
<% | ||
%w[ | ||
siret | ||
address | ||
code_naf_with_libelle | ||
].each do |organization_attribute| | ||
%> | ||
<% next unless @authorization_request.organization.public_send(organization_attribute).present? %> | ||
|
||
<div class="contact-card__attribute"> | ||
<div class="contact-card__attribute-label"> | ||
<%= Organization.human_attribute_name(organization_attribute) %> | ||
</div> | ||
<div class="contact-card__attribute-value"> | ||
<%= @authorization_request.organization.public_send(organization_attribute) %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<div class="fr-col-12 fr-col-lg-6 fr-pr-4v fr-pb-4v"> | ||
<div class="fr-basic-card"> | ||
<div class="contact-card__kind"> | ||
Demandeur | ||
</div> | ||
|
||
<div class="contact-card__full_name"> | ||
<%= @authorization_request.applicant.full_name %> | ||
</div> | ||
|
||
<% | ||
%w[ | ||
job_title | ||
phone_number | ||
].each do |user_attribute| | ||
%> | ||
<div class="contact-card__attribute"> | ||
<div class="contact-card__attribute-label"> | ||
<%= User.human_attribute_name(user_attribute) %> | ||
</div> | ||
<div class="contact-card__attribute-value"> | ||
<%= @authorization_request.applicant.public_send(user_attribute) %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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