diff --git a/contracts/models.py b/contracts/models.py index fea9d9e556f2fd998d77bfa44eaa90e22da3692b..380e736bac72e7ed2769ab7b4d727f13ac4c0802 100644 --- a/contracts/models.py +++ b/contracts/models.py @@ -222,7 +222,7 @@ class Signee( "address_zip", "address_country", ): - if getattr(self, field): + if getattr(self, field) not in ("", None): return True return False @@ -247,7 +247,10 @@ class Signee( } ) - if self.entity_type != self.EntityTypes.OTHER: + if self.entity_type not in ( + self.EntityTypes.OTHER, + self.EntityTypes.NATURAL_PERSON, + ): for field in ( "address_street_with_number", "address_district", diff --git a/contracts/templates/contracts/view_contract.html b/contracts/templates/contracts/view_contract.html index 5dd22bbece2f734c4a4c7da89c1c76df4a16965b..284c72b4d8247474e72b52391043f12d3def2c07 100644 --- a/contracts/templates/contracts/view_contract.html +++ b/contracts/templates/contracts/view_contract.html @@ -448,7 +448,7 @@ {% if not signature.signee.entity_has_public_address %} {% if user.can_view_confidential %} <div class="flex items-center mb-3"> - {% include "contracts/includes/private_info_icon.html" %}<span class="text-red-600">Máš pĹ™Ăstup k celĂ© adrese.</span> + {% include "contracts/includes/private_info_icon.html" %}<span class="text-red-600">Máš pĹ™Ăstup k soukromĂ˝m informacĂm.</span> </div> {% else %} <span class="text-gray-500">(zobrazujeme pouze obec)</span> @@ -467,12 +467,12 @@ {% endif %} {% if signature.signee.ico_number %} - <br><br> + <br> <strong>IÄŚO</strong>: {{ signature.signee.ico_number }} {% endif %} {% if user.can_view_confidential and signature.signee.date_of_birth %} - <br><br> + <br> <strong>Datum narozenĂ</strong>: {{ signature.signee.date_of_birth }} {% endif %} diff --git a/contracts/templates/contracts/view_signee.html b/contracts/templates/contracts/view_signee.html index 51272f08af786b4f7c529a2122e17a4d55a5374a..299466039fddb5a87e36793de6f6d97ddf66f573 100644 --- a/contracts/templates/contracts/view_signee.html +++ b/contracts/templates/contracts/view_signee.html @@ -49,12 +49,12 @@ {% endif %} {% if signee.ico_number %} - <br><br> + <br> <strong>IÄŚO</strong>: {{ signee.ico_number }} {% endif %} {% if user.can_view_confidential and signee.date_of_birth %} - <br><br> + <br> <strong>Datum narozenĂ</strong>: {{ signee.date_of_birth }} {% endif %}