- Move CSS inline as requested by maintainer (no external CSS file) - Add fixed font sizing (14px) to prevent inheritance from email content - Add refresh button to regenerate summaries - Fix refresh bug: use summaryData.headerMessageId instead of message.headerMessageId - Remove deleted message display script and CSS files
136 lines
4.6 KiB
HTML
136 lines
4.6 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>ThunderAI - __MSG_Summarize_PageTitle__</title>
|
|
<link rel="stylesheet" href="mzta-summarize.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_Summarize_PageTitle__</h1>
|
|
<p>__MSG_Summarize_info_default__</p>
|
|
</div>
|
|
<div class="summarize_table_title section_title">__MSG_Summarize_prompt_prefs_title__</div>
|
|
<table id="miczPrefs">
|
|
<tr class="summarize_tr specific_integration">
|
|
<td><span class="opt_title">__MSG_prefs_OptionText_use_specific_integration__</span>
|
|
</td>
|
|
<td>
|
|
<label>
|
|
<input type="checkbox" id="summarize_use_specific_integration" name="summarize_use_specific_integration" class="option-input" />
|
|
__MSG_prefs_OptionText_summarize_use_specific_integration_Info__
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr id="connection_ui_anchor"></tr>
|
|
<tr id="connection_ui_end"><td colspan="2"></td></tr>
|
|
<tr class="summarize_tr">
|
|
<td><span class="opt_title">__MSG_prefs_OptionText_summarize_auto__</span></td>
|
|
<td>
|
|
<label>
|
|
<select id="summarize_auto" name="summarize_auto" class="option-input">
|
|
<option value="0">__MSG_prefs_OptionText_summarize_auto_disabled__</option>
|
|
<option value="1">__MSG_prefs_OptionText_summarize_auto_manual__</option>
|
|
<option value="2">__MSG_prefs_OptionText_summarize_auto_automatic__</option>
|
|
</select>
|
|
<br>__MSG_prefs_OptionText_summarize_auto_Info__
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- PROMPTS -->
|
|
<div id="summarize_prompt_container">
|
|
<!--title and description-->
|
|
<span class="section_title">
|
|
__MSG_Summarize_prompt_text_title__
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<span class="infoline">
|
|
__MSG_prefs_OptionText_btnManagePrompts_infoline__
|
|
<a href="https://micz.it/thunderbird-addon-thunderai/data-placeholders/">
|
|
__MSG_more_info_string__
|
|
</a>
|
|
|
|
<br>
|
|
|
|
<b>__MSG_prefs_OptionText_Summarize_infoline2__</b>
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<!--main prompt-->
|
|
<span class="infoline">
|
|
__MSG_prefs_OptionText_Summarize_main_prompt__
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<div class="autocomplete-container">
|
|
<textarea id="summarize_prompt_text" rows="15"></textarea>
|
|
<ul class="autocomplete-list hidden"></ul>
|
|
</div>
|
|
|
|
<div id="summarize_info_additional_statements"></div>
|
|
<div class="btn_div">
|
|
<button id="btn_reset_prompt" disabled>
|
|
__MSG_reset_default__
|
|
</button>
|
|
<button id="btn_save_prompt" disabled>
|
|
__MSG_save__
|
|
</button>
|
|
</div>
|
|
|
|
<!--email template-->
|
|
<span class="infoline">
|
|
__MSG_prefs_OptionText_Summarize_email_template__
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<div class="autocomplete-container">
|
|
<textarea id="summarize_email_template_text" rows="15"></textarea>
|
|
<ul class="autocomplete-list hidden"></ul>
|
|
</div>
|
|
|
|
<div id="summarize_info_additional_statements"></div>
|
|
<div class="btn_div">
|
|
<button id="btn_reset_email_template" disabled>
|
|
__MSG_reset_default__
|
|
</button>
|
|
<button id="btn_save_email_template" disabled>
|
|
__MSG_save__
|
|
</button>
|
|
</div>
|
|
|
|
<!-- separator -->
|
|
<span class="infoline">
|
|
__MSG_prefs_OptionText_Summarize_email_separator__
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<div class="autocomplete-container">
|
|
<textarea id="summarize_email_separator_text" rows="7"></textarea>
|
|
<ul class="autocomplete-list hidden"></ul>
|
|
</div>
|
|
|
|
<div id="summarize_info_additional_statements"></div>
|
|
<div class="btn_div">
|
|
<button id="btn_reset_email_separator" disabled>
|
|
__MSG_reset_default__
|
|
</button>
|
|
<button id="btn_save_email_separator" disabled>
|
|
__MSG_save__
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|
|
<script src="mzta-summarize.js" type="module"></script>
|
|
<script src="../../js/mzta-i18n.js"></script>
|
|
</body>
|
|
</html>
|