diff options
author | Frédéric Guillot <fred@miniflux.net> | 2017-11-19 21:10:04 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2017-11-19 22:01:46 -0800 |
commit | 8ffb773f43c8dc54801ca1d111854e7e881c93c9 (patch) | |
tree | 38133a2fc612597a75fed1d13e5b4042f58a2b7e /server/template/html/choose_subscription.html |
First commit
Diffstat (limited to 'server/template/html/choose_subscription.html')
-rw-r--r-- | server/template/html/choose_subscription.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/server/template/html/choose_subscription.html b/server/template/html/choose_subscription.html new file mode 100644 index 0000000..72c68fd --- /dev/null +++ b/server/template/html/choose_subscription.html @@ -0,0 +1,36 @@ +{{ 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 }}"> + <input type="hidden" name="category_id" value="{{ .categoryID }}"> + + <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 }} |