choose_subscription.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {{ define "title"}}{{ t "Choose a Subscription" }}{{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "New Subscription" }}</h1>
  5. <ul>
  6. <li>
  7. <a href="{{ route "feeds" }}">{{ t "Feeds" }}</a>
  8. </li>
  9. <li>
  10. <a href="{{ route "export" }}">{{ t "Export" }}</a>
  11. </li>
  12. <li>
  13. <a href="{{ route "import" }}">{{ t "Import" }}</a>
  14. </li>
  15. </ul>
  16. </section>
  17. <form action="{{ route "chooseSubscription" }}" method="POST">
  18. <input type="hidden" name="csrf" value="{{ .csrf }}">
  19. <input type="hidden" name="category_id" value="{{ .form.CategoryID }}">
  20. <input type="hidden" name="feed_username" value="{{ .form.Username }}">
  21. <input type="hidden" name="feed_password" value="{{ .form.Password }}">
  22. {{ if .form.Crawler }}
  23. <input type="hidden" name="crawler" value="1">
  24. {{ end }}
  25. <h3>{{ t "Choose a Subscription" }}</h3>
  26. {{ range .subscriptions }}
  27. <div class="radio-group">
  28. <label title="{{ .URL }}"><input type="radio" name="url" value="{{ .URL }}"> {{ .Title }}</label> ({{ .Type }})
  29. <small title="Type = {{ .Type }}"><a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .URL }}</a></small>
  30. </div>
  31. {{ end }}
  32. <div class="buttons">
  33. <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Subscribe" }}</button>
  34. </div>
  35. </form>
  36. {{ end }}