mirror of
https://github.com/miniflux/v2.git
synced 2024-09-09 04:39:38 +02:00
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
{{ define "title"}}{{ t "page.import.title" }}{{ end }}
|
|
|
|
{{ define "header"}}
|
|
<header class="page-header" aria-labelledby="page-header-title">
|
|
<h1 id="page-header-title">{{ t "page.import.title" }}</h1>
|
|
{{ template "feed_menu" }}
|
|
</header>
|
|
{{ end }}
|
|
|
|
{{ define "content"}}
|
|
{{ if .errorMessage }}
|
|
<div class="alert alert-error">{{ .errorMessage }}</div>
|
|
{{ end }}
|
|
|
|
<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>
|
|
<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>
|
|
</div>
|
|
</form>
|
|
<hr>
|
|
<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>
|
|
<input type="url" name="url" id="form-url" required>
|
|
|
|
<div class="buttons">
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.import" }}</button>
|
|
</div>
|
|
</form>
|
|
|
|
{{ end }}
|