You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.2 KiB
Twig
63 lines
2.2 KiB
Twig
{% extends 'layouts/app.twig' %}
|
|
{% import 'macros/base.twig' as m %}
|
|
|
|
{% block title %}
|
|
{{ __('faq.faq') }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<h1>
|
|
{{ block('title') }}
|
|
|
|
{%- if has_permission_to('faq.edit') -%}
|
|
{{ m.button(m.icon('plus-lg'), url('admin/faq'), 'secondary') }}
|
|
{%- endif %}
|
|
</h1>
|
|
|
|
{% include 'layouts/parts/messages.twig' %}
|
|
|
|
<div class="row">
|
|
{% block text %}
|
|
{% if text|default(null) %}
|
|
<div class="col-md-12">
|
|
{{ text|markdown }}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block row %}
|
|
{% for item in items %}
|
|
<div class="col-md-12 faq">
|
|
<span id="faq-{{ item.id }}" class="ref-id"></span>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3>
|
|
{{ item.question }}
|
|
<small class="text-muted">
|
|
<a class="ref-link" href="#faq-{{ item.id }}">{{ m.icon('link') }}</a>
|
|
</small>
|
|
</h3>
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
{{ item.text|markdown }}
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
{{ m.icon('clock') }} {{ item.updated_at.format(__('Y-m-d H:i')) }}
|
|
|
|
{% if has_permission_to('faq.edit') %}
|
|
<span class="pull-right">
|
|
{{ m.button(m.icon('pencil-square'), url('admin/faq/' ~ item.id), null, 'sm') }}
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|