stations.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template name="stations">
  2. {{> alerts}}
  3. <div class="landing">
  4. {{> header}}
  5. <h1 class="col-md-8 col-md-offset-2 admin-header">Playlist for {{whichStation}}</h1>
  6. {{#each playlist}}
  7. <div class="col-md-8 col-md-offset-2 admin-playlist-panel">
  8. <div class="panel panel-primary">
  9. <div class="panel-heading">
  10. <h3 class="panel-title">Delete</h3> <i class="fa fa-times delete-room" name="Delete room"></i>
  11. </div>
  12. <div class="panel-body admin-panel-body">
  13. <table class="table table-striped">
  14. <thead>
  15. <tr>
  16. <th>Mid</th>
  17. <th>Title</th>
  18. <th>Artist(s)</th>
  19. <th>Type</th>
  20. <th>Id</th>
  21. <th>Likes</th>
  22. <th>Dislikes</th>
  23. <th>Img</th>
  24. <th>Preview</th>
  25. <th>Edit</th>
  26. <th colspan="10">Remove</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {{#each songs}}
  31. <tr>
  32. <th scope="row">{{mid}}</th>
  33. <th>{{title}}</th>
  34. <td>{{artist}}</td>
  35. <td>{{type}}</td>
  36. <td>{{id}}</td>
  37. <td>{{likes}}</td>
  38. <td>{{dislikes}}</td>
  39. <td class="column-small"><button class="btn btn-primary preview-button" id="previewImageButton" data-toggle="modal" data-target="#previewImageModal">Preview Image</button></td>
  40. <td class="column-small"><button class="btn btn-primary preview-button" data-toggle="modal" data-target="#previewModal">Preview</button></td>
  41. <td class="column-small"><button class="btn btn-primary edit-playlist-button" data-genre="{{../type}}" data-toggle="modal" data-target="#editModal">Edit</button></td>
  42. <td class="column-small"><button class="btn btn-danger remove-song-button" data-genre="{{../type}}"><i class="fa fa-ban"></i></button></td>
  43. </tr>
  44. {{/each}}
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. </div>
  50. {{/each}}
  51. <div class="row" style="margin-top: 20px; height: 100%;">
  52. <div class="col-md-8 col-md-offset-2 admin-container">
  53. <div>
  54. <h1>Reports</h1>
  55. </div>
  56. <p>{{display}}</p>
  57. <table class="table table-striped">
  58. <thead>
  59. <tr>
  60. <th>Song mid</th>
  61. <th>Report Type</th>
  62. <th>Report Reason</th>
  63. <th>Comments</th>
  64. </tr>
  65. </thead>
  66. {{#each reports}}
  67. {{#each report}}
  68. <tr>
  69. <td>{{song}}</td>
  70. <td>{{type}}</td>
  71. <td>{{reason}}</td>
  72. <td>{{other}}</td>
  73. </tr>
  74. {{/each}}
  75. {{/each}}
  76. </table>
  77. </div>
  78. </div>
  79. <div id="previewModal" class="modal fade" role="dialog">
  80. <div class="modal-dialog">
  81. <!-- Modal content-->
  82. <div class="modal-content">
  83. <div class="modal-header">
  84. <button type="button" class="close" data-dismiss="modal">&times;</button>
  85. <h4 class="modal-title">Preview</h4>
  86. </div>
  87. <div class="modal-body">
  88. <div width="960" height="540" id="previewPlayer"></div>
  89. <button id="play" title="Play video" class="btn btn-success"><i class="fa fa-play"></i></button>
  90. <button id="stop" title="Stop video" class="btn btn-danger" disabled><i class="fa fa-stop"></i></button>
  91. <button id="forward" title="Go to the last 10 seconds of the video" class="btn btn-primary"><i class="fa fa-fast-forward"></i></button>
  92. <div id="volume-container-admin">
  93. <input type="text" id="volume-slider" class="span2" value="" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="50" data-slider-orientation="horizontal" data-slider-selection="after" data-slider-tooltip="hide">
  94. </div>
  95. </div>
  96. <div class="modal-footer">
  97. <button id="close-modal" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div id="previewImageModal" class="modal fade" role="dialog">
  103. <div class="modal-dialog">
  104. <!-- Modal content-->
  105. <div class="modal-content">
  106. <div class="modal-header">
  107. <button type="button" class="close" data-dismiss="modal">&times;</button>
  108. <h4 class="modal-title">Preview Image</h4>
  109. </div>
  110. <div class="modal-body">
  111. <img alt="Not loading" id="preview-image" height="210px" width="210px" src=""/>
  112. </div>
  113. <div class="modal-footer">
  114. <button id="close-modal" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <div id="editModal" class="modal fade" role="dialog">
  120. <div class="modal-dialog">
  121. <!-- Modal content-->
  122. <div class="modal-content">
  123. <div class="modal-header">
  124. <button type="button" class="close" data-dismiss="modal">&times;</button>
  125. <h4 class="modal-title">Edit</h4>
  126. </div>
  127. <div class="modal-body">
  128. <label for="type" class="song-input-label">Song Type</label>
  129. <select name="type" id="type" class="song-input-select">
  130. <option name="youtube" id="youtube">YouTube</option>
  131. <option name="soundcloud" id="soundcloud">SoundCloud</option>
  132. </select>
  133. <label for="mid" class="song-input-label">Song MID</label>
  134. <input class="song-input" name="mid" id="mid" type="text" />
  135. <label for="id" class="song-input-label">Song ID</label>
  136. <input class="song-input" name="id" id="id" type="text" />
  137. <label for="id" class="song-input-label">Song Artist</label>
  138. <input class="song-input" name="artist" id="artist" type="text" />
  139. <label for="title" class="song-input-label">Song Title</label>
  140. <input class="song-input" name="title" id="title" type="text" />
  141. <label for="title" class="song-input-label">Song Duration</label>
  142. <input class="song-input" name="duration" id="duration" type="number" />
  143. <label for="skip-duration" class="song-input-label">Skip Duration</label>
  144. <input class="song-input" id="skip-duration" type="number" />
  145. <label for="likes" class="song-input-label">Likes</label>
  146. <input class="song-input" id="likes" type="number"/>
  147. <label for="dislikes" class="song-input-label">Dislikes</label>
  148. <input class="song-input" id="dislikes" type="number"/>
  149. <label for="img" class="song-input-label">Song Image</label>
  150. <input class="song-input" name="img" id="img" type="text" />
  151. <button type="button" id="get-spotify-info" class="button">Get Spotify Data</button>
  152. <button type="button" id="save-song-button" class="button">Save Changes</button>
  153. </div>
  154. <div class="modal-footer">
  155. <button id="close-modal" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </template>