dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

pgp.gohtml (2174B)


      1 {{ define "navbar" }} {{ end }}
      2 
      3 {{ define "content" }}
      4 
      5 <div class="container">
      6     <div class="row">
      7         <div class="col-8 offset-2 col-md-8 offset-md-2 col-sm-8 col-lg-6 offset-lg-3 col-xl-6 offset-xl-3">
      8             {{ if .Data.Error }}
      9                 <div class="alert alert-danger">{{ .Data.Error }}</div>
     10             {{ end }}
     11             <div class="card mb-3">
     12                 <div class="card-header">
     13                     {{ t "PGP public key (step 1)" . }}
     14                 </div>
     15                 <div class="card-body">
     16                     <form method="post" novalidate>
     17                         <input type="hidden" name="csrf" value="{{ .CSRF }}" />
     18                         <input type="hidden" name="formName" value="pgp_step1" />
     19                         <div class="form-group">
     20             <!--                <label for="pgp_public_key">{{ t "PGP public key" . }}</label>-->
     21                             <textarea name="pgp_public_key" id="pgp_public_key" rows="10" class="form-control mono{{ if .Data.ErrorPGPPublicKey }} is-invalid{{ end }}"{{ if .Data.ErrorPGPPublicKey }} autofocus{{ end }}>{{ .Data.PGPPublicKey }}</textarea>
     22                             {{ if .Data.ErrorPGPPublicKey }}
     23                                 <div class="invalid-feedback">{{ .Data.ErrorPGPPublicKey }}</div>
     24                             {{ end }}
     25                         </div>
     26                         <div class="form-group">
     27                             <input id="gpg_mode_decrypt" name="gpg_mode" value="0" type="radio" checked /><label for="gpg_mode_decrypt">Decrypt code</label>
     28                             <input id="gpg_mode_sign" name="gpg_mode" value="1" type="radio" /><label for="gpg_mode_sign">Sign message</label>
     29                         </div>
     30                         <div class="form-group">
     31                             <input type="submit" value="{{ t "Use PGP public key" . }}" class="btn btn-primary" />
     32                             <a href="/settings/pgp" class="btn btn-secondary">{{ t "Cancel" . }}</a>
     33                         </div>
     34                     </form>
     35                 </div>
     36             </div>
     37         </div>
     38     </div>
     39 </div>
     40 
     41 {{ end }}