0.3.4 contacts page
This commit is contained in:
29
templates/pages/p_contacts.html
Normal file
29
templates/pages/p_contacts.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{% extends 'tb_base.html' %}
|
||||
{% block CONTENT %}
|
||||
|
||||
<div>
|
||||
Контакты
|
||||
<div>
|
||||
{% for office in offices %}
|
||||
<div>
|
||||
{% if office.picture %}
|
||||
<img src="{{ MEDIA_URL }}{{ office.picture }}" alt="{{ office.city }}" />
|
||||
{% endif %}
|
||||
<div>{{ office.city }}</div>
|
||||
<div>{{ office.address }}</div>
|
||||
Часы работы:
|
||||
<div>{{ office.work_time_from }} - {{ office.work_time_to }}</div>
|
||||
<div>{{ office.work_time }}</div>
|
||||
<div>
|
||||
{% for contact in office.contacts %}
|
||||
<div>
|
||||
{% if contact.contact_label %}{{ contact.contact_label }}: {% endif %}{{ contact.get_prefix_w_data }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user