Skip to content

Commit

Permalink
pages to show building and property addresses from database
Browse files Browse the repository at this point in the history
  • Loading branch information
rifatrakib committed Oct 13, 2022
1 parent e5f1272 commit 0804632
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions realestate/templates/realestate/building-addresses.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends 'base.html' %}
{% block content %}
{% for address in building_addresses %}
<div>
<h3>{{ address.gatenavn }} - {{ address.building_number }}</h3>
<p>{{ address.address_id }}, {{ address.city_name }}-{{ address.post_nr }}</p>
</div>
{% endfor %}
<div>
{% for page in total_pages %}
<span><a href="{% url 'realestate:property_address_page' page %}">{{ page }}</a></span>
{% endfor %}
</div>
{% endblock %}
14 changes: 14 additions & 0 deletions realestate/templates/realestate/properties-addresses.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends 'base.html' %}
{% block content %}
{% for address in property_addresses %}
<div>
<h3>{{ address.bruksnavn }} - {{ address.property_number }}</h3>
<p>{{ address.address_id }}, {{ address.city_name }}-{{ address.post_nr }}</p>
</div>
{% endfor %}
<div>
{% for page in total_pages %}
<span><a href="{% url 'realestate:property_address_page' page %}">{{ page }}</a></span>
{% endfor %}
</div>
{% endblock %}

0 comments on commit 0804632

Please sign in to comment.