Files
2026-09-04 19:50:29 +02:00

77 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title data-i18n="optionsTitle">Paperless — Verbindung</title>
<link rel="stylesheet" href="gemeinsam.css">
<style>body { max-width: 620px; height: auto; }</style>
</head>
<body>
<h1 data-i18n="optionsTitle">Paperless — Verbindung</h1>
<fieldset>
<legend data-i18n="optionsConnection">Zugang</legend>
<label for="baseUrl" data-i18n="fieldBaseUrl">Basisadresse</label>
<input type="text" id="baseUrl" placeholder="https://dms.example.org">
<div class="hinweis" data-i18n="optionsHintUrl">
Ohne abschließenden Schrägstrich. Nur http und https.
</div>
<label for="token" data-i18n="fieldToken">API-Token</label>
<input type="password" id="token">
<div class="hinweis" data-i18n="optionsHintToken">
Im Benutzerprofil von Paperless erzeugen. Ein eigener Token für diese
Erweiterung lässt sich einzeln widerrufen.
</div>
<div style="margin-top:10px" class="zeile">
<button id="pruefen" data-i18n="btnTest">Verbindung prüfen</button>
<span id="status" class="hinweis"></span>
</div>
<div id="recht" class="hinweis" style="margin-top:6px"></div>
</fieldset>
<fieldset>
<legend data-i18n="optionsBehaviour">Verhalten</legend>
<label for="versionLabel" data-i18n="fieldVersionLabel">
Bezeichnung neuer Versionen
</label>
<input type="text" id="versionLabel">
<div class="hinweis" data-i18n="optionsHintLabel">
{datum} wird durch das heutige Datum ersetzt.
</div>
<div class="zeile" style="margin-top:8px">
<label for="shareDays" style="margin:0" data-i18n="fieldShareDays">
Gültigkeit in Tagen
</label>
<input type="number" id="shareDays" min="0" max="3650" style="width:90px">
<label for="shareTag" style="margin:0 0 0 12px" data-i18n="fieldShareTag">
Tag beim Teilen
</label>
<input type="text" id="shareTag" style="width:160px">
</div>
<label for="ignorierteKleiner" style="margin-top:8px"
data-i18n="fieldIgnoreSmaller">
Anhänge vorab abwählen unter … Bytes
</label>
<input type="number" id="ignorierteKleiner" min="0" style="width:120px">
<div class="hinweis" data-i18n="optionsHintIgnore">
Signaturbilder und Logos sind meist kleiner als 8 KB. Sie lassen sich
im Dialog jederzeit anhaken.
</div>
</fieldset>
<div id="meldung" class="hinweis"></div>
<div class="fuss">
<button id="speichern" class="haupt" data-i18n="btnSave">Speichern</button>
</div>
<script type="module" src="options.js"></script>
</body>
</html>