Revision 36d49217 cloudcmsfaq/templates/cloudcmsfaq/archive.html
b/cloudcmsfaq/templates/cloudcmsfaq/archive.html | ||
---|---|---|
1 | 1 |
{% load applicationcontent_tags pagination_tags i18n cloudcms_tags %} |
2 | 2 |
|
3 | 3 |
<div class="faq"> |
4 |
{% for service in services %} |
|
5 |
<div class="faq-category"> |
|
6 |
<h2>{{ service.translation.title|upper }}</h2> |
|
7 |
<ul> |
|
8 |
<li class="category"> |
|
9 |
{% for category, questions in service|get_service_faqs %} |
|
10 |
<h3>{{ category.translation.title|upper }}</h3> |
|
11 |
<ul> |
|
12 |
{% for q in questions %} |
|
13 |
<li {% if q == question %}class="current"{% endif %}> |
|
14 |
<a href="{{ q.get_absolute_url }}">{{ q.title }}</a> |
|
15 |
</li> |
|
16 |
{% endfor %} |
|
17 |
<br /> |
|
18 |
</ul> |
|
19 |
{% endfor %} |
|
20 |
</li> |
|
21 |
</ul> |
|
4 |
|
|
5 |
{% for service in services %} |
|
6 |
|
|
7 |
<div class="two-cols clearfix unequal-dotted"> |
|
8 |
<div class="rt"> |
|
9 |
<img src="{{ service.image_faq.get_absolute_url }}" alt="{{ service.image_faq.title }}" /> |
|
10 |
</div> |
|
11 |
<div class="lt"> |
|
12 |
<div class="faq-category {{ service.class_name }}"> |
|
13 |
<h2>{{ service.translation.title_faq|upper }}</h2> |
|
14 |
{% for category, questions in service|get_service_faqs %} |
|
15 |
<h3>{{ category.translation.title }}</h3> |
|
16 |
<ul> |
|
17 |
{% for q in questions %} |
|
18 |
<li {% if q == question %}class="current"{% endif %}> |
|
19 |
<a href="{{ q.get_absolute_url }}">{{ q.title }}</a> |
|
20 |
</li> |
|
21 |
{% endfor %} |
|
22 |
<br /> |
|
23 |
</ul> |
|
24 |
{% endfor %} |
|
25 |
</div> |
|
26 |
</div> |
|
27 |
|
|
28 |
|
|
22 | 29 |
</div> |
30 |
|
|
23 | 31 |
{% endfor %} |
24 | 32 |
</div> |
Also available in: Unified diff