|
|
@@ -7,7 +7,7 @@
|
|
7
|
7
|
<head>
|
|
8
|
8
|
<meta charset="UTF-8">
|
|
9
|
9
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
10
|
|
- <title>{% block title %}My Django App{% endblock %}</title>
|
|
|
10
|
+ <title>{% block title %}COI System{% endblock %}</title>
|
|
11
|
11
|
|
|
12
|
12
|
<!-- TailwindCSS -->
|
|
13
|
13
|
<!--
|
|
|
@@ -16,6 +16,7 @@
|
|
16
|
16
|
<link href="{% static "font-awesome/css/font-awesome.css" %}" rel="stylesheet" />
|
|
17
|
17
|
<script type="text/javascript" defer src="{% static "alpinejs/dist/cdn.min.js" %}"></script>
|
|
18
|
18
|
<link href="https://cdn.jsdelivr.net/npm/flowbite@2.5.2/dist/flowbite.min.css" rel="stylesheet" />
|
|
|
19
|
+ <script type="text/javascript" src="{% static "axios/dist/axios.js" %}"></script>
|
|
19
|
20
|
<script type="text/javascript" src="{% static "js/main.js" %}"></script>
|
|
20
|
21
|
</head>
|
|
21
|
22
|
<body class="bg-gray-100 text-gray-800">
|
|
|
@@ -39,7 +40,7 @@
|
|
39
|
40
|
|
|
40
|
41
|
{% if user.is_authenticated %}
|
|
41
|
42
|
<!-- Logged-in User -->
|
|
42
|
|
- <span class="text-gray-600 dark:text-gray-300">Hello, {{ user.username }}</span>
|
|
|
43
|
+ <a href="{% url 'sysadmin:profile' %}"><span class="text-gray-600 dark:text-gray-300">Hello, {{ user.username }}</span></a>
|
|
43
|
44
|
<a href="{% url 'sysadmin:logout' %}" class="text-blue-500 hover:underline">Logout</a>
|
|
44
|
45
|
{% else %}
|
|
45
|
46
|
<!-- Guest User -->
|
|
|
@@ -81,6 +82,15 @@
|
|
81
|
82
|
<a href="{% url "legacy:data-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Data</a>
|
|
82
|
83
|
</li>
|
|
83
|
84
|
<li>
|
|
|
85
|
+ <a href="{% url "legacy:datams-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Data MS</a>
|
|
|
86
|
+ </li>
|
|
|
87
|
+ <li>
|
|
|
88
|
+ <a href="{% url "legacy:datarl-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Data RL</a>
|
|
|
89
|
+ </li>
|
|
|
90
|
+ <li>
|
|
|
91
|
+ <a href="{% url "legacy:datawb-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Data WB</a>
|
|
|
92
|
+ </li>
|
|
|
93
|
+ <li>
|
|
84
|
94
|
<a href="{% url "legacy:datams-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Measurement</a>
|
|
85
|
95
|
</li>
|
|
86
|
96
|
<li>
|
|
|
@@ -90,6 +100,12 @@
|
|
90
|
100
|
<a href="{% url "legacy:ls-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Lot Summary</a>
|
|
91
|
101
|
</li>
|
|
92
|
102
|
<li>
|
|
|
103
|
+ <a href="{% url "legacy:lsrl-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Lot Summary RL</a>
|
|
|
104
|
+ </li>
|
|
|
105
|
+ <li>
|
|
|
106
|
+ <a href="{% url "legacy:lswb-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Lot Summary WB</a>
|
|
|
107
|
+ </li>
|
|
|
108
|
+ <li>
|
|
93
|
109
|
<a href="{% url "legacy:vm-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">VMaster</a>
|
|
94
|
110
|
</li>
|
|
95
|
111
|
<li>
|
|
|
@@ -101,12 +117,26 @@
|
|
101
|
117
|
<li>
|
|
102
|
118
|
<a href="{% url "legacy:em-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">EMaster</a>
|
|
103
|
119
|
</li>
|
|
104
|
|
- <li>
|
|
105
|
|
- <a href="#" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Invoice</a>
|
|
106
|
|
- </li>
|
|
107
|
120
|
</ul>
|
|
108
|
121
|
</li>
|
|
109
|
|
- <li><a href="/settings/" class="flex items-center p-2 text-gray-900 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 dark:text-white"><span class="ml-3">Settings</span></a></li>
|
|
|
122
|
+ <li>
|
|
|
123
|
+
|
|
|
124
|
+ <button type="button" class="flex items-center w-full p-2 text-base text-gray-900 transition duration-75 rounded-lg group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700" aria-controls="setting-sub" data-collapse-toggle="setting-sub">
|
|
|
125
|
+ <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
126
|
+ <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 6c0 1.657-3.134 3-7 3S5 7.657 5 6m14 0c0-1.657-3.134-3-7-3S5 4.343 5 6m14 0v6M5 6v6m0 0c0 1.657 3.134 3 7 3s7-1.343 7-3M5 12v6c0 1.657 3.134 3 7 3s7-1.343 7-3v-6"/>
|
|
|
127
|
+ </svg>
|
|
|
128
|
+
|
|
|
129
|
+ <span class="flex-1 ms-3 text-left rtl:text-right whitespace-nowrap">Settings</span>
|
|
|
130
|
+ <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
|
131
|
+ <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4"/>
|
|
|
132
|
+ </svg>
|
|
|
133
|
+ </button>
|
|
|
134
|
+ <ul id="setting-sub" class="hidden py-2 space-y-2">
|
|
|
135
|
+ <li>
|
|
|
136
|
+ <a href="{% url "sysadmin:users-list" %}" class="flex items-center w-full p-2 text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">Users</a>
|
|
|
137
|
+ </li>
|
|
|
138
|
+ </ul>
|
|
|
139
|
+ </li>
|
|
110
|
140
|
</ul>
|
|
111
|
141
|
</div>
|
|
112
|
142
|
</aside>
|
|
|
@@ -144,14 +174,16 @@
|
|
144
|
174
|
|
|
145
|
175
|
{% django_browser_reload_script %}
|
|
146
|
176
|
<script>
|
|
147
|
|
- // Auto-hide the message after 5 seconds
|
|
148
|
|
- setTimeout(() => {
|
|
|
177
|
+ // Auto-hide the message after 5 seconds
|
|
|
178
|
+ setTimeout(() => {
|
|
149
|
179
|
const alert = document.getElementById('message-alert');
|
|
150
|
180
|
if (alert) {
|
|
151
|
|
- alert.style.opacity = '0'; // Fade out
|
|
152
|
|
- setTimeout(() => alert.remove(), 500); // Remove after fade-out
|
|
|
181
|
+ alert.style.opacity = '0'; // Fade out
|
|
|
182
|
+ setTimeout(() => alert.remove(), 500); // Remove after fade-out
|
|
153
|
183
|
}
|
|
154
|
|
- }, 5000); // 5 seconds
|
|
155
|
|
-</script>
|
|
|
184
|
+ }, 5000); // 5 seconds
|
|
|
185
|
+ </script>
|
|
|
186
|
+ {% block footer_script %}
|
|
|
187
|
+ {% endblock %}
|
|
156
|
188
|
</body>
|
|
157
|
189
|
</html>
|