152 lines
No EOL
9.1 KiB
HTML
152 lines
No EOL
9.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>ThunderAI - __MSG_customPrompts_managePrompts__</title>
|
|
<link rel="stylesheet" href="mzta-custom-prompts.css">
|
|
<link rel="stylesheet" href="../_lib/connection-ui.css">
|
|
<link rel="icon" href="../../images/icon-16px.png">
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<h1 class="page_title">__MSG_customPrompts_managePrompts__</h1>
|
|
<p>__MSG_customPrompts_managePrompts_info_default__<br>
|
|
__MSG_customPrompts_managePrompts_info_default_2__<br>
|
|
__MSG_customPrompts_managePrompts_info_default_3__ <a href="https://micz.it/thunderbird-addon-thunderai/custom-prompts/">__MSG_more_info_string__</a>
|
|
<br>__MSG_prefs_OptionText_btnManagePrompts_infoline__ <a href="https://micz.it/thunderbird-addon-thunderai/data-placeholders/">__MSG_more_info_string__</a>
|
|
<br><button id="btnManageCustomDataPH">__MSG_prefs_OptionText_btnManageCustomDataPH__</button></p>
|
|
</div>
|
|
<div id="import_export">
|
|
<button id="btnExportAll">__MSG_customPrompts_ExportAll__</button><br>
|
|
<button id="btnImport">__MSG_customPrompts_Import__</button>
|
|
</div>
|
|
<div id="command_palette">
|
|
<button id="btnSaveAll" disabled>__MSG_btnSaveAll_string__</button>
|
|
<span id="msgDisplay"></span>
|
|
<button id="btnNew">__MSG_btnNew_string__</button>
|
|
</div>
|
|
<div id="formNew">
|
|
<table class="width_all">
|
|
<tr>
|
|
<td class="w19">
|
|
<label for="txtIdNew" class="field_title">*__MSG_customPrompts_form_label_ID__:</label>
|
|
<br>
|
|
<input type="text" id="txtIdNew" name="id" class="input_new" tabindex="1">
|
|
<br><span class="small_label">[__MSG_customPrompts_form_label_ID_rules__]</span>
|
|
</td>
|
|
<td rowspan="2" class="w25">
|
|
<label for="txtTextNew" class="field_title">*__MSG_customPrompts_form_label_Text__:</label>
|
|
<br>
|
|
<div class="autocomplete-container">
|
|
<textarea id="txtTextNew" name="text" class="input_new text_output editor" tabindex="3"></textarea>
|
|
<ul class="autocomplete-list hidden"></ul>
|
|
</div>
|
|
</td>
|
|
<td rowspan="2" class="w19">
|
|
<label for="selectTypeNew" class="field_title">__MSG_customPrompts_add_to_menu__:</label>
|
|
<br>
|
|
<select id="selectTypeNew" name="type" tabindex="4" class="type_output">
|
|
<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><br>
|
|
<label for="selectShowInNew" class="field_title">__MSG_show_in__:</label>
|
|
<br>
|
|
<select id="selectShowInNew" name="show_in" tabindex="4">
|
|
<option value="popup">__MSG_show_in_popup__</option>
|
|
<option value="context">__MSG_show_in_context__</option>
|
|
<option value="both">__MSG_show_in_both__</option>
|
|
</select>
|
|
<br><br>
|
|
<label for="selectActionNew" class="field_title">__MSG_customPrompts_form_label_Action__:</label>
|
|
<br>
|
|
<select id="selectActionNew" name="action" tabindex="5">
|
|
<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>
|
|
</td>
|
|
<td rowspan="2" class="w19">
|
|
<label class="field_title">__MSG_customPrompts_Properties__:</label>
|
|
<br>
|
|
<label for="checkboxNeedSelectedNew"><span class="need_selected_span"><input type="checkbox" id="checkboxNeedSelectedNew" name="need_selected" class="need_selected_new" value="1" tabindex="6"> __MSG_customPrompts_form_label_need_selected__</label></span>
|
|
<br>
|
|
<label for="checkboxNeedSignatureNew"><input type="checkbox" id="checkboxNeedSignatureNew" name="need_signature" value="1" tabindex="7"> __MSG_customPrompts_form_label_need_signature__</label>
|
|
<br>
|
|
<label for="checkboxNeedCustomTextNew"><span class="need_custom_text_span"><input type="checkbox" id="checkboxNeedCustomTextNew" name="need_custom_text" class="need_custom_text_new" value="1" tabindex="8"> __MSG_customPrompts_form_label_need_custom_text__</label></span>
|
|
<br>
|
|
<label for="checkboxDefineResponseLangNew"><input type="checkbox" id="checkboxDefineResponseLangNew" name="define_response_lang" value="1" tabindex="8"> __MSG_customPrompts_form_label_define_response_lang__</label>
|
|
<br>
|
|
<label for="checkboxUseDiffViewerNew" title="__MSG_customPrompts_form_label_use_diff_viewer_title__"><input type="checkbox" id="checkboxUseDiffViewerNew" name="use_diff_viewer" value="1" tabindex="9" title="__MSG_customPrompts_form_label_use_diff_viewer_title__"> __MSG_customPrompts_form_label_use_diff_viewer__</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="w19">
|
|
<label for="txtNameNew" class="field_title">*__MSG_customPrompts_form_label_Name__:</label>
|
|
<br>
|
|
<input type="text" id="txtNameNew" name="name" class="input_new" tabindex="2">
|
|
</td>
|
|
</tr>
|
|
<tr id="chatgpt_web_additional_info_toggle"><td colspan="4"><span class="small_info">__MSG_customPrompts_show_additional_info__ [ChatGPT Web]</span></td></tr>
|
|
<tr id="chatgpt_web_additional_info"><!-- ChatGPT Web additional info -->
|
|
<td colspan="2">
|
|
<label for="chatGPTWebModelNew" class="field_title">__MSG_prefs_OptionText_chatgpt_web_model__:</label>
|
|
<br>
|
|
<input type="text" id="chatGPTWebModelNew" name="chatGPTWebModelNew" class="input_new input_additional" tabindex="10">
|
|
<table class="chatgpt_web_models_list_table" title="__MSG_prefs_OptionText_chatgpt_web_model_tooltip__"><tr id="chatgpt_web_models_list"></tr></table>
|
|
<br><br>
|
|
<label for="chatGPTWebProjectNew" class="field_title">__MSG_prefs_OptionText_chatgpt_web_project__:</label>
|
|
<br>
|
|
<input type="text" id="chatGPTWebProjectNew" name="chatGPTWebProjectNew" class="input_new input_additional" tabindex="11">
|
|
<br><i class="small_info" id="chatGPTWebProjectNew_info">__MSG_prefs_OptionText_chatgpt_web_custom_data_info__ <b>/g/PROJECT-ID-PROJECT-NAME/project</b>
|
|
<br>__MSG_prefs_OptionText_chatgpt_web_custom_data_info2__</i>
|
|
</td>
|
|
<td colspan="2">
|
|
<label for="chatGPTWebCustomGPTNew" class="field_title">__MSG_prefs_OptionText_chatgpt_web_custom_gpt__:</label>
|
|
<br>
|
|
<input type="text" id="chatGPTWebCustomGPTNew" name="chatGPTWebCustomGPTNew" class="input_new input_additional" tabindex="11">
|
|
<br><i class="small_info" id="chatGPTWebCustomGPTNew_info">__MSG_prefs_OptionText_chatgpt_web_custom_data_info__ <b>/g/CUSTOM-GPT-ID</b>
|
|
<br>__MSG_prefs_OptionText_chatgpt_web_custom_data_info2__</i>
|
|
</td>
|
|
</tr>
|
|
<tr id="api_additional_info_toggle" class="small_info api_additional_info"><!-- API settings additional info toggle-->
|
|
<td colspan="5">
|
|
<span>__MSG_customPrompts_show_additional_info__ [API]</span>
|
|
</td>
|
|
</tr>
|
|
<tr id="api_additional_info" style="display: none;"><!-- API settings additional info -->
|
|
<td colspan="5" id="api_ui_container">
|
|
<table style="width: 100%; text-align: left;">
|
|
<tr id="api_ui_anchor">
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="go_right_float">* __MSG_customPrompts_form_required_fields__</div>
|
|
<br>
|
|
<div class="go_right"><button id="btnAddNew" disabled>__MSG_customPrompts_btnAddNewCommit__</button></div>
|
|
</div>
|
|
<div id="all_prompts">
|
|
<table class="prompts_list">
|
|
<thead>
|
|
<tr>
|
|
<th class="sort" data-sort="id">__MSG_customPrompts_form_label_ID__</th>
|
|
<th class="sort" data-sort="name">__MSG_customPrompts_form_label_Name__</th>
|
|
<th class="sort" data-sort="text">__MSG_customPrompts_form_label_Text__</th>
|
|
<th> </th>
|
|
<th>__MSG_customPrompts_Properties__</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="list">
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="storage_space">__MSG_StorageSpace__: <span id="storage_space"></span></div>
|
|
<script src="../_lib/list.js"></script>
|
|
<script src="mzta-custom-prompts.js" type="module"></script>
|
|
<script src="../../js/mzta-i18n.js"></script>
|
|
</body>
|
|
</html> |