Skip to content

Commit

Permalink
All outputs TC add owner tenancy type. (#1832)
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Lovett <[email protected]>
  • Loading branch information
doug-lovett authored Apr 17, 2024
1 parent 17c088d commit 934397a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 31 deletions.
56 changes: 36 additions & 20 deletions mhr_api/report-templates/template-parts/registration/owners.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,24 @@
{% if ownerGroups is defined %}
{% for group in ownerGroups %}
{% if ownerGroups|length > 1 %}
<div class="mt-3">
<span class="section-sub-title">Group {{ group.groupId }}:&nbsp;</span>
{% if group.interest is defined and group.interest != '' %}
<span class="section-data">Interest {{ group.interest|capitalize }}
{% if group.interestNumerator is defined and group.interestDenominator is defined %}
{{ group.interestNumerator }}/{{ group.interestDenominator }}
{% endif %}
</span>
{% endif %}
</div>
<table class="section-data section-data-table-new mt-3" role="presentation">
<tr class="no-page-break">
<td class="col-45">
<span class="section-sub-title">Group {{ group.groupId }}:&nbsp;</span>
{% if group.interest is defined and group.interest != '' %}
<span class="section-data">Interest {{ group.interest|capitalize }}
{% if group.interestNumerator is defined and group.interestDenominator is defined %}
{{ group.interestNumerator }}/{{ group.interestDenominator }}
{% endif %}
</span>
{% endif %}
</td>
<td class="col-55">
<span class="section-sub-title">Group Tenancy Type:&nbsp;</span>
{% if group.owners|length > 1 %}Joint Tenancy{% else %}N/A{% endif %}
</td>
</tr>
</table>
{% endif %}
<table class="section-data section-data-table-new mt-4" role="presentation">
{% for party in group.owners %}
Expand Down Expand Up @@ -99,16 +107,24 @@
{% for group in addOwnerGroups %}
{% if group.type == 'COMMON' or (group.interestNumerator is defined and group.interestDenominator is defined and
group.interestNumerator > 0 and group.interestDenominator > 0) %}
<div class="mt-3">
<span class="section-sub-title">Group {{ group.groupId }}:&nbsp;</span>
{% if group.interest is defined and group.interest != '' %}
<span class="section-data">Interest {{ group.interest|capitalize }}
{% if group.interestNumerator is defined and group.interestDenominator is defined %}
{{ group.interestNumerator }}/{{ group.interestDenominator }}
{% endif %}
</span>
{% endif %}
</div>
<table class="section-data section-data-table-new mt-3" role="presentation">
<tr class="no-page-break">
<td class="col-45">
<span class="section-sub-title">Group {{ group.groupId }}:&nbsp;</span>
{% if group.interest is defined and group.interest != '' %}
<span class="section-data">Interest {{ group.interest|capitalize }}
{% if group.interestNumerator is defined and group.interestDenominator is defined %}
{{ group.interestNumerator }}/{{ group.interestDenominator }}
{% endif %}
</span>
{% endif %}
</td>
<td class="col-55">
<span class="section-sub-title">Group Tenancy Type:&nbsp;</span>
{% if group.owners|length > 1 %}Joint Tenancy{% else %}N/A{% endif %}
</td>
</tr>
</table>
{% endif %}
<table class="section-data section-data-table-new mt-4" role="presentation">
{% for party in group.owners %}
Expand Down
29 changes: 18 additions & 11 deletions mhr_api/report-templates/template-parts/search-result/owners.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,24 @@
{% endif %}
{% for group in detail.ownerGroups %}
{% if detail.ownerGroups|length > 1 %}
<div class="mt-3">
<span class="section-sub-title">Group {{ group.groupId }}:&nbsp;</span>
<span class="section-data">Interest
{% if group.interest is defined and group.interest != '' %}
{{ group.interest|capitalize }}
{% endif %}
{% if group.interestNumerator is defined and group.interestDenominator is defined %}
{{ group.interestNumerator }}/{{ group.interestDenominator }}
{% endif %}
</span>
</div>
<table class="section-data section-data-table-new mt-3" role="presentation">
<tr class="no-page-break">
<td class="col-45">
<span class="section-sub-title">Group {{ group.groupId }}:&nbsp;</span>
{% if group.interest is defined and group.interest != '' %}
<span class="section-data">Interest {{ group.interest|capitalize }}
{% if group.interestNumerator is defined and group.interestDenominator is defined %}
{{ group.interestNumerator }}/{{ group.interestDenominator }}
{% endif %}
</span>
{% endif %}
</td>
<td class="col-55">
<span class="section-sub-title">Group Tenancy Type:&nbsp;</span>
{% if group.owners|length > 1 %}Joint Tenancy{% else %}N/A{% endif %}
</td>
</tr>
</table>
{% endif %}
<table class="section-data section-data-table-new mt-4" role="presentation">
{% for party in group.owners %}
Expand Down
2 changes: 2 additions & 0 deletions mhr_api/report-templates/template-parts/v2/style.html
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
td.col-50 { width: 50%; }
td.col-40 { width: 40%; }
td.col-60 { width: 60%; }
td.col-45 { width: 45%; }
td.col-55 { width: 55%; }

.director-former-name {
font-family: 'BC Sans', sans-serif !important;
Expand Down

0 comments on commit 934397a

Please sign in to comment.