add password request on upload page
This commit is contained in:
parent
ce7fabacfa
commit
8ae2b5003c
|
@ -21,3 +21,7 @@
|
||||||
.alert.danger .alert-title {
|
.alert.danger .alert-title {
|
||||||
background: #602020;
|
background: #602020;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.alert.blue .alert-title {
|
||||||
|
background: #203050;
|
||||||
|
}
|
|
@ -114,6 +114,24 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
|
||||||
|
{%- if let Some(pass) = conf.files.upload_pass -%}
|
||||||
|
<div class="alert blue">
|
||||||
|
<h1 class="alert-title">
|
||||||
|
Upload password
|
||||||
|
</h1>
|
||||||
|
<div class="alert-text">
|
||||||
|
<p>This instance requires a password to upload a file.</p>
|
||||||
|
<p>
|
||||||
|
<label>
|
||||||
|
Password:
|
||||||
|
<input type="password" name="instance-pass">
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<input type="file" name="file" id="bfile-formupload-file" style="display: none" />
|
<input type="file" name="file" id="bfile-formupload-file" style="display: none" />
|
||||||
<label for="bfile-formupload-file">
|
<label for="bfile-formupload-file">
|
||||||
|
|
Loading…
Reference in New Issue