bigger + sv
This commit is contained in:
@@ -260,7 +260,7 @@ lib.mkIf hasMailDiscoveryConfig (
|
||||
<style>
|
||||
body {{
|
||||
font-family: system-ui, sans-serif;
|
||||
max-width: 420px;
|
||||
max-width: 600px;
|
||||
margin: 3rem auto;
|
||||
padding: 0 1.5rem;
|
||||
color: #1a1a1a;
|
||||
@@ -291,7 +291,6 @@ lib.mkIf hasMailDiscoveryConfig (
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border: 1px solid #d1d1d6;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}}
|
||||
@@ -335,24 +334,41 @@ lib.mkIf hasMailDiscoveryConfig (
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{escape(DOMAIN)} Apple Profile</h1>
|
||||
<p>Open this page in Safari on iPhone, iPad, or macOS. Enter your email address and optionally your full name to download the configuration profile.</p>
|
||||
<h1 data-i18n="title">{escape(DOMAIN)} Apple Profile</h1>
|
||||
<p data-i18n="intro">Open this page in Safari on iPhone, iPad, or macOS. Enter your email address and optionally your full name to download the configuration profile.</p>
|
||||
<form method="get" action="/mobileconfig/">
|
||||
<div>
|
||||
<label for="username">Email address</label>
|
||||
<div class="input-row">
|
||||
<label for="username" data-i18n="email">Email address</label>
|
||||
<div class="input-row" onclick="this.querySelector('input').focus()" style="cursor:text">
|
||||
<input id="username" name="username" type="text" autocomplete="username" pattern="[A-Za-z0-9._+-]+" required>
|
||||
<span>@{escape(DOMAIN)}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="full_name">Fullname</label>
|
||||
<label for="full_name" data-i18n="fullname">Fullname</label>
|
||||
<input id="full_name" name="full_name" type="text" autocomplete="name" placeholder="Love Billenius">
|
||||
</div>
|
||||
<button type="submit">Download profile</button>
|
||||
<button type="submit" data-i18n="submit">Download profile</button>
|
||||
</form>
|
||||
<p>If you leave the full name blank, or only enter a first name, the profile defaults the last name to Billenius.</p>
|
||||
<p>The profile configures IMAP, SMTP, CalDAV, and CardDAV. You will still be asked for your password during installation.</p>
|
||||
<p data-i18n="hint1">If you leave the full name blank, or only enter a first name, the profile defaults the last name to Billenius.</p>
|
||||
<p data-i18n="hint2">The profile configures IMAP, SMTP, CalDAV, and CardDAV. You will still be asked for your password during installation.</p>
|
||||
<script>
|
||||
var sv = {{
|
||||
title: "{escape(DOMAIN)} Apple-profil",
|
||||
intro: "Öppna den här sidan i Safari på iPhone, iPad eller macOS. Ange din e-postadress och eventuellt ditt fullständiga namn för att ladda ner konfigurationsprofilen.",
|
||||
email: "E-postadress",
|
||||
fullname: "Fullständigt namn",
|
||||
submit: "Ladda ner profil",
|
||||
hint1: "Om du lämnar fullständigt namn tomt, eller bara anger ett förnamn, används Billenius som efternamn.",
|
||||
hint2: "Profilen konfigurerar IMAP, SMTP, CalDAV och CardDAV. Du kommer fortfarande att bli ombedd att ange ditt lösenord under installationen."
|
||||
}};
|
||||
if (navigator.language.startsWith("sv")) {{
|
||||
document.querySelectorAll("[data-i18n]").forEach(function(el) {{
|
||||
var key = el.getAttribute("data-i18n");
|
||||
if (sv[key]) el.textContent = sv[key];
|
||||
}});
|
||||
}}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user