<!-- Delete repo. -->
{% import 'macros.html' as macros %}
{% call macros.panel(title=_("Delete repository"), class='danger') %}
<div class="panel-body">
  <span class="help-block">
     {% trans %}Removing the repository will permanantly delete all related resources including files, history, status etc.{% endtrans %}<br/>
     <b>{% trans %}Removed repository cannot be restored!{% endtrans %}</b>
  </span>
  <div>
     <button type="button" class="btn btn-danger" data-toggle="modal" data-target="#delete-repo-modal">{% trans %}Delete{% endtrans %}</button>
  </div>
</div>
{% endcall %}

<!-- Delete Modal -->
<form data-validate action="/delete/{{ repo_path }}/" method="post" role="form" class="clearfix" >
<input type="hidden" name="action" value="delete" />
<input type="hidden" id="repo_name" name="repo_name" value="{{ repo_name }}" />
{% call macros.modal_dialog('delete-repo-modal', _('Confirmation required'), _('Confirm'), class="danger") %}
<p class="lead text-danger">
  {% trans %}You are going to remove <b>{{ repo_name }}</b>. Removed repository CANNOT be restored! Are you ABSOLUTELY sure?{% endtrans %}
</p>
<p>
  {% trans %}This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention.{% endtrans %}<br/>
  {% trans %}Please type <b>{{ repo_name }}</b> to proceed or close this modal to cancel{% endtrans %}
</p>
<div class="form-group">
   <input class="form-control" id="confirm_name" name="confirm_name" type="text" value="" data-rule-equalto="#repo_name" required >
</div>
{% endcall %}
</form>