miniflux/template/html/import.html

36 lines
1.2 KiB
HTML
Raw Normal View History

{{ define "title"}}{{ t "page.import.title" }}{{ end }}
2017-11-20 06:10:04 +01:00
{{ define "content"}}
<section class="page-header">
<h1>{{ t "page.import.title" }}</h1>
2020-01-02 22:03:34 +01:00
{{ template "feed_menu" }}
2017-11-20 06:10:04 +01:00
</section>
2019-08-16 07:08:24 +02:00
{{ if .errorMessage }}
<div class="alert alert-error">{{ t .errorMessage }}</div>
{{ end }}
2017-11-20 06:10:04 +01:00
<form action="{{ route "uploadOPML" }}" method="post" enctype="multipart/form-data">
<input type="hidden" name="csrf" value="{{ .csrf }}">
<label for="form-file">{{ t "form.import.label.file" }}</label>
2017-11-20 06:10:04 +01:00
<input type="file" name="file" id="form-file">
<div class="buttons">
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.import" }}</button>
2017-11-20 06:10:04 +01:00
</div>
</form>
2019-08-16 07:08:24 +02:00
<hr>
2019-08-15 09:48:07 +02:00
<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>
2019-08-16 07:08:24 +02:00
<input type="url" name="url" id="form-url" required>
2019-08-15 09:48:07 +02:00
<div class="buttons">
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.import" }}</button>
</div>
</form>
2017-11-20 06:10:04 +01:00
{{ end }}