queues.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template name="queues">
  2. {{> alerts}}
  3. <div class="landing">
  4. {{> header}}
  5. <div class="row">
  6. <div class="col m8 s8 l8 offset-l2 offset-m1 offset-s2 admin-queue-panel card-panel teal accent-3">
  7. <div class="card-content white-text">
  8. <h3 class="text-center">Review queue</h3>
  9. <table class="bordered">
  10. <thead>
  11. <tr>
  12. <th>Title</th>
  13. <th>Artist(s)</th>
  14. <th>Id</th>
  15. <th>Mid</th>
  16. <th class="table-right-th">Edit</th>
  17. <th class="table-right-th">Add</th>
  18. <th class="table-right-th">Remove</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. {{#each songs}}
  23. <tr>
  24. <th align="left" scope="row">{{title}}</th>
  25. <td align="left">{{artist}}</td>
  26. <td align="left">{{id}}</td>
  27. <td align="left">{{mid}}</td>
  28. <td class="table-right-td">
  29. <button class="btn edit-queue-button" data-genre="{{../type}}"
  30. data-toggle="modal" data-target="#editModal">Edit
  31. </button>
  32. </td>
  33. <td class="table-right-td">
  34. <button class="btn green add-song-button" data-genre="{{../type}}"><i
  35. class="material-icons">thumb_up</i></button>
  36. </td>
  37. <td class="table-right-td">
  38. <button class="btn red deny-song-button" data-genre="{{../type}}"><i
  39. class="material-icons">thumb_down</i></button>
  40. </td>
  41. </tr>
  42. {{/each}}
  43. </tbody>
  44. </table>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div id="editModal" class="modal modal-fixed-footer">
  50. <div class="modal-content musare white-text">
  51. <div class="row">
  52. <h4 class="center-align">Video Preview</h4>
  53. <div class="video-container" id="previewPlayerContainer">
  54. <div width="960" height="540" id="previewPlayer"></div>
  55. </div>
  56. <div class="seeker-bar-container col l10 m10 s10 white" id="preview-progress">
  57. <div class="seeker-bar teal" style="width: 0%"></div>
  58. </div>
  59. <span class="col l2 m2 s2 center" id="preview-time">
  60. <span id="time-elapsed">0:00</span> / <span id="time-total">0:00</span>
  61. </span>
  62. <button id="play" title="Play video" class="btn green col m1 s1 l1 offset-l3 offset-m3 offset-s3">
  63. <i class="material-icons">play_arrow</i>
  64. </button>
  65. <button id="stop" title="Stop video" class="btn red col m1 s1 l1" disabled>
  66. <i class="material-icons">stop</i>
  67. </button>
  68. <button id="pause" title="Pause video" class="btn orange col m1 s1 l1" disabled>
  69. <i class="material-icons">pause</i>
  70. </button>
  71. <button id="forward" title="Go to the last 10 seconds of the video" class="btn blue col m1 s1 l1" disabled>
  72. <i class="material-icons">fast_forward</i>
  73. </button>
  74. <form class="col m2 s2 l2" action="#">
  75. <p class="range-field" style="margin-top: 0">
  76. <input type="range" id="volume_slider" min="0" max="100" />
  77. </p>
  78. </form>
  79. </div>
  80. <div class="row">
  81. <h4 class="center-align">Image Preview</h4>
  82. <img id="song-preview" onerror="this.src='http://static.boredpanda.com/blog/wp-content/uploads/2014/04/amazing-fox-photos-182.jpg'" class="center-block" src="{{song_image}}"/>
  83. </div>
  84. <div class="row">
  85. <h4 class="center-align">Edit Info</h4>
  86. <div class="input-field col l8 m8 s12 offset-l2 offset-m2">
  87. <i class="material-icons prefix">vpn_key</i>
  88. <label for="mid" class="white-text">Song MID</label>
  89. <input class="validate" name="mid" id="mid" type="text" pattern=".{6}"/>
  90. </div>
  91. <div class="input-field col l8 m8 s12 offset-l2 offset-m2">
  92. <i class="material-icons prefix">vpn_key</i>
  93. <label for="mid" class="white-text">Song ID</label>
  94. <input class="validate" name="id" id="id" type="text" pattern=".{11}"/>
  95. </div>
  96. <div class="input-field col l8 m8 s12 offset-l2 offset-m2">
  97. <i class="material-icons prefix">person</i>
  98. <label for="id" class="white-text">Song Artist</label>
  99. <input class="validate" name="artist" id="artist" aria-required="true" type="text"/>
  100. </div>
  101. <div class="input-field col l8 m8 s12 offset-l2 offset-m2">
  102. <i class="material-icons prefix">subject</i>
  103. <label for="title" class="white-text">Song Title</label>
  104. <input class="validate required" name="title" id="title" type="text"/>
  105. </div>
  106. <div class="input-field col l8 m8 s12 offset-l2 offset-m2">
  107. <i class="material-icons prefix">timelapse</i>
  108. <label for="title" class="white-text">Song Duration</label>
  109. <input class="validate" name="duration" id="duration" type="number" step="any" min="0"/>
  110. </div>
  111. <div class="input-field col l8 m8 s12 offset-l2 offset-m2">
  112. <i class="material-icons prefix">timer_off</i>
  113. <label for="skip-duration" class="white-text">Skip Duration</label>
  114. <input class="validate" id="skip-duration" type="number" step="any" min="0"/>
  115. </div>
  116. <div class="input-field col l8 m8 s12 offset-l2 offset-m2">
  117. <i class="material-icons prefix">thumb_up</i>
  118. <label for="likes" class="white-text">Likes</label>
  119. <input disabled id="likes" type="number"/>
  120. </div>
  121. <div class="input-field col l8 m8 s12 offset-l2 offset-m2">
  122. <i class="material-icons prefix">thumb_down</i>
  123. <label for="dislikes" class="white-text">Dislikes</label>
  124. <input disabled id="dislikes" type="number"/>
  125. </div>
  126. <div class="input-field col l8 m8 s12 offset-l2 offset-m2">
  127. <i class="material-icons prefix">image</i>
  128. <label for="img" class="white-text">Song Image</label>
  129. <input class="validate" name="img" id="img" type="url"/>
  130. </div>
  131. </div>
  132. <div class="row">
  133. <button type="button" id="get-spotify-info" class="btn btn-large col l6 m6 s10 offset-l3 offset-m3 offset-s1 waves-effect waves-light">Get Spotify Data</button>
  134. <button type="button" id="save-song-button" class="btn btn-large col l6 m6 s10 offset-l3 offset-m3 offset-s1 waves-effect waves-light">Save Changes</button>
  135. </div>
  136. </div>
  137. <div class="modal-footer musare white-text">
  138. <a href="#!" class="modal-action modal-close waves-effect waves-light btn-flat white">X</a>
  139. </div>
  140. </div>
  141. </template>