manageStation.html 7.8 KB

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