{# itop-portal-base/portal/templates/bricks/object/layout.html.twig #}
{# Object brick base layout #}
{% extends 'itop-portal-base/portal/templates/bricks/layout.html.twig' %}

{% block pPageBodyClass %}{{ parent() }} page_object_brick page_object_brick_as_{{ sMode }}{% endblock %}

{% block pMainHeader %}
	<div class="col-xs-12" id="main-header-title">
		{% if form.title is defined %}
			<h2>
				{% if form.title_clipboard_text is defined %}
					<i class="url-to-clipboard url-to-clipboard-icon fas fa-link fa-xs" 
					   data-clipboard-text="{{ form.title_clipboard_text }}" 
					   data-toggle="tooltip" 
					   title="{{ 'Brick:Portal:Object:Copy:Tooltip' | dict_s }}"
					   data-copied-title="{{ 'Brick:Portal:Object:Copy:CopiedTooltip' | dict_s }}"
					   data-copied-icon="fas fa-check">
					</i>
				{% endif %}
				{{ form.title|raw }}
			</h2>
		{% endif %}
	</div>
{% endblock %}

{% block pMainContentHolder%}
	<div class="panel panel-default">
		<div class="panel-body">
			{% include 'itop-portal-base/portal/templates/bricks/object/mode_' ~ sMode ~ '.html.twig' %}
		</div>
	</div>
{% endblock %}