statement_create.html 2.12 KB
Newer Older
1
{% extends "process/nm2-base.html" %}
2
{% load nm %}
3
{% load i18n %}
4
5
6

{% block content %}

7
<h1>{% trans "Add" %} {{type_desc}}</h1>
8
9
10
11

{% include explain_template with edit=True %}

{% if blurb %}
12
<p>{% blocktrans %}For your convenience, you can generate the signed statement
13
14
with this command, and this site will recognise the text and accept it without
the need for manual verification of its content:{% endblocktrans %}</p>
15
16
17
18
19

<pre>
(
  {% for line in blurb %}echo {{line}}
  {% endfor %}
20
) | gpg --clearsign --default-key {{user.fpr}}
21
22
23
</pre>
{% endif %}

24
<p>{% trans "Use the following command to create the signed statement:" %}<br>
Romain Porte's avatar
Romain Porte committed
25
    <code>gpg --clearsign --default-key {{visitor_fpr}}</code></p>
26
27
28

<p>{% trans "Handy command lines:" %}
<ul>
Romain Porte's avatar
Romain Porte committed
29
30
  <li><code>xclip -o | gpg --clearsign --default-key {{user.fpr}} | xclip</code></li>
  <li><code>xclip -selection clipboard -o | gpg --clearsign --default-key {{user.fpr}} | xclip -selection clipboard</code></li>
31
32
</ul>
</p>
33

34
35
36
<p>{% blocktrans %}It is a good idea to include some context information like
the date and nm.debian.org in the text, in case someone tries to reuse the
signed statement somewhere else.{% endblocktrans %}</p>
37

38
<p>{% blocktrans with fpr=user.fpr|fingerprint %}The signature will be verified using the key {{ fpr }}{% endblocktrans %}</p>
39

40
{% if requirement.type != "sc_dmup" and requirement.type != "approval" %}
Romain Porte's avatar
Romain Porte committed
41
<p>{% blocktrans with visitor=user.fullname%}The statement will be sent to <a href="https://lists.debian.org/debian-newmaint">debian-newmaint</a> as <code>{{visitor}}{% endblocktrans %}
42
    {% if "edit_email" in visit_perms %}
Romain Porte's avatar
Romain Porte committed
43
      <a href="{% url 'person:edit_email' key=user.lookup_key %}">&lt;{{user.email}}&gt;</a></code>.
44
    {% else %}
Romain Porte's avatar
Romain Porte committed
45
      &lt;{{user.email}}&gt;</code>.
46
    {% endif %}
47
48
49
</p>
{% endif %}

50
51
52
53
54
55
56
57
<form action="" method="post">{% csrf_token %}
  {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
  {% for field in form.visible_fields %}
  {{ field.label_tag }}<br>
  {{ field }}<br>
  {{ field.errors }}
  {% endfor %}        
  {{ form.non_field_errors }}
58
  <button class="btn btn-primary" type="submit">{% trans "Submit" %}</button>
59
60
61
</form>

{% endblock %}