{# @var \Pimcore\Templating\GlobalVariables app #}
{# @var \Pimcore\Model\Document buttonTarget #}
{# @var string buttonText #}
{% if not editmode %}
{% do elements_head_title().setTitle( 'demi.error.offer-unpublished-headline'|trans, true ) %}
{% endif %}
{% set layout = '@ElementsDemiFrontend/Layout/layout.html.twig' %}
{% if type == 'event' %}
{% set layout = '@ElementsDemiFrontend/Layout/project-layout.html.twig' %}
{% elseif type == 'infrastructure' %}
{% set layout = '@ElementsDemiFrontend/Layout/project-layout.html.twig' %}
{% endif %}
{% extends layout %}
{% block content %}
<main id="main" role="main">
<div class="container mt-5">
<div class="row">
<div class="col-xl-9 col-12">
<div class="row mb-5">
<div class="col">
<h1 class="text-primary">{{ 'demi.error.offer-unpublished-headline'|trans }}</h1>
<div class="alert alert-danger">
<div>
{{ (type ? 'demi.error.' ~ type ~ '-unpublished-text' : 'demi.error.offer-unpublished-text')|trans }}
</div>
{% if buttonTarget is defined and buttonTarget is not null %}
<a href="{{ buttonTarget.getFullPath() }}" class="btn btn-primary mt-3">{{ buttonText is defined ? buttonText : 'demi.error.offer-unpublished-button'|trans }}</a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</main>
{% endblock %}