{# itop-portal-base/portal/src/views/bricks/object/mode_view.html.twig #}
{# Object brick view layout #}
{% extends 'itop-portal-base/portal/src/views/bricks/object/mode_create.html.twig' %}

{# This layout is exactly the same as the mode_create.html.twig, we duplicated it in case we need to have some subtle differences #}

{% block pFormButtons %}
	{% if form.buttons is defined and form.buttons.links is defined %}
		<div class="form_btn_transitions">
			{% for aLink in form.buttons.links %}
				<a class="btn btn-primary" href="{{ aLink.url }}">{{ aLink.label }}</a>
			{% endfor %}
		</div>
	{% endif %}
	{% if tIsModal is defined and tIsModal == true %}
		<div class="form_btn_regular">
			<input class="btn btn-primary form_btn_cancel" type="button" value="{{ 'Portal:Button:Close'|dict_s }}" data-dismiss="modal">
		</div>
	{% endif %}
{% endblock %}