tstor/templates/routes.html

80 lines
3.1 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<head>
2021-01-02 19:09:05 +00:00
{{template "header.html" "Routes"}}
</head>
2021-01-02 19:09:05 +00:00
<body class="header-fixed sidebar-fixed sidebar-dark header-light" id="body">
<div class="wrapper">
{{template "navbar.html" "routes"}}
<div class="page-wrapper">
<!-- Header -->
<header class="main-header " id="header">
<nav class="navbar navbar-static-top navbar-expand-lg">
<!-- Sidebar toggle button -->
<button id="sidebar-toggler" class="sidebar-toggle">
<span class="sr-only">Toggle navigation</span>
</button>
</nav>
</header>
<div class="content-wrapper">
<div class="content">
<div id="template_target"></div>
<div class="card card-default">
<div class="card-header card-header-border-bottom">
<h2>Add New Magnet to a Route</h2>
2021-11-20 19:57:25 +00:00
</div>
<div class="card-body">
<form id="new-magnet">
<div class="form-group">
<label>Magnet Link</label>
<input type="text" id="magnet-url" class="form-control"
placeholder="Enter Valid Magnet Link">
</div>
<div class="form-group">
<label>Route</label>
<select class="form-control" id="route-string">
{{range .}}
<option value="{{.Name}}">{{.Name}}</option>
{{end}}
</select>
</div>
2021-11-20 19:57:25 +00:00
<div class="form-group">
<button type="submit" class="btn btn-primary btn-default">Add</button>
</div>
2021-11-20 19:57:25 +00:00
<div class="form-footer pt-4 pt-5 mt-4 border-top">
<div class="sk-double-bounce" id="submit_magnet_loading" style="display: none;">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
</form>
</div>
</div>
</div>
2021-01-02 19:09:05 +00:00
<footer class="footer mt-auto">
<div class="copyright bg-white">
</div>
</footer>
</div>
2021-01-02 19:09:05 +00:00
{{template "footer.html"}}
<script src="assets/js/routes.js"></script>
<script>
2023-10-08 16:46:03 +00:00
tstor.routes.loadView();
2021-01-02 19:09:05 +00:00
setInterval(function () {
2023-10-08 16:46:03 +00:00
tstor.routes.loadView();
2021-01-02 19:09:05 +00:00
}, 2000)
</script>
</body>
</html>