Spaces:
Building
Building
Update static/index.html
Browse files- static/index.html +27 -32
static/index.html
CHANGED
@@ -9,44 +9,39 @@
|
|
9 |
</head>
|
10 |
<body>
|
11 |
<div class="container mt-4">
|
12 |
-
<
|
13 |
-
|
14 |
-
|
15 |
-
<
|
16 |
-
<button class="btn btn-primary"
|
17 |
-
<
|
18 |
-
<button class="btn btn-warning" id="publishVersionBtn">Publish Version</button>
|
19 |
</div>
|
20 |
|
21 |
-
<div id="
|
22 |
-
|
23 |
-
</div>
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
<!-- Spark projects will be listed here -->
|
35 |
-
</ul>
|
36 |
-
<button class="btn btn-info" onclick="loadSparkProjects()">Get Spark Project List</button>
|
37 |
-
</div>
|
38 |
-
</div>
|
39 |
-
|
40 |
-
<!-- Include modals -->
|
41 |
-
<div id="modals">
|
42 |
-
<!-- Add/Edit API Modal -->
|
43 |
-
<!-- (addIntentModal.html content here) -->
|
44 |
|
45 |
-
|
46 |
-
|
|
|
|
|
47 |
|
48 |
-
|
49 |
-
|
|
|
|
|
|
|
|
|
50 |
</div>
|
51 |
</body>
|
52 |
</html>
|
|
|
9 |
</head>
|
10 |
<body>
|
11 |
<div class="container mt-4">
|
12 |
+
<div id="loginPanel">
|
13 |
+
<h1>Login</h1>
|
14 |
+
<input type="text" id="usernameInput" class="form-control mb-2" placeholder="Username">
|
15 |
+
<input type="password" id="passwordInput" class="form-control mb-2" placeholder="Password">
|
16 |
+
<button class="btn btn-primary" onclick="login()">Login</button>
|
17 |
+
<div id="loginError" class="text-danger mt-2" style="display:none;">Invalid credentials</div>
|
|
|
18 |
</div>
|
19 |
|
20 |
+
<div id="mainPanel" style="display:none;">
|
21 |
+
<h1>Flare Project Admin Panel</h1>
|
|
|
22 |
|
23 |
+
<div class="mb-3">
|
24 |
+
<button class="btn btn-success" id="newProjectBtn">+ New Project</button>
|
25 |
+
<button class="btn btn-primary" id="newVersionBtn">+ New Version</button>
|
26 |
+
<button class="btn btn-secondary" id="saveChangesBtn">Save Project</button>
|
27 |
+
<button class="btn btn-warning" id="publishVersionBtn">Publish Version</button>
|
28 |
+
</div>
|
29 |
|
30 |
+
<div id="projectDetails" class="mb-4">
|
31 |
+
<!-- Project details will be injected here -->
|
32 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
+
<div>
|
35 |
+
<h3>Intents</h3>
|
36 |
+
<button class="btn btn-outline-primary mb-2" id="addIntentBtn">+ Add Intent / API</button>
|
37 |
+
</div>
|
38 |
|
39 |
+
<div>
|
40 |
+
<h3>Spark Project List</h3>
|
41 |
+
<ul id="sparkProjectList" class="list-group mb-4"></ul>
|
42 |
+
<button class="btn btn-info" onclick="loadSparkProjects()">Get Spark Project List</button>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
</div>
|
46 |
</body>
|
47 |
</html>
|