fix: clean up package action templates (merge, delete, disown)

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-17 11:53:05 -08:00
parent d94e2dc9d7
commit c07c40bcb6
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
5 changed files with 65 additions and 16 deletions

View file

@ -27,6 +27,15 @@
{% endfor %}
</ul>
<p>
{{
"This action will close any pending package requests "
"related to it. If %sComments%s are omitted, a closure "
"comment will be autogenerated."
| tr | format("<em>", "</em>") | safe
}}
</p>
<p>
{{
"Deletion of a package is permanent. "
@ -36,6 +45,15 @@
<form action="/pkgbase/{{ pkgbase.Name }}/delete" method="post">
<fieldset>
<p>
<label for="id_comments">{{ "Comments" | tr }}:</label>
<textarea id="id_comments" name="comments"
rows="5" cols="50"
placeholder="Related package request closure comments..."
></textarea>
</p>
<p>
<label class="confirmation">
<input type="checkbox" name="confirm" value="1" />
@ -43,12 +61,6 @@
</label>
</p>
<p>
<label for="id_comments">{{ "Comments" | tr }}:</label>
<textarea id="id_comments" name="comments"
rows="5" cols="50"></textarea>
</p>
<p>
<input class="button"
type="submit"

View file

@ -27,6 +27,15 @@
{% endfor %}
</ul>
<p>
{{
"This action will close any pending package requests "
"related to it. If %sComments%s are omitted, a closure "
"comment will be autogenerated."
| tr | format("<em>", "</em>") | safe
}}
</p>
<p>
{{
"By selecting the checkbox, you confirm that you want to "
@ -38,8 +47,11 @@
<fieldset>
<p>
<label for="id_comments">{{ "Comments" | tr }}:</label>
<textarea id="id_comments" name="comments"
rows="5" cols="50"></textarea>
<textarea id="id_comments"
name="comments"
rows="5" cols="50"
placeholder="Related package request closure comments..."
></textarea>
</p>
<p>