mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-15 22:00:08 -07:00
143 lines
4.9 KiB
HTML
143 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>MailHops Preferences</title>
|
|
<meta charset="utf-8" />
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.7/semantic.min.css" integrity="sha512-g/MzOGVPy3OQ4ej1U+qe4D/xhLwUn5l5xL0Fa7gdC258ZWVJQGwsbIR47SWMpRxSPjD0tfu/xkilTy+Lhrl3xg==" crossorigin="anonymous" />
|
|
</head>
|
|
<body>
|
|
|
|
<div id="mh-main-segment" class="ui segment" style="padding: 20px; margin-bottom: 20px; height: 100%;">
|
|
|
|
<img src="/images/mailhops-logo.png" width="300"/>
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
<div id="saved_message" class="ui positive message" style="display: none; min-height: 70px;">
|
|
<div class="header">Saved</div>
|
|
<p>Settings have been saved.</p>
|
|
</div>
|
|
|
|
<div id="error_message" class="ui negative message" style="display: none; min-height: 70px;">
|
|
<div class="header">Error</div>
|
|
<p>There was a problem with your request. Please try again.</p>
|
|
</div>
|
|
|
|
<div id="mh-steps" class="ui two top attached unstackable steps">
|
|
<div id="step_one" class="step active">
|
|
<i class="key icon"></i>
|
|
<div class="content">
|
|
<div class="title">API Keys</div>
|
|
<div class="description">Enable enhanced features</div>
|
|
</div>
|
|
</div>
|
|
<div id="step_two" class="step">
|
|
<i class="cog icon"></i>
|
|
<div class="content">
|
|
<div class="title">Options</div>
|
|
<div class="description">General Options</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="mh-segment" class="ui attached segment">
|
|
|
|
<div id="step_api_keys" class="content">
|
|
<form id="mh-form" class="ui form">
|
|
<div class="field">
|
|
<label>MailHops API Key</label>
|
|
<input type="text" id="mailhop.api_key" placeholder="Enter your MailHops API Key"/>
|
|
<br/>
|
|
<a href="https://www.mailhops.com/#pricing" id="join-link" target="_blank">Join MailHops</a>
|
|
</div>
|
|
<div class="field">
|
|
<label>Send My API Key for</label>
|
|
<div class="ui action input">
|
|
<select class="ui selection dropdown" id="accounts" style="padding: 2px;"></select>
|
|
<button class="ui button" id="mh-send-key">Send API Key</button>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label>OpenWeatherMap.org API Key</label>
|
|
<input type="text" id="mailhop.owm_key" value="" placeholder="Enter your OpenWeatherMap API Key"/>
|
|
<br/>
|
|
MailHops API uses <a href="https://.openweathermap.org" target="_blank">OpenWeatherMap</a> to get the weather of the sender
|
|
<br/>Register for an API Key to enable this feature.
|
|
</div>
|
|
<div style="text-align: center; padding: 10px;">
|
|
<button class="ui primary button" id="mh-save">Save</button>
|
|
</div>
|
|
</form>
|
|
|
|
<h3>MailHops Plan Info</h3>
|
|
<div class="ui divider"></div>
|
|
<p>
|
|
<label id="plan-error" class="ui red basic label" style="display: none;"></label>
|
|
<label id="plan"></label><br/>
|
|
<label id="status"></label><br/>
|
|
<label id="rate-limit"></label><br/>
|
|
<label id="rate-remaining"></label><br/>
|
|
<label id="rate-reset"></label><br/>
|
|
</p>
|
|
</div>
|
|
|
|
<div id="step_settings" class="ui form" style="display: none;">
|
|
<div class="grouped fields">
|
|
<div class="field">
|
|
<label>Theme Unit</label>
|
|
<div class="ui radio checkbox">
|
|
<input type="radio" id="theme_dark" name="theme" value="dark" />
|
|
<label for="theme_dark">Dark</label>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<div class="ui radio checkbox">
|
|
<input type="radio" id="theme_light" name="theme" value="light" />
|
|
<label for="theme_light">Light</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<div class="grouped fields">
|
|
<div class="field">
|
|
<label>Distance Unit</label>
|
|
<div class="ui radio checkbox">
|
|
<input type="radio" id="unit_mi" name="unit" value="mi" />
|
|
<label for="unit_mi">Miles and °F</label>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<div class="ui radio checkbox">
|
|
<input type="radio" id="unit_km" name="unit" value="km" />
|
|
<label for="unit_km">Kilometers and °C</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<div class="grouped fields">
|
|
<div class="field">
|
|
<label>Travel Time Junk</label>
|
|
<div class="ui radio checkbox">
|
|
<input type="radio" id="travel_time_junk_on" name="travel_time_junk" value="on" />
|
|
<label for="travel_time_junk_on">On</label>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<div class="ui radio checkbox">
|
|
<input type="radio" id="travel_time_junk_off" name="travel_time_junk" value="off" />
|
|
<label for="travel_time_junk_off">Off</label>
|
|
</div>
|
|
</div>
|
|
<p>Flag messages as junk if travel time takes longer than normal.</p>
|
|
</div>
|
|
<div style="text-align: center; padding: 10px;">
|
|
<button class="ui primary button" id="mh-save-options">Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/js/preferences.js"></script>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|