Statistics
| Branch: | Tag: | Revision:

root / cloudcmsfaq / templates / cloudcmsfaq / detail.html @ 31847c18

History | View | Annotate | Download (2.6 kB)

1
{% load applicationcontent_tags pagination_tags i18n cloudcms_tags %}
2

    
3
<div class="two-cols lt-small clearfix details faq">
4
        <div class="rt">
5
                <div class="question details {{ question.service.class_name }}">
6
                    <h2>{{ question.title|upper }}</h2>
7
                    <div class="content">
8
                        {% for content in question.content.main %}
9
                            {{ content.render }}
10
                        {% endfor %}
11
                    </div>
12
                    <div class="clearfix next-prev">
13
                    {% if question.get_next %}
14
                            <a href="{{ question.get_next.get_absolute_url }}" class="next">Next ></a>         
15
                {% endif %} 
16
                    {% if question.get_previous %}
17
                            <a href="{{ question.get_previous.get_absolute_url }}" class="prev">< Previous</a>
18
                    {% else %}
19
                            <a href="{{ question.back_url }}">{% trans "&lt; Back to FAQ" %}</a>
20
                    {% endif%}
21
                            
22
                    </div>
23
                </div>
24
                 
25
                <!--div class="extra-menu">
26
                        {% for service in services %}
27
                                {% if service == question.service %}
28
                                <div class="faq-category {{ service.class_name }}">                                 
29
                                         {% for category, questions in service|get_service_faqs %}
30
                                                 {% if category == question.category %}
31
                                                   <h3>{{ service.translation.title_faq|upper }} > {{ category.translation.title }}</h3>
32
                                      <ul>
33
                                        {% for q in questions %}
34
                                          <li>
35
                                             {% if q != question %}<a href="{{ q.get_absolute_url }}">{% endif %}{{ q.title }}{% if q != question %}</a>{% endif %}
36
                                          </li>
37
                                          {% endfor %}
38
                                          <br />
39
                                      </ul>
40
                                   {% endif %}
41
                                 {% endfor %}
42
                                </div>
43
                                {% endif %}
44
                        {% endfor %}
45
                </div-->
46
        </div>
47
         
48
        <div class="lt">
49
                {% for service in services %}
50
                        {% if service.get_first_question %}
51
                        <div class="faq-category {{ service.class_name }}">
52
                                <h2>
53
                                        {% if service != question.service %}
54
                                                <a href="{{ service.get_first_question.get_absolute_url }}">
55
                                        {% endif %}
56
                                                {{ service.translation.title_faq|upper }}
57
                                        {% if service != question.service %}
58
                                                </a>
59
                                        {% endif %}
60
                                </h2>
61
                                 
62
                                 {% for category, questions in service|get_service_faqs %}
63
        
64
                                         {% if service == question.service %}
65
                      <h3>{{ category.translation.title }}</h3>
66
                      <ul>
67
                        {% for q in questions %}
68
                          <li {% if  = question %}class="current"{% endif %}>
69
                             <a href="{{ q.get_absolute_url }}">{{ q.title }}</a>
70
                          </li>
71
                          {% endfor %}
72
                      </ul>
73
                           {% endif %}
74
                         {% endfor %}
75
                        </div>
76
                        {% endif %}
77
                {% endfor %}
78
        </div>
79
</div>        
80

    
81
 
82

    
83