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>
|
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 }}
|
2023-10-22 04:50:29 +02:00
|
|
|
<div class="alert alert-error">{{ .errorMessage }}</div>
|
2019-08-16 07:08:24 +02:00
|
|
|
{{ 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 }}
|