config.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Wall Segment Clock</title>
  8. <link rel="icon" href="data:,">
  9. <!-- Bootstrap core -->
  10. <link href="bootstrap.css" rel="stylesheet">
  11. <script src="jquery.js"></script>
  12. <style>
  13. .main { font-size: 63px; }
  14. </style>
  15. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  16. <!--[if lt IE 9]>
  17. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  18. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  19. <![endif]-->
  20. </head>
  21. <body>
  22. <div class="container">
  23. <div class="header">
  24. <nav>
  25. <ul class="nav nav-pills pull-right">
  26. <li role="presentation"><a href="/">Home</a></li>
  27. <li role="presentation" class="active"><a href="/config">Configuration</a></li>
  28. <li role="presentation"><a href="/api">API</a></li>
  29. </ul>
  30. </nav>
  31. <h3 class="text-muted">ClockControl</h3>
  32. </div>
  33. <div class="row">
  34. <h2>&nbsp;</h2>
  35. <div class="col-xs-offset-2 col-xs-8">
  36. <!-- Network config -->
  37. <div>
  38. <div class="panel panel-default">
  39. <div class="panel-heading">
  40. <h3 class="panel-title">Network</h3>
  41. </div>
  42. <div class="panel-body">
  43. <form method="POST">
  44. <div class="form-group">
  45. <label>Name</label>
  46. <input type="text" name="SSID" class="form-control" placeholder="Enter SSID" value="{SSID}">
  47. </div>
  48. <div class="form-group">
  49. <label for="exampleInputPassword1">Password</label>
  50. <input type="password" name="Password" class="form-control" placeholder="Password">
  51. </div>
  52. <button type="submit" class="btn btn-success">Save network</button>
  53. <button type="cancel" class="btn btn-link">Cancel</button>
  54. </form>
  55. </div>
  56. </div>
  57. </div>
  58. <!-- Clock config -->
  59. <div>
  60. <div class="panel panel-default">
  61. <div class="panel-heading">
  62. <h3 class="panel-title">Clock settings</h3>
  63. </div>
  64. <div class="panel-body">
  65. <form method="POST">
  66. <div class="form-group">
  67. <label>Brightness Low level, 0 &mdash; 7</label>
  68. <input type="number" min="0" max="7" name="BLow" class="form-control" value="{BLow}">
  69. </div>
  70. <div class="form-group">
  71. <label>Brightness Middle level, 0 &mdash; 7</label>
  72. <input type="number" min="0" max="7" name="BMid" class="form-control" value="{BMid}">
  73. </div>
  74. <div class="form-group">
  75. <label>Brightness High level, 0 &mdash; 7</label>
  76. <input type="number" min="0" max="7" name="BHigh" class="form-control" value="{BHigh}">
  77. </div>
  78. <div class="form-group">
  79. <label>Local time, &#x00B1; hours from GMT</label>
  80. <input type="text" name="TZ" class="form-control" value="{TZ}">
  81. </div>
  82. <button type="submit" class="btn btn-success">Save correction</button>
  83. <button type="cancel" class="btn btn-link">Cancel</button>
  84. </form>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div> <!-- /container -->
  91. </body>
  92. </html>