Modifiziertes Templates Reply Thunderbird Add-on mit: - HTML-Import von Netzlaufwerk - Massen-Delete mit Checkboxen - Deutsches UI mit "Vorlagen" Button - 16 Hotel-Vorlagen als HTML-Dateien
57 lines
2.4 KiB
HTML
57 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Manage Templates</title>
|
|
<style>
|
|
body { font-family: sans-serif; padding: 20px; }
|
|
#templates-list { margin-top: 20px; border: 1px solid #ccc; padding: 10px; }
|
|
.template-item { padding: 10px; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }
|
|
.template-item:last-child { border-bottom: none; }
|
|
.template-name { font-weight: bold; }
|
|
button { margin-left: 10px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<h2>Templates manager</h2>
|
|
|
|
<fieldset>
|
|
<legend>HTML-Dateien importieren</legend>
|
|
<p style="font-size: 0.9em; color: #555;">Wähle eine oder mehrere .html Dateien aus (z.B. vom Netzlaufwerk). Dateiname = Template-Name. Bestehende Templates mit gleichem Namen werden überschrieben.</p>
|
|
<input type="file" id="import-files" accept=".html,.htm" multiple style="margin-bottom: 10px;">
|
|
<br>
|
|
<button type="button" id="import-button">Importieren</button>
|
|
<span id="import-status" style="margin-left: 10px; color: green; display: none;"></span>
|
|
</fieldset>
|
|
|
|
<br>
|
|
|
|
<fieldset>
|
|
<legend id="form-legend">New Template</legend>
|
|
<form id="template-form">
|
|
<input type="hidden" id="template-id">
|
|
|
|
<label for="template-name">Title:</label><br>
|
|
<input type="text" id="template-name" required style="width: 98%; margin-bottom: 10px;"><br>
|
|
|
|
<label for="template-content">Text (HTML/Tekst):</label><br>
|
|
<textarea id="template-content" required rows="10" style="width: 98%; margin-bottom: 10px;"></textarea><br>
|
|
|
|
<button type="submit" id="save-button">Save</button>
|
|
<button type="button" id="cancel-edit" style="display: none;">Discard</button>
|
|
</form>
|
|
</fieldset>
|
|
|
|
<h3>Existing Templates</h3>
|
|
<div style="margin-bottom: 10px;">
|
|
<button type="button" id="select-all-button">Alle auswählen</button>
|
|
<button type="button" id="delete-selected-button" style="color: red;">Ausgewählte löschen</button>
|
|
</div>
|
|
<div id="templates-list">
|
|
<p id="no-templates">There is no saved templates.</p>
|
|
</div>
|
|
|
|
<script src="templates_options.js"></script>
|
|
</body>
|
|
</html> |