{% extends 'settings/index.html' %}

{% block header_text %}<h1><i class="fa-solid fa-trash-can"></i> Delete Repository</h1>{% endblock %}

{% block main %}
    {% include "settings/repositories/form.html" %}  
<div class="container">
      <p>Are you sure you want to <strong>delete</strong> the following repository?</p>
      <div class="repo-name"><i class="fa-solid fa-book"></i> {{ repository.name }}</div>
      <form method="post" style="margin-top:1.5rem;">
        <input type="hidden" name="name" value="{{ repository.name }}">
        <div class="actions">
          <button type="submit"><i class="fa-solid fa-trash"></i> Yes, delete</button>
          <button type="button" onclick="history.back()" class="cancel"><i class="fa-solid fa-arrow-left"></i> Cancel</button>
        </div>
      </form>
  </div>
{% endblock %}
