2020-05-18 17:42:23 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
<head>
|
2021-01-02 19:09:05 +00:00
|
|
|
{{template "header.html" "Routes"}}
|
2020-05-18 17:42:23 +00:00
|
|
|
</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">
|
2021-11-16 12:13:58 +00:00
|
|
|
<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
|
|
|
|
2021-11-16 12:13:58 +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">
|
2021-11-16 12:13:58 +00:00
|
|
|
<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>
|
|
|
|
|
2021-11-16 12:13:58 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-18 17:42:23 +00:00
|
|
|
</div>
|
2021-11-16 12:13:58 +00:00
|
|
|
|
2021-01-02 19:09:05 +00:00
|
|
|
<footer class="footer mt-auto">
|
|
|
|
<div class="copyright bg-white">
|
|
|
|
</div>
|
|
|
|
</footer>
|
2020-05-18 17:42:23 +00:00
|
|
|
</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>
|
2020-05-18 17:42:23 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|