{% extends base %}
{% from 'macro.html' import breadcrumbs with context %}
{% block content %}
<div class="row">
    <div class="span12">
        {% set news_title = '{} — {}'.format(newsitem.name, newsitem.title or newsitem.name) %}
        {{- breadcrumbs([
            [url_for('admin_index.index'), _('Administration')],
            [url_for('admin_news.index'), _('News')],
            [url_for('admin_news.update', pk=newsitem.id), news_title]
        ]) }}
    <h1>{{ news_title }}</h1>

    <p>{{ _('Delete this news item?') }}</p>

    <form method="POST" enctype="multipart/form-data">
          <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
          <div class="control-group">
            <div class="controls">
                <input type="submit" class="btn btn-danger" value="{{ _('Delete') }}">
            </div>
        </div>
    </form>
        {{- breadcrumbs([
            [url_for('admin_index.index'), _('Administration')],
            [url_for('admin_news.index'), _('News')],
            [url_for('admin_news.update', pk=newsitem.id), news_title]
        ]) }}
    </div>
</div>
{% endblock %}
