Added PGP pubkey download button
This commit is contained in:
parent
4d56287583
commit
9c9af58eb5
5 changed files with 123 additions and 30 deletions
|
@ -1,5 +1,12 @@
|
|||
<h2>Update your preferences</h2>
|
||||
|
||||
{{#if hasPubkey}}
|
||||
<form method="post" id="download-pubkey" action="/subscription/publickey">
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
<input type="hidden" name="cid" value="{{cid}}">
|
||||
</form>
|
||||
{{/if}}
|
||||
|
||||
<form method="post" action="/subscription/{{lcid}}/manage">
|
||||
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
|
@ -42,7 +49,7 @@
|
|||
|
||||
{{#if typeGpg}}
|
||||
<textarea class="form-control gpg-text" rows="3" name="{{column}}">{{value}}</textarea>
|
||||
<span class="help-block">Insert your GPG public key here to encrypt messages sent to your address</span>
|
||||
<span class="help-block">(optional) Insert your GPG public key here to encrypt messages sent to your address</span>
|
||||
{{/if}}
|
||||
|
||||
{{#if typeDateUs}}
|
||||
|
@ -104,6 +111,11 @@
|
|||
{{/each}}
|
||||
|
||||
<div class="form-group">
|
||||
<div class="pull-right">
|
||||
{{#if hasPubkey}}
|
||||
<button type="submit" class="btn btn-default" form="download-pubkey"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span> Download our public GPG key</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update Profile</button> or <a href="/subscription/{{lcid}}/unsubscribe/{{cid}}">Unsubscribe</a>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
{{#if hasPubkey}}
|
||||
<form method="post" id="download-pubkey" action="/subscription/publickey">
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
<input type="hidden" name="cid" value="{{cid}}">
|
||||
</form>
|
||||
{{/if}}
|
||||
|
||||
<form method="post" action="/subscription/{{cid}}/subscribe">
|
||||
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
|
@ -39,7 +46,7 @@
|
|||
|
||||
{{#if typeGpg}}
|
||||
<textarea class="form-control gpg-text" rows="3" name="{{column}}">{{value}}</textarea>
|
||||
<span class="help-block">Insert your GPG public key here to encrypt messages sent to your address</span>
|
||||
<span class="help-block">(optional) Insert your GPG public key here to encrypt messages sent to your address</span>
|
||||
{{/if}}
|
||||
|
||||
{{#if typeDateUs}}
|
||||
|
@ -101,6 +108,11 @@
|
|||
{{/each}}
|
||||
|
||||
<div class="form-group">
|
||||
<div class="pull-right">
|
||||
{{#if hasPubkey}}
|
||||
<button type="submit" class="btn btn-default" form="download-pubkey"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span> Download our public GPG key</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Subscribe to list</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue