index.html 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <meta name="description" content="">
  7. <meta name="author" content="">
  8. <link rel="icon" href="favicon.ico">
  9. <title>LevyraatiBot</title>
  10. <!-- Bootstrap core CSS -->
  11. <link href="css/bootstrap.min.css" rel="stylesheet">
  12. <!-- Custom styles for this template -->
  13. <link href="css/jumbotron.css" rel="stylesheet">
  14. </head>
  15. <body>
  16. <nav class="navbar navbar-toggleable-md navbar-inverse fixed-top bg-inverse">
  17. <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
  18. <span class="navbar-toggler-icon"></span>
  19. </button>
  20. <a class="navbar-brand" href="#"></a>
  21. <div class="collapse navbar-collapse" id="navbarsExampleDefault">
  22. <ul class="navbar-nav mr-auto">
  23. <li class="nav-item active">
  24. <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
  25. </li>
  26. <li class="nav-item">
  27. <a class="nav-link" href="#">Link</a>
  28. </li>
  29. <li class="nav-item">
  30. <a class="nav-link disabled" href="#">Disabled</a>
  31. </li>
  32. <li class="nav-item dropdown">
  33. <a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
  34. <div class="dropdown-menu" aria-labelledby="dropdown01">
  35. <a class="dropdown-item" href="#">Action</a>
  36. <a class="dropdown-item" href="#">Another action</a>
  37. <a class="dropdown-item" href="#">Something else here</a>
  38. </div>
  39. </li>
  40. </ul>
  41. <form class="form-inline my-2 my-lg-0">
  42. <input class="form-control mr-sm-2" type="text" placeholder="Search">
  43. <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  44. </form>
  45. </div>
  46. </nav>
  47. <!-- Main jumbotron for a primary marketing message or call to action -->
  48. <div class="jumbotron">
  49. <div class="container">
  50. <h1 class="display-3">Hello Lamperi!</h1>
  51. <p>Please fill in the songs for year 2018.</p>
  52. </div>
  53. </div>
  54. <div class="container">
  55. {{range .Songs }}
  56. <div class="row">
  57. <small style="width: 70px">Week {{ .Week }}</small>
  58. <form class="form-inline" method="post" action="/update">
  59. <label class="sr-only" for="artist">Artist</label>
  60. <input class="form-control mb-2 mr-sm-2" name="artist" placeholder="Enter Artist" value="{{ .Artist }}">
  61. <label class="sr-only" for="title">Track title</label>
  62. <input class="form-control mb-2 mr-sm-2" name="title" placeholder="Enter Track title" value="{{ .Title }}">
  63. <label class="sr-only" for="url">Track URL</label>
  64. <input class="form-control mb-2 mr-sm-2" name="url" placeholder="Enter Track title" value="{{ .URL }}">
  65. <div class="form-check mb-2 mr-sm-2">
  66. <input class="form-check-input" style="width: 100px" type="checkbox" name="synced" {{ if .Sync }} checked {{ else }} disabled {{ end }}>
  67. <label class="form-check-label" for="synced">Track is synced</label>
  68. </div>
  69. <input type="hidden" name="week" value="{{ .Week }}">
  70. <button type="submit" class="btn btn-primary mb-2">Update track</button>
  71. </form>
  72. </div>
  73. {{end}}
  74. <hr>
  75. <footer>
  76. <p>&copy; Lamperi 2018</p>
  77. </footer>
  78. </div> <!-- /container -->
  79. <!-- Bootstrap core JavaScript
  80. ================================================== -->
  81. <!-- Placed at the end of the document so the pages load faster -->
  82. <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
  83. <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
  84. <script src="js/vendor/bootstrap.min.js"></script>
  85. </body>
  86. </html>