2018-09-22 03:53:29 +02:00
|
|
|
{{ define "title"}}{{ t "page.import.title" }}{{ end }}
|
2017-11-20 06:10:04 +01:00
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="page-header">
|
2018-09-22 03:53:29 +02:00
|
|
|
<h1>{{ t "page.import.title" }}</h1>
|
2017-11-20 06:10:04 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
2018-09-22 03:53:29 +02:00
|
|
|
<a href="{{ route "feeds" }}">{{ t "menu.feeds" }}</a>
|
2017-11-20 06:10:04 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-09-22 03:53:29 +02:00
|
|
|
<a href="{{ route "addSubscription" }}">{{ t "menu.add_feed" }}</a>
|
2017-11-20 06:10:04 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-09-22 03:53:29 +02:00
|
|
|
<a href="{{ route "export" }}">{{ t "menu.export" }}</a>
|
2017-11-20 06:10:04 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</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 }}">
|
|
|
|
|
2018-09-22 03:53:29 +02:00
|
|
|
<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">
|
2018-09-22 03:53:29 +02:00
|
|
|
<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 }}
|