upload: fix template, show errors again

This commit is contained in:
Vincent Breitmoser 2019-11-02 12:26:27 +01:00
parent c57c00b390
commit ccb3a9fcbc
No known key found for this signature in database
GPG Key ID: 7BD18320DEADFA11
1 changed files with 6 additions and 0 deletions

View File

@ -1,7 +1,12 @@
{{#> layout }}
{{#with page}}
<div class="ui">
<center><h2>{{ text "Upload your key" }}</h2></center>
{{#with error }}
<p><strong>Error</strong>: {{ this }}</p>
{{/with}}
<form action="/upload/submit" method="POST" enctype="multipart/form-data">
<div class="upload">
<input type="file" id="keytext" name="keytext" autofocus class="fileUpload" placeholder="{{ text "Your public key" }}"/>
@ -17,4 +22,5 @@
<script src="/assets/js/upload.js" async></script>
</div>
{{/with}}
{{/layout}}