{# vim: set ts=2 et sts=2 sw=2: #}
{% extends "questions/base.html" %}
{# L10n: {t} is the title of the question. #}
{% set title = _('Delete Question | {t} | Firefox Support Forum')|f(t=question.title) %}
{% set crumbs = [(url('questions.questions'), _('Forum')),
                 (url('questions.answers', question.id), question.title),
                 (None, _('Delete question'))] %}

{% block content %}
  <article class="main">
    <div class="to-delete">
      <h1>{{ _('Are you sure you want to delete this question?') }}</h1>
      <label>{{ _('Title') }}</label>
      <div class="content">{{ question.title }}</div>
      <label>{{ _('Creator') }}</label>
      <div>{{ question.creator }}</div>
      <label>{{ _('Date') }}</label>
      <div>{{ datetimeformat(question.created, format='longdatetime') }}</div>
      <label>{{ _('Number of Answers') }}</label>
      <div>{{ question.num_answers }}</div>

      <form action="{{ url('questions.delete', question.id) }}" method="post">
        {{ csrf() }}
        <p>
          {{ _('You are about to permanently delete this question. <strong>This cannot be undone!</strong> Are you sure you want to continue?')|safe }}
        </p>
        <input type="submit" class="btn" value="{{ _('Delete') }}" />
        <a href="{{ url('questions.answers', question.id) }}">{{ _('Cancel') }}</a>
      </form>
    </div>
  </article>
{% endblock %}

{% block side %}
{% endblock %}
