Skip to content

Commit

Permalink
DST-901 - Changing content in view a license from H3 to H2 and moving…
Browse files Browse the repository at this point in the history
… it below individual details. (#185)

* DST-901 - Changing content in view a license from H3 to H2 and moving it below individual details.

* DST-901 - Changing content in view a license from H3 to H2 and moving it below individual details.
  • Loading branch information
cencorroll authored Jan 29, 2025
1 parent 34bfced commit 6b5c356
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion django_app/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Meta:

@property
def _history_user(self):
# todo - remove when OneLogin is enabled
# todo - remove when OneLogin is enabled.
return None


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,64 +84,64 @@ <h3 class="govuk-heading-s"> Business {{ forloop.counter }}</h3>
{% endfor %}
{% endif %}
{% if licence.who_do_you_want_the_licence_to_cover == "myself" or licence.who_do_you_want_the_licence_to_cover == "individual" %}
<h3 class="govuk-heading-s">Their details</h3>
{% if licence.who_do_you_want_the_licence_to_cover == "individual" %}
{% for individual in licence.individuals.all %}
<h3 class="govuk-heading-s"> Individual {{ forloop.counter }}</h3>
<dl class="govuk-summary-list">
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key govuk-!-font-weight-regular">
Business name
Name
</dt>
<dd class="govuk-summary-list__value">
{{ business_individuals_work_for.name }}
{{ individual.full_name }}
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key govuk-!-font-weight-regular">
Address
Connection to the UK
</dt>
<dd class="govuk-summary-list__value">
{% include "apply_for_a_licence/partials/truncated_text.html" with text=business_individuals_work_for.readable_address|linebreaksbr %}
{{ individual.get_nationality_and_location_display }}
</dd>
</div>
</dl>
{% endif %}
{% for individual in licence.individuals.all %}
<h3 class="govuk-heading-s"> Individual {{ forloop.counter }}</h3>
<dl class="govuk-summary-list">
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key govuk-!-font-weight-regular">
Name
Location of individual
</dt>
<dd class="govuk-summary-list__value">
{{ individual.full_name }}
{{ individual.get_country_display }}
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key govuk-!-font-weight-regular">
Connection to the UK
Address
</dt>
<dd class="govuk-summary-list__value">
{{ individual.get_nationality_and_location_display }}
{% include "apply_for_a_licence/partials/truncated_text.html" with text=individual.readable_address|linebreaksbr %}
</dd>
</div>
</dl>
{% endfor %}
<h2 class="govuk-heading-m">Business the individuals work for</h2>
{% if licence.who_do_you_want_the_licence_to_cover == "individual" %}
<dl class="govuk-summary-list">
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key govuk-!-font-weight-regular">
Location of individual
Business name
</dt>
<dd class="govuk-summary-list__value">
{{ individual.get_country_display }}
{{ business_individuals_work_for.name }}
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key govuk-!-font-weight-regular">
Address
</dt>
<dd class="govuk-summary-list__value">
{% include "apply_for_a_licence/partials/truncated_text.html" with text=individual.readable_address|linebreaksbr %}
{% include "apply_for_a_licence/partials/truncated_text.html" with text=business_individuals_work_for.readable_address|linebreaksbr %}
</dd>
</div>
</dl>
{% endfor %}
{% endif %}
{% endif %}
<div class="action-wrapper">
<h2 class="govuk-heading-m">Previous licence</h2>
Expand Down

0 comments on commit 6b5c356

Please sign in to comment.