import.html 993 B

12345678910111213141516171819202122232425262728293031323334
  1. {{ define "title"}}{{ t "Import" }}{{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "Import" }}</h1>
  5. <ul>
  6. <li>
  7. <a href="{{ route "feeds" }}">{{ t "Feeds" }}</a>
  8. </li>
  9. <li>
  10. <a href="{{ route "addSubscription" }}">{{ t "Add subscription" }}</a>
  11. </li>
  12. <li>
  13. <a href="{{ route "export" }}">{{ t "Export" }}</a>
  14. </li>
  15. </ul>
  16. </section>
  17. <form action="{{ route "uploadOPML" }}" method="post" enctype="multipart/form-data">
  18. <input type="hidden" name="csrf" value="{{ .csrf }}">
  19. {{ if .errorMessage }}
  20. <div class="alert alert-error">{{ t .errorMessage }}</div>
  21. {{ end }}
  22. <label for="form-file">{{ t "OPML file" }}</label>
  23. <input type="file" name="file" id="form-file">
  24. <div class="buttons">
  25. <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Import" }}</button>
  26. </div>
  27. </form>
  28. {{ end }}