{% extends 'extras/report.html' %}
{% load buttons %}
{% load perms %}

{% block content-wrapper %}
  <div class="row p-3">
    <div class="col col-md-12"{% if not job.completed %} hx-get="{% url 'extras:report_result' job_pk=job.pk %}" hx-trigger="load delay:0.5s, every 5s"{% endif %}>
      {% include 'extras/htmx/report_result.html' %}
    </div>
  </div>
{% endblock %}

{% block controls %}
  <div class="controls">
    <div class="control-group">
      {% if request.user|can_delete:job %}
        {% delete_button job %}
      {% endif %}
    </div>
  </div>
{% endblock controls %}