manageStation.html 9.9 KB

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