{% extends "base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}


{% block head-open-graph %}
  <meta property="og:title" content="New request made" />
  <meta property="og:type" content="website" />
  <meta property="og:url" content="{{ request.build_absolute_uri }}" />
  <meta property="og:image" content="https://maidstone-hackspace.org.uk/static/images/android-chrome-192x192.png" />
{% endblock head-open-graph %}

{% block content %}
  <h2>{{requests.title}}</h2>

  <div class="row">
    <div class="col">
      {{requests.description}}
    </div>
  </div>

  {% for comment in requests_comments %}
  <b>{{ comment.user }}</b>
  <p>{{ comment.comment }}</p>
  {% endfor %}

  {% if form %}
    <form method="POST" action="{% url 'requests_detail_form' request_detail.id %}" class="requests_detail_form">
      {% csrf_token %}
      {% include "partials/form.html" %}
    </form>
  {% endif %}

{% endblock content %}

