{% extends template('page', 'Combodo\\iTop\\Portal\\Brick\\AbstractBrick') %}

{% block pPageBodyClass %}{{ parent() }} page_browse_brick page_browse_brick_as_{{ sBrowseMode }}{% endblock %}

{% block pPageReadyScripts %}
    {{ parent() }}
    {% include template('tagset_clic_handler_js') %}
{% endblock %}


{% block pMainHeaderTitle %}
	{{ oBrick.GetTitle()|dict_s }}
{% endblock %}

{% block pMainHeaderActions %}
	{% if aBrowseButtons|length > 1 %}
		<div class="btn-group {#btn-group-sm#} btn_group_explicit">
			{% for sBrowseButton in aBrowseButtons %}
			<a href="{{ app.url_generator.generate('p_browse_brick_mode', {'sBrickId': sBrickId, 'sBrowseMode': sBrowseButton}) }}" class="btn btn-default {% if sBrowseMode == sBrowseButton %}active{% endif %}">{{ ('Brick:Portal:Browse:Mode:'~sBrowseButton|capitalize)|dict_s }}</a>
			{% endfor %}
		</div>
	{% endif %}
{% endblock %}

{% block pMainContentHolder%}
	{% if iItemsCount > 0 or sSearchValue is not null %}
		<div class="panel panel-default">
			{% block bBrowseMainContent %}
			{% endblock %}
		</div>
	{% else %}
		<div class="panel panel-default">
			<div class="panel-body">
				<h3 class="text-center">{{ 'Brick:Portal:Browse:Filter:NoData'|dict_s }}</h3>
			</div>
		</div>
	{% endif %}
{% endblock %}
