~sircmpwn/builds.sr.ht

builds.sr.ht/buildsrht/templates/secret_delete.html -rw-r--r-- 1012 bytes
48fa5794Dhruvin Gandhi alpine: run setup-timezone conditionally 10 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{% extends "layout.html" %}
{% block content %}
<section class="row">
  <div class="col-md-12">
    <h2>
      Delete {{ secret.secret_type.pretty_name }}
      "{{ secret.name or secret.uuid }}"
    </h2>
    <dl>
      {% if secret.name %}
      <dt>UUID</dt>
      <dd>{{ secret.uuid }}</dd>
      {% endif %}
      <dt>Created</dt>
      <dd>{{ secret.created | date }}</dd>
      <dt>Last used</dt>
      <dd>{{ secret.updated | date }}</dd>
      {% if secret.secret_type.value == "plaintext_file" %}
      <dt>File</dt>
      <dd>{{ secret.path }} (<i>{{ '%03o' % secret.mode }}</i> mode)</dd>
      {% endif %}
    <dl>
    <form method="POST" action="/secret/delete">
      {{csrf_token()}}
      <input type="hidden" name="uuid" value="{{ secret.uuid }}"></input>
      <button type="submit" class="btn btn-danger">
        Permanently delete secret
      </button>
      <a href="/secrets" class="btn btn-default">
        Cancel, keep secret
      </a>
    </form>
  </div>
</section>
{% endblock %}