mirror of
https://github.com/miniflux/v2.git
synced 2025-08-21 18:11:09 +00:00
Improve import form
This commit is contained in:
parent
d882bbca85
commit
77125f45cc
7 changed files with 33 additions and 22 deletions
|
@ -16,13 +16,13 @@
|
|||
</ul>
|
||||
</section>
|
||||
|
||||
{{ if .errorMessage }}
|
||||
<div class="alert alert-error">{{ t .errorMessage }}</div>
|
||||
{{ end }}
|
||||
|
||||
<form action="{{ route "uploadOPML" }}" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
||||
|
||||
{{ if .errorMessage }}
|
||||
<div class="alert alert-error">{{ t .errorMessage }}</div>
|
||||
{{ end }}
|
||||
|
||||
<label for="form-file">{{ t "form.import.label.file" }}</label>
|
||||
<input type="file" name="file" id="form-file">
|
||||
|
||||
|
@ -30,12 +30,12 @@
|
|||
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.import" }}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<hr>
|
||||
<form action="{{ route "fetchOPML" }}" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
||||
|
||||
<label for="form-url">{{ t "form.import.label.url" }}</label>
|
||||
<input type="url" name="url" id="form-url">
|
||||
<input type="url" name="url" id="form-url" required>
|
||||
|
||||
<div class="buttons">
|
||||
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.import" }}</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue