miniflux/template/html/choose_subscription.html

43 lines
1.6 KiB
HTML
Raw Normal View History

{{ define "title"}}{{ t "page.add_feed.title" }}{{ end }}
2017-11-20 06:10:04 +01:00
{{ define "content"}}
<section class="page-header">
<h1>{{ t "page.add_feed.title" }}</h1>
2017-11-20 06:10:04 +01:00
<ul>
<li>
<a href="{{ route "feeds" }}">{{ t "menu.feeds" }}</a>
2017-11-20 06:10:04 +01:00
</li>
<li>
<a href="{{ route "export" }}">{{ t "menu.export" }}</a>
2017-11-20 06:10:04 +01:00
</li>
<li>
<a href="{{ route "import" }}">{{ t "menu.import" }}</a>
2017-11-20 06:10:04 +01:00
</li>
</ul>
</section>
<form action="{{ route "chooseSubscription" }}" method="POST">
<input type="hidden" name="csrf" value="{{ .csrf }}">
<input type="hidden" name="category_id" value="{{ .form.CategoryID }}">
<input type="hidden" name="user_agent" value="{{ .form.UserAgent }}">
<input type="hidden" name="feed_username" value="{{ .form.Username }}">
<input type="hidden" name="feed_password" value="{{ .form.Password }}">
{{ if .form.Crawler }}
<input type="hidden" name="crawler" value="1">
{{ end }}
2017-11-20 06:10:04 +01:00
<h3>{{ t "page.add_feed.choose_feed" }}</h3>
2017-11-20 06:10:04 +01:00
{{ range .subscriptions }}
<div class="radio-group">
<label title="{{ .URL }}"><input type="radio" name="url" value="{{ .URL }}"> {{ .Title }}</label> ({{ .Type }})
<small title="Type = {{ .Type }}"><a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .URL }}</a></small>
</div>
{{ end }}
<div class="buttons">
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.loading" }}">{{ t "action.subscribe" }}</button>
2017-11-20 06:10:04 +01:00
</div>
</form>
{{ end }}