ThunderAI/customprompts/mzta-custom-prompts.html

84 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ThunderAI - Manage Prompts</title>
<link rel="stylesheet" href="mzta-custom-prompts.css">
</head>
<body>
<div>
<h1>Manage Prompts</h1>
<p>Manage your custom prompts.</p>
</div>
<div>
<button id="btnSave" disabled>__MSG_customPrompts_btnSave__</button>
<button id="btnNew">__MSG_customPrompts_btnNew__</button>
</div>
<div id="formNew">
<label for="txtIdNew">*ID:</label>
<input type="text" id="txtIdNew" name="id" class="input_new"> [Must be unique and without spaces]
<br>
<label for="txtNameNew">*Name:</label>
<input type="text" id="txtNameNew" name="name" class="input_new">
<br>
<label for="txtTextNew">*Text:</label>
<textarea id="txtTextNew" name="text" class="input_new"></textarea>
<br>
<label for="selectTypeNew">__MSG_customPrompts_add_to_menu__:</label>
<select id="selectTypeNew" name="type">
<option value="0">__MSG_customPrompts_add_to_menu_always__</option>
<option value="1">__MSG_customPrompts_add_to_menu_reading__</option>
<option value="2">__MSG_customPrompts_add_to_menu_composing__</option>
</select>
<br>
<label for="selectActionNew">Action:</label>
<select id="selectActionNew" name="action">
<option value="0">__MSG_customPrompts_close_button__</option>
<option value="1">__MSG_customPrompts_do_reply__</option>
<option value="2">__MSG_customPrompts_substitute_text__</option>
</select>
<br>
<label for="selectNeedSelectedNew">Need selection:</label>
<select id="selectNeedSelectedNew" name="need_selected">
<option value="0">No selection needed</option>
<option value="1">Need a selection</option>
</select>
<br>
<label for="selectNeedSignatureNew">Need signature:</label>
<select id="selectNeedSignatureNew" name="need_signature">
<option value="0">No signature needed</option>
<option value="1">Signature needed</option>
</select>
<br>
<label for="selectNeedCustomTextNew">Need custom text:</label>
<select id="selectNeedCustomTextNew" name="need_custom_text">
<option value="0">No custom text needed</option>
<option value="1">Custom text needed</option>
</select>
<br>
* Required fields.
<br>
<button id="btnAddNew" disabled>__MSG_customPrompts_btnAddNewCommit__</button>
</div>
<div id="all_prompts">
<table>
<thead>
<tr>
<th class="sort" data-sort="id">ID</th>
<th class="sort" data-sort="name">Name</th>
<th class="sort" data-sort="text">Text</th>
<th class="sort" data-sort="type">__MSG_customPrompts_add_to_menu__</th>
<th>Properties</th>
<th>Action</th>
</tr>
</thead>
<tbody class="list">
</tbody>
</table>
</div>
<script src="list.js"></script>
<script src="mzta-custom-prompts.js" type="module"></script>
<script src="../js/mzta-i18n.js"></script>
</body>
</html>