fix: beautify token-needed page, remove ref to custom.js to avoid error

This commit is contained in:
Terry Geng 2020-05-19 08:33:02 +08:00
parent f8011bc506
commit aca002d08d
No known key found for this signature in database
GPG Key ID: F982F8EA1DF720E7

View File

@ -13,38 +13,37 @@
</head> </head>
<body> <body>
<div class="container mb-5" id="banner"> <div class="container" style="max-width: 800px">
<div class="row"> <div class="col-8" style="margin: auto; padding-top: 50px;">
<div class="col-auto"> <div class="card">
<img src="static/image/logo.png" height="200px"> <div class="card-header">
</div> Token Required
<div class="col my-auto"> </div>
<h1>botamusique Web Interface</h1> <div class="card-body">
<h3>Token Required!</h3>
You are accessing the web interface of {{ name }}.
A token is needed to grant you access.<br />
Please send "{{ command }}" to the bot in mumble to acquire one.
<form action="." method="get">
<div class="form-group mt-3">
<label for="token_input">Token</label>
<div class="input-group">
<input type="password" class="form-control btn-space" id="token_input" name="token"
placeholder="xxxxxxx">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="container" style="max-width: 800px">
<h3>Token from the {{ name }} bot needed.<br />Please send "{{ command }}" to the bot in mumble</h3>
<form action="." method="get">
<div class="form-group">
<label for="token_input">Token</label>
<input type="password" class="form-control" id="token_input" name="token">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
<div class="floating-button" style="bottom: 50px;" onclick="switchTheme()">
<i class="fas fa-lightbulb" aria-hidden="true"></i>
</div>
<script src="static/js/jquery-3.5.1.min.js"></script> <script src="static/js/jquery-3.5.1.min.js"></script>
<script src="static/js/popper.min.js"></script> <script src="static/js/popper.min.js"></script>
<script src="static/js/bootstrap.min.js"></script> <script src="static/js/bootstrap.min.js"></script>
<script src="static/js/fontawesome.all.min.js"></script> <script src="static/js/fontawesome.all.min.js"></script>
<script src="static/js/custom.js"></script>
</body> </body>
</html> </html>