import.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {{ define "title"}}{{ t "page.import.title" }}{{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "page.import.title" }}</h1>
  5. {{ template "feed_menu" }}
  6. </section>
  7. {{ if .errorMessage }}
  8. <div class="alert alert-error">{{ t .errorMessage }}</div>
  9. {{ end }}
  10. <form action="{{ route "uploadOPML" }}" method="post" enctype="multipart/form-data">
  11. <input type="hidden" name="csrf" value="{{ .csrf }}">
  12. <label for="form-file">{{ t "form.import.label.file" }}</label>
  13. <input type="file" name="file" id="form-file">
  14. <div class="buttons">
  15. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.import" }}</button>
  16. </div>
  17. </form>
  18. <hr>
  19. <form action="{{ route "fetchOPML" }}" method="post" enctype="multipart/form-data">
  20. <input type="hidden" name="csrf" value="{{ .csrf }}">
  21. <label for="form-url">{{ t "form.import.label.url" }}</label>
  22. <input type="url" name="url" id="form-url" required>
  23. <div class="buttons">
  24. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.import" }}</button>
  25. </div>
  26. </form>
  27. {{ end }}