mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Refactor to pass through whole postal address
It’s a bit cleaner to not be passing through multiple variables which are properties of the same object.
This commit is contained in:
@@ -299,8 +299,7 @@ def uploaded_letter_preview(service_id, file_id):
|
|||||||
message=error_message,
|
message=error_message,
|
||||||
error_code=error_shortcode,
|
error_code=error_shortcode,
|
||||||
form=form,
|
form=form,
|
||||||
recipient=postal_address.as_single_line,
|
postal_address=postal_address,
|
||||||
international=postal_address.international,
|
|
||||||
re_upload_form=re_upload_form
|
re_upload_form=re_upload_form
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -48,11 +48,11 @@
|
|||||||
{% if status == 'valid' %}
|
{% if status == 'valid' %}
|
||||||
<div class="js-stick-at-bottom-when-scrolling">
|
<div class="js-stick-at-bottom-when-scrolling">
|
||||||
<p class="top-gutter-0 bottom-gutter-1-2 send-recipient" title="{{ recipient }}">
|
<p class="top-gutter-0 bottom-gutter-1-2 send-recipient" title="{{ recipient }}">
|
||||||
Recipient: {{ recipient }}
|
Recipient: {{ postal_address.as_single_line }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% if current_service.live %}
|
{% if current_service.live %}
|
||||||
{% if international %}
|
{% if postal_address.international %}
|
||||||
<p class="govuk-body">
|
<p class="govuk-body">
|
||||||
Postage: international
|
Postage: international
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user