Advertisement
Guest User

Untitled

a guest
Jun 30th, 2024
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. {% extends 'base.html' %}
  2.  
  3. {% block title %}
  4. {{ station|capitalize }} Tracks
  5. {% endblock %}
  6.  
  7. {% block content %}
  8. <form method="POST" id="move" action="/move_to_main"></form>
  9. <form method="POST" id="delete" action="/delete_track/{{ station }}"></form>
  10. <form method="POST" id="update-title" action="/update_title"></form>
  11. <form method="POST" id="update-artist" action="/update_artist"></form>
  12. <table id="tracks-table" class="tablemobile">
  13. <tbody>
  14. <tr>
  15. <th scope="col" class="box header config-col">Config</th>
  16. {% if station == 'new' %}
  17. <th scope="col" class="box header move-col">Move</th>
  18. {% endif %}
  19. <th scope="col" class="box header del-col">Delete</th>
  20. <th scope="col" class="box header track-col">Track</th>
  21. <th scope="col" class="box header artist-col">Artist</th>
  22. </tr>
  23. {% if station == 'new' %}
  24. {% endif %}
  25. {% for track in tracks %}
  26. <tr>
  27. {% if track.config_rel != None %}
  28. <td class="config-num box config-hover-field">
  29. <span class="config-num">
  30. {{ track.config_rel.config_id }}
  31. </span>
  32. <div class="info">
  33. {% if track.config_rel.genres != "None" %}
  34. <p>Genres: {{ track.config_rel.genres.replace(";", ", ") }}</p>
  35. {% endif %}
  36. {% if track.config_rel.styles != "None" %}
  37. <p>Styles: {{ track.config_rel.styles.replace(";", ", ") }}</p>
  38. {% endif %}
  39. {% if track.config_rel.decade != "None" %}
  40. <p>Decade: {{ track.config_rel.decade }}</p>
  41. {% endif %}
  42. {% if track.config_rel.year != "None" %}
  43. <p>Year: {{ track.config_rel.year }}</p>
  44. {% endif %}
  45. {% if track.config_rel.country != "None" %}
  46. <p>Country: {{ track.config_rel.country }}</p>
  47. {% endif %}
  48. {% if track.config_rel.sort_method != "None" %}
  49. <p>Sort Method: {{ track.config_rel.sort_method }}</p>
  50. {% endif %}
  51. {% if track.config_rel.sort_order != "None" %}
  52. <p>Sort Order: {{ track.config_rel.sort_order }}</p>
  53. {% endif %}
  54. </div>
  55. </td>
  56. {% else %}
  57. <td class="config-num box">{{ track.config }}</td>
  58. {% endif %}
  59. {% if station == 'new' %}
  60. <td class="box">
  61. <button class="button linea-icon" type="submit" form="move" name="move_to_main" value="{{ track.track_id }}"><img src="{{ url_for('static', filename='/images/basic_paperplane.svg') }}" alt="Move" width="30" height="30"></button>
  62. </td>
  63. {% endif %}
  64. <td class="box">
  65. <button class="button linea-icon" type="submit" form="delete" name="delete_track" value="{{ track.track_id }}">
  66. <img src="{{ url_for('static', filename='images/basic_trashcan.svg') }}" alt="Del" width="30" height="30">
  67. </button>
  68. </td>
  69. <td class="box track-info">
  70. <button class="edit-button button linea-icon" type="submit"><img src="{{ url_for('static', filename='/images/software_pencil.svg') }}" alt="Edit" height="20" width="20"></button>
  71. <button class="update-button button linea-icon" type="submit" form="update-title" name="update-title" value=""><img src="{{ url_for('static', filename='/images/basic_floppydisk.svg') }}" alt="Save" width="20" height="20"></button>
  72. <p class="track-id" hidden>{{ track.track_id }}</p>
  73. <p class="track-title">{{ track.title }}</p>
  74. </td>
  75. <td class="box track-info">
  76. <button class="edit-button button linea-icon" type="submit"><img src="{{ url_for('static', filename='/images/software_pencil.svg') }}" alt="Edit" height="20" width="20"></button>
  77. <button class="update-button button linea-icon" type="submit" form="update-artist" name="update-artist" value=""><img src="{{ url_for('static', filename='/images/basic_floppydisk.svg') }}" alt="Save" width="20" height="20"></button>
  78. <p class="track-id" hidden>{{ track.track_id }}</p>
  79. <p class="track-title">{{ track.artist }}</p>
  80. </td>
  81. </tr>
  82. {% endfor %}
  83. </tbody>
  84. </table>
  85. <script src="{{ url_for('static', filename='edit_track_title.js') }}"></script>
  86. <script src="{{ url_for('static', filename='edit_track_artist.js') }}"></script>
  87. <script src="{{ url_for('static', filename='mouse_finder.js') }}"></script>
  88. {% endblock %}
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement