112
<div>
{% if not (
is_granted(constant('AppBundle\\Entity\\Role::ADMIN'))
and
is_granted(constant('AppBundle\\Entity\\Role::TEHNIC'))
and
is_granted(constant('AppBundle\\Entity\\Role::PROGER'))) %}
<a href="{{ url('site_tickets_add') }}" class="btn
btn-success" title="Добавить нвую заявку">
<span class="glyphicon glyphicon-plus" aria-
hidden="true"></span>
</a>
{% endif %}
<a href="javascript:void(0);" class="btn btn-info"
title="Открыть поиск" onclick="swithfilter();">
<span class="glyphicon glyphicon-search" aria-
hidden="true"></span>
</a>
<a href="javascript:window.location.reload();"
class="btn btn-default" title="Обновить">
<span class="glyphicon glyphicon-refresh" aria-
hidden="true"></span>
</a>
</div>
{% set form = view.form %}
<div id="formfilter" {% if app.request.get('form_filter')
is empty %}style="display: none;" {% endif %}>
{{ form_start(form, {'attr': {'class': 'form-full'}}) }}
<table class="table table-striped">
<tr>
<td>
{{ form_label(form.id, null, {'label_attr':
{'class': 'control-label'}}) }}
{{ form_widget(form.id, {'attr': {'class':
'form-control', 'autofocus': true}}) }}
</td>
<td>
{{ form_label(form.status, null,
{'label_attr': {'class': 'control-label'}}) }}
{{ form_widget(form.status, {'attr':
{'class': 'form-control', 'autofocus': true}}) }}
</td>
{% if
is_granted(constant('AppBundle\\Entity\\Role::TEHNIC'))
and
is_granted(constant('AppBundle\\Entity\\Role::PROGER')) %}
<td>
{{ form_label(form.my, null, {'label_attr':
{'class': 'control-label'}}) }}
{{ form_widget(form.my, {'attr': {'class':
'form-control', 'autofocus': true}}) }}
</td>