bigger + sv
This commit is contained in:
@@ -260,7 +260,7 @@ lib.mkIf hasMailDiscoveryConfig (
|
|||||||
<style>
|
<style>
|
||||||
body {{
|
body {{
|
||||||
font-family: system-ui, sans-serif;
|
font-family: system-ui, sans-serif;
|
||||||
max-width: 420px;
|
max-width: 600px;
|
||||||
margin: 3rem auto;
|
margin: 3rem auto;
|
||||||
padding: 0 1.5rem;
|
padding: 0 1.5rem;
|
||||||
color: #1a1a1a;
|
color: #1a1a1a;
|
||||||
@@ -291,7 +291,6 @@ lib.mkIf hasMailDiscoveryConfig (
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border: 1px solid #d1d1d6;
|
border: 1px solid #d1d1d6;
|
||||||
border-radius: 8px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}}
|
}}
|
||||||
@@ -335,24 +334,41 @@ lib.mkIf hasMailDiscoveryConfig (
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>{escape(DOMAIN)} Apple Profile</h1>
|
<h1 data-i18n="title">{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>
|
<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/">
|
<form method="get" action="/mobileconfig/">
|
||||||
<div>
|
<div>
|
||||||
<label for="username">Email address</label>
|
<label for="username" data-i18n="email">Email address</label>
|
||||||
<div class="input-row">
|
<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>
|
<input id="username" name="username" type="text" autocomplete="username" pattern="[A-Za-z0-9._+-]+" required>
|
||||||
<span>@{escape(DOMAIN)}</span>
|
<span>@{escape(DOMAIN)}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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">
|
<input id="full_name" name="full_name" type="text" autocomplete="name" placeholder="Love Billenius">
|
||||||
</div>
|
</div>
|
||||||
<button type="submit">Download profile</button>
|
<button type="submit" data-i18n="submit">Download profile</button>
|
||||||
</form>
|
</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 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>The profile configures IMAP, SMTP, CalDAV, and CardDAV. You will still be asked for your password during installation.</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user