2018-09-21 21:53:29 -04:00
|
|
|
{{ define "title"}}{{ t "page.import.title" }}{{ end }}
|
2017-11-20 00:10:04 -05:00
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="page-header">
|
2018-09-21 21:53:29 -04:00
|
|
|
<h1>{{ t "page.import.title" }}</h1>
|
2020-01-02 16:03:34 -05:00
|
|
|
{{ template "feed_menu" }}
|
2017-11-20 00:10:04 -05:00
|
|
|
</section>
|
|
|
|
|
2019-08-16 01:08:24 -04:00
|
|
|
{{ if .errorMessage }}
|
2023-10-21 22:50:29 -04:00
|
|
|
<div class="alert alert-error">{{ .errorMessage }}</div>
|
2019-08-16 01:08:24 -04:00
|
|
|
{{ 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 }}">
|
|
|
|
|
2018-09-21 21:53:29 -04:00
|
|
|
<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">
|
2018-09-21 21:53:29 -04:00
|
|
|
<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 }}
|