Spaces:
Building
Building
Update static/index.html
Browse files- static/index.html +42 -0
static/index.html
CHANGED
@@ -144,6 +144,48 @@
|
|
144 |
</div>
|
145 |
</div>
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
<!-- JS Files -->
|
148 |
<script src="js/common.js"></script>
|
149 |
<script src="js/auth.js"></script>
|
|
|
144 |
</div>
|
145 |
</div>
|
146 |
|
147 |
+
<!-- Intent Edit Modal -->
|
148 |
+
<div class="modal fade" id="intentModal" tabindex="-1" role="dialog" aria-labelledby="intentModalLabel" aria-hidden="true">
|
149 |
+
<div class="modal-dialog modal-lg" role="document">
|
150 |
+
<div class="modal-content">
|
151 |
+
<div class="modal-header">
|
152 |
+
<h5 class="modal-title" id="intentModalLabel">Edit Intent</h5>
|
153 |
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
154 |
+
<span aria-hidden="true">×</span>
|
155 |
+
</button>
|
156 |
+
</div>
|
157 |
+
<div class="modal-body">
|
158 |
+
<input type="hidden" id="intent-project-name">
|
159 |
+
<input type="hidden" id="intent-name">
|
160 |
+
<div class="form-group">
|
161 |
+
<label for="intent-action">Action (API)</label>
|
162 |
+
<input type="text" id="intent-action" class="form-control">
|
163 |
+
</div>
|
164 |
+
<div class="form-group">
|
165 |
+
<label for="intent-fallback">Fallback Error Message</label>
|
166 |
+
<input type="text" id="intent-fallback" class="form-control">
|
167 |
+
</div>
|
168 |
+
<div class="form-group">
|
169 |
+
<label for="intent-prompt">Humanization Prompt</label>
|
170 |
+
<textarea id="intent-prompt" class="form-control"></textarea>
|
171 |
+
</div>
|
172 |
+
<div class="form-group">
|
173 |
+
<label for="intent-examples">Examples (comma-separated)</label>
|
174 |
+
<input type="text" id="intent-examples" class="form-control">
|
175 |
+
</div>
|
176 |
+
<div class="form-group">
|
177 |
+
<label for="intent-parameters">Parameters (JSON array)</label>
|
178 |
+
<textarea id="intent-parameters" class="form-control" placeholder='[{"name": "currency", "type": "string"}]'></textarea>
|
179 |
+
</div>
|
180 |
+
</div>
|
181 |
+
<div class="modal-footer">
|
182 |
+
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
183 |
+
<button type="button" class="btn btn-primary" onclick="saveIntent()">Save Changes</button>
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
</div>
|
188 |
+
|
189 |
<!-- JS Files -->
|
190 |
<script src="js/common.js"></script>
|
191 |
<script src="js/auth.js"></script>
|