manage_playlists_import.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <div class="container-fluid">
  4. <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom border-2 border-dark">
  5. <h1 class="h2">Import Public YouTube playlists</h1>
  6. </div>
  7. <br>
  8. <h4>Enter a Playlist link or list multiple Playlist links line by line</h4>
  9. <div id="import-playlists-from">
  10. <textarea name="import-playlist-textarea" class="form-control" id="video-notes-text-area" placeholder="Enter here" rows="5"
  11. hx-post="{% url 'manage_save' 'manage_playlists_import_textarea' %}"
  12. hx-trigger="keyup changed delay:500ms"
  13. hx-indicator="#spinner">{{ manage_playlists_import_textarea }}</textarea>
  14. </div>
  15. <br>
  16. <div class="d-flex justify-content-start">
  17. <button type="button" hx-post="{% url 'manage_import_playlists' %}" hx-include="[id='import-playlists-from']" hx-target="#import-playlists-results" hx-indicator="#spinner" class="btn btn-success">Import!</button>
  18. <div id="spinner" class="htmx-indicator ms-3 mt-2">
  19. <div class="spinner-border" role="status">
  20. </div>
  21. </div>
  22. </div>
  23. <br>
  24. <div id="import-playlists-results">
  25. </div>
  26. <br>
  27. </div>
  28. {% endblock %}