hub.sr.ht/hubsrht/templates/resource-delete.html

46 lines
1.4 KiB
HTML

{% extends "project-base.html" %}
{% block title %}
<title>Delete {{resource_type}} - {{project.name}}</title>
{% endblock %}
{% block content %}
<form class="container" method="POST">
{{csrf_token()}}
<div class="row">
<div class="col-md-12">
<p>
Do you really want to remove the
<a href="{{resource.url()}}">{{resource.name}}</a>
{{resource_type}} from the {{project.name}} project?
</p>
<div class="event-list">
<div class="event">
<div class="form-check form-group">
<label class="form-check-label">
<input
class="form-check-input"
type="checkbox"
name="delete-remote">
Permanently <strong>delete</strong> the {{resource_type}} as well
&mdash;
<span class="text-danger">
if checked, this operation cannot be undone.
</span>
</label>
</div>
</div>
</div>
<div class="form-group">
<button type="submit" class="btn btn-danger">
Remove this {{resource_type}} {{icon('caret-right')}}
</button>
<a
href="{{url_for("projects.summary_GET",
owner=owner.canonical_name, project_name=project.name)}}"
class="btn btn-default"
>Cancel {{icon('caret-right')}}</a>
</div>
</div>
</div>
</form>
{% endblock %}