2018-09-21 21:53:29 -04:00
|
|
|
{{ define "title"}}{{ t "page.add_feed.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.add_feed.title" }}</h1>
|
2020-01-02 16:03:34 -05:00
|
|
|
{{ template "feed_menu" }}
|
2017-11-20 00:10:04 -05:00
|
|
|
</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-09-19 21:19:24 -04:00
|
|
|
<input type="hidden" name="user_agent" value="{{ .form.UserAgent }}">
|
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 }}">
|
2019-11-29 14:17:14 -05:00
|
|
|
<input type="hidden" name="scraper_rules" value="{{ .form.ScraperRules }}">
|
|
|
|
<input type="hidden" name="rewrite_rules" value="{{ .form.RewriteRules }}">
|
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
|
|
|
|
2018-09-21 21:53:29 -04:00
|
|
|
<h3>{{ t "page.add_feed.choose_feed" }}</h3>
|
2017-11-20 00:10:04 -05:00
|
|
|
|
|
|
|
{{ range .subscriptions }}
|
|
|
|
<div class="radio-group">
|
2020-01-02 14:06:57 -05:00
|
|
|
<label title="{{ .URL | safeURL }}"><input type="radio" name="url" value="{{ .URL | safeURL }}"> {{ .Title }}</label> ({{ .Type }})
|
|
|
|
<small title="Type = {{ .Type }}"><a href="{{ .URL | safeURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .URL | safeURL }}</a></small>
|
2017-11-20 00:10:04 -05:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<div class="buttons">
|
2018-09-21 21:53:29 -04:00
|
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.loading" }}">{{ t "action.subscribe" }}</button>
|
2017-11-20 00:10:04 -05:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{ end }}
|