choose_subscription.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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="{{ .categoryID }}">
  20. <h3>{{ t "Choose a Subscription" }}</h3>
  21. {{ range .subscriptions }}
  22. <div class="radio-group">
  23. <label title="{{ .URL }}"><input type="radio" name="url" value="{{ .URL }}"> {{ .Title }}</label> ({{ .Type }})
  24. <small title="Type = {{ .Type }}"><a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .URL }}</a></small>
  25. </div>
  26. {{ end }}
  27. <br>
  28. <label><input type="checkbox" name="crawler" value="1" {{ if .form.Crawler }}checked{{ end }}> {{ t "Fetch original content" }}</label>
  29. <div class="buttons">
  30. <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Subscribe" }}</button>
  31. </div>
  32. </form>
  33. {{ end }}