1
0
Fork 0
miniflux/template/html/import.html

46 lines
1.5 KiB
HTML
Raw Normal View History

{{ define "title"}}{{ t "page.import.title" }}{{ end }}
2017-11-20 00:10:04 -05:00
{{ define "content"}}
<section class="page-header">
<h1>{{ t "page.import.title" }}</h1>
2017-11-20 00:10:04 -05:00
<ul>
<li>
<a href="{{ route "feeds" }}">{{ t "menu.feeds" }}</a>
2017-11-20 00:10:04 -05:00
</li>
<li>
<a href="{{ route "addSubscription" }}">{{ t "menu.add_feed" }}</a>
2017-11-20 00:10:04 -05:00
</li>
<li>
<a href="{{ route "export" }}">{{ t "menu.export" }}</a>
2017-11-20 00:10:04 -05:00
</li>
</ul>
</section>
2019-08-16 01:08:24 -04:00
{{ if .errorMessage }}
<div class="alert alert-error">{{ t .errorMessage }}</div>
{{ end }}
2017-11-20 00:10:04 -05: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 00:10:04 -05: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 00:10:04 -05:00
</div>
</form>
2019-08-16 01:08:24 -04:00
<hr>
2019-08-15 03:48:07 -04: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 01:08:24 -04:00
<input type="url" name="url" id="form-url" required>
2019-08-15 03:48:07 -04: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 00:10:04 -05:00
{{ end }}