-
Notifications
You must be signed in to change notification settings - Fork 10
/
sitebase.html
76 lines (69 loc) · 2.53 KB
/
sitebase.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Microsetta Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="/static/vendor/bootstrap-4.4.1-dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="/static/css/ma_interface.css" />
<style>
.modal-backdrop {
/* bug fix - no overlay */
display: none;
}
</style>
<!-- jquery must be enabled before bootstrap for collapsible functionality -->
<script src="/static/vendor/jquery-3.5.1.min.js"></script>
<script src="/static/vendor/js/jquery.validate.min.js"></script>
<script src="/static/vendor/bootstrap-4.4.1-dist/js/bootstrap.min.js"></script>
<script>
function showWait(url_to_load){
$('#wait').modal('show');
if (url_to_load != null){
window.location.replace(url_to_load);
}
}
</script>
{% block head %}
{% endblock %}
</head>
<body>
<div class="menu">
<h3>Microsetta Utilities</h3>
<ul class="mainmenu">
{% if email %}
<li><a href="/search">Search</a></li>
<li><a href="#" onclick="showWait('/manage_projects?is_active=true')">Manage Projects</a></li>
<li><a href="/create_kits">Create Kit</a></li>
<li><a href="/scan">Scan Barcode</a></li>
<li><a href="/metadata_pulldown">Retrieve Metadata</a></li>
<li><a href="{{authrocket_url}}/logout?redirect_uri={{endpoint}}/logout">Log Out <br> ({{email |e}})</a></li>
{% else %}
<li><a href="{{authrocket_url}}/login?redirect_uri={{endpoint}}/authrocket_callback">Log In</a></li>
{% endif %}
</ul>
</div>
<div class="content">
<!-- wait modal -->
<div class="modal fade bs-example-modal-sm" id="wait" tabindex="-1"
role="dialog" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-body">
<div class="d-flex justify-content-center">
Gathering data ...
</div>
<div class="d-flex justify-content-center">
<div class="spinner-grow" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end wait modal -->
{% block content %}
{% endblock %}
</div>
</body>
</html>