aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/import.html
diff options
context:
space:
mode:
Diffstat (limited to 'template/html/import.html')
-rw-r--r--template/html/import.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/template/html/import.html b/template/html/import.html
index 3a2b987..1245486 100644
--- a/template/html/import.html
+++ b/template/html/import.html
@@ -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>