ciyidogan commited on
Commit
dda6025
·
verified ·
1 Parent(s): 5a04698

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +27 -32
static/index.html CHANGED
@@ -9,44 +9,39 @@
9
  </head>
10
  <body>
11
  <div class="container mt-4">
12
- <h1>Flare Project Admin Panel</h1>
13
-
14
- <div class="mb-3">
15
- <button class="btn btn-success" id="newProjectBtn">+ New Project</button>
16
- <button class="btn btn-primary" id="newVersionBtn">+ New Version</button>
17
- <button class="btn btn-secondary" id="saveChangesBtn">Save Project</button>
18
- <button class="btn btn-warning" id="publishVersionBtn">Publish Version</button>
19
  </div>
20
 
21
- <div id="projectDetails" class="mb-4">
22
- <!-- Project details will be injected here -->
23
- </div>
24
 
25
- <div>
26
- <h3>Intents</h3>
27
- <button class="btn btn-outline-primary mb-2" id="addIntentBtn">+ Add Intent / API</button>
28
- <!-- Intents list will be injected by JS -->
29
- </div>
 
30
 
31
- <div>
32
- <h3>Spark Project List</h3>
33
- <ul id="sparkProjectList" class="list-group mb-4">
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
- <!-- New Project Modal (if used) -->
46
- <!-- (newProjectModal.html content here) -->
 
 
47
 
48
- <!-- New Version Modal -->
49
- <!-- (newVersionModal.html content here) -->
 
 
 
 
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>