]> git.parisson.com Git - teleforma.git/commitdiff
display full address on profile page : https://trackers.pilotsystems.net/probarreau...
authorYoan Le Clanche <yoan@ellington.pilotsystems.net>
Thu, 25 Apr 2019 13:30:48 +0000 (15:30 +0200)
committerYoan Le Clanche <yoan@ellington.pilotsystems.net>
Thu, 25 Apr 2019 13:30:48 +0000 (15:30 +0200)
teleforma/templates/telemeta/profile_detail.html

index a395b885f3aeea0908dc7011e849ce19f6dfc5ac..f099163bf0361bf41b7562e453127ac29a600d31 100644 (file)
@@ -74,7 +74,7 @@
 
       {% if user.is_staff or user.is_superuser or usr == user %}
       <dt>{% trans "Email" %}</dt><dd>{{ usr.email }}</dd>
-      <dt>{% trans "Address" %}</dt><dd>{{ usr.profile.get.address }} {{ usr.profile.get.postal_code }} {{ usr.profile.get.city }}</dd>
+          <dt>{% trans "Address" %}</dt><dd>{{ usr.profile.get.address }}{% if usr.profile.get.address_detail %}, {% endif %}</span>{{ usr.profile.get.address_detail }}{% if usr.profile.get.postal_code or usr.profile.get.city %}, {% endif %}{{ usr.profile.get.postal_code }} {{ usr.profile.get.city }}</dd>
       <dt>{% trans "Telephone" %}</dt><dd>{{ usr.profile.get.telephone }}</dd>
       <dt>{% trans "WiFi login" %}</dt><dd>{{ usr.profile.get.wifi_login }}</dd>
       <dt>{% trans "WiFi password" %}</dt><dd>{{ usr.profile.get.wifi_pass }}</dd>