2017-11-20 00:10:04 -05:00
|
|
|
{{ define "title"}}{{ t "Choose a Subscription" }}{{ end }}
|
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="page-header">
|
|
|
|
<h1>{{ t "New Subscription" }}</h1>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "feeds" }}">{{ t "Feeds" }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "export" }}">{{ t "Export" }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "import" }}">{{ t "Import" }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<form action="{{ route "chooseSubscription" }}" method="POST">
|
|
|
|
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
2018-06-20 01:58:29 -04:00
|
|
|
<input type="hidden" name="category_id" value="{{ .form.CategoryID }}">
|
2018-06-30 21:05:51 -04:00
|
|
|
<input type="hidden" name="feed_username" value="{{ .form.Username }}">
|
|
|
|
<input type="hidden" name="feed_password" value="{{ .form.Password }}">
|
2018-06-20 01:58:29 -04:00
|
|
|
{{ if .form.Crawler }}
|
|
|
|
<input type="hidden" name="crawler" value="1">
|
|
|
|
{{ end }}
|
2017-11-20 00:10:04 -05:00
|
|
|
|
|
|
|
<h3>{{ t "Choose a Subscription" }}</h3>
|
|
|
|
|
|
|
|
{{ 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 "Loading..." }}">{{ t "Subscribe" }}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{ end }}
|