Skip to content

Commit

Permalink
patron: fix display of optional address fields
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr authored and Pascal Repond committed Oct 26, 2023
1 parent beef90a commit 3877db0
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ <h1>
</dd>
</ng-container>
</ng-container>
<dt class="col-1 text-right"><i class="fa fa-home"></i></dt>
<dt class="col-3" translate>Address</dt>
<dd class="col-8">
{{ patron.street }}<br/>
{{ patron.postal_code }} {{ patron.city }}<br/>
{{ 'country_' + patron.country | translate }}
</dd>
<ng-container *ngIf="patron.street || patron.postal_code || patron.city || patron.country">
<dt class="col-1 text-right"><i class="fa fa-home"></i></dt>
<dt class="col-3" translate>Address</dt>
<dd class="col-8">
<ng-container *ngIf="patron.street">{{ patron.street }}<br/></ng-container>
<ng-container *ngIf="patron.postal_code || patron.city">{{ patron.postal_code }} {{ patron.city }}<br/></ng-container>
<ng-container *ngIf="patron.country">{{ 'country_' + patron.country | translate }}</ng-container>
</dd>
</ng-container>
</dl>
</div>
</div>
Expand Down

0 comments on commit 3877db0

Please sign in to comment.