Skip to content
Snippets Groups Projects
Commit 0597ebd8 authored by Konstantinos Platis's avatar Konstantinos Platis
Browse files

Changed design of FAQ List pattern

parent 813ce112
No related branches found
No related tags found
1 merge request!4Release candidate v2.2 to master
...@@ -3,21 +3,26 @@ ...@@ -3,21 +3,26 @@
* FAQ List Display Pattern Twig. * FAQ List Display Pattern Twig.
#} #}
{# Content #} {% set nhash = random() %}
<div class="faq-list-content">
{# Title field #}
{% if title | render %} <div class="panel panel-default">
<div class="faq-list-content-title clearfix"> <div class="panel-heading">
<h2> <h4 class="panel-title">
{{ title }} <a
</h2> data-parent="#{{ "accordion"~ nhash }}"
<span class="pull-right collapseManager">+</span> data-toggle="collapse"
</div> class="collapsed"
{% endif %} aria-expanded="false"
{# Body field #} href={{ "#collapse"~ nhash }} >{{ title }}
{% if body | render %} </a>
<div class="faq-list-content-body hidden clearfix"> </h4>
{{ body }} </div>
</div> <div class="panel-collapse collapse"
{% endif %} aria-expanded="false"
</div> id={{ "collapse"~ nhash }}>
<div class="panel-body">
{{ body }}
</div>
</div>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment