Jacek Kowalski
4 hours ago 6b9278a5d57091fce636dbb640b380cfb990db6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% extends 'base.html.twig' %}
 
{% block title %}{{ book.title }}{% endblock %}
 
{% block content %}
    <div class="page_content">
        <h2>{{ book.title }}</h2>
 
        <div class="columns">
            <div class="column col-7 col-md-12">
                {% embed 'book/_details.html.twig' %}
                    {% block footer %}
                        {% if book.textLabels is not empty %}
                            <div class="panel-footer">
                                {% for label in book.textLabels %}<span
                                        class="label label-rounded">{{ label.label }}</span> {% endfor %}
                            </div>
                        {% endif %}
                    {% endblock %}
                {% endembed %}
 
                {{ include('book/_history.html.twig', {history: book.borrowHistory}) }}
            </div>
            <div class="column col-5 col-md-12">
                <div class="panel book-panel">
                    <div class="panel-header">
                        <div class="panel-title h5"><span
                                    class="label label-rounded label-warning">{% trans %}ousted_status{% endtrans %}</span>
                        </div>
                    </div>
                    <div class="panel-body">
                        <p>{% trans %}ousted_reason_header{% endtrans %}: {{ book.reason }}</p>
                    </div>
                    <div class="panel-footer">
                        <form action="{{ path('ousted_restore', {id: book.id}) }}" method="post">
                            <input type="hidden" name="_token" value="{{ csrf_token('restore' ~ book.id) }}"/>
                            <button class="btn">{% trans %}ousted_action_restore{% endtrans %}</button>
                        </form>
                    </div>
                </div>
 
                {% if book.cover %}
                    <div class="panel book-panel">
                        <div class="panel-header">
                            <div class="panel-title h5">{% trans %}cover_section_title{% endtrans %}</div>
                        </div>
                        <div class="panel-body">
                            {{ include('book/_cover.html.twig') }}
                        </div>
                    </div>
                {% endif %}
            </div>
        </div>
    </div>
{% endblock %}