manageStation.html 8.4 KB

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