{% 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 %}
|