diff --git a/assets/scripts/add-form-row.js b/assets/scripts/add-form-row.js
index fd3298e..9534595 100644
--- a/assets/scripts/add-form-row.js
+++ b/assets/scripts/add-form-row.js
@@ -16,9 +16,14 @@ function addFormRow(templateName) {
newItem.querySelectorAll('[data-new-item-skip]')
.forEach(node => node.remove());
+ // Reset form fields
newItem.querySelectorAll('input')
.forEach(input => { input.value = '' });
+ newItem.querySelectorAll('textarea')
+ .forEach(input => { input.value = '' });
+
+ // Template attributes
const templatedAttrNodes = newItem.querySelectorAll('[data-new-item-template-attr]');
for (const node of templatedAttrNodes) {
const attributes = node.dataset.newItemTemplateAttr.split(/\s/);
@@ -28,6 +33,7 @@ function addFormRow(templateName) {
}
}
+ // Template content
const templatedNodes = newItem.querySelectorAll('[data-new-item-template-content]');
for (const node of templatedNodes) {
const templatedString = node.dataset.newItemTemplateContent;
diff --git a/assets/styles/main.css b/assets/styles/main.css
index a1eb21d..47eddb6 100644
--- a/assets/styles/main.css
+++ b/assets/styles/main.css
@@ -178,19 +178,22 @@ a.button {
form h3 {
margin: 0;
+ margin-top: 1rem;
}
fieldset {
margin: 0;
padding: 0;
border: none;
+ margin-top: 1rem;
+
+
+ legend {
+ padding: 0;
+ font-size: 1.1rem;
+ }
}
-legend {
- padding: 0;
- margin-bottom: .5rem;
- font-size: 1.1rem;
-}
input[type="text"] {
font-size: 1rem;
@@ -213,6 +216,11 @@ textarea {
width: 100%;
gap: 1rem;
flex-wrap: wrap;
+ margin-top: 1rem;
+
+ .form-input {
+ margin-top: 0;
+ }
}
.form-action {
@@ -226,6 +234,7 @@ button.form-new-item {
text-decoration: underline;
border-radius: 0;
color: #850085;
+ margin-top: .5rem;
&:hover,
&:focus-visible {
diff --git a/locales/en/main.ftl b/locales/en/main.ftl
index cd5ef4e..1976bf7 100644
--- a/locales/en/main.ftl
+++ b/locales/en/main.ftl
@@ -36,5 +36,35 @@ record-input-addresses =
should be either an IPv4 address, like 198.51.100.3
, or an IPv6
address, like 2001:db8:cafe:bc68::2
.
-button-save-configuration = Save configuration
button-add-address = Add an other address
+
+record-input-mailservers =
+ .legend = Mail server #{ $index }
+ .input-label-server-name = Server name
+ .input-label-preference = Preference
+
+button-add-mailserver = Add an other mailserver
+
+record-input-spf =
+ .input-label = Sender policy (SPF)
+
+record-input-dmarc =
+ .input-label = Error reporting policy (DMARC)
+
+record-input-dkim =
+ .legend = Cryptographic signature key (DKIM) #{ $index }
+ .input-label-selector = Selector
+ .input-label-signing-key = Signing key
+
+record-config-web-heading = Configure a web site for the domain { $name }
+
+record-config-section-web =
+ .servers = Web servers
+
+record-config-mail-heading = Configure e-mails for the domain { $name }
+
+record-config-section-mail =
+ .servers = Mail servers
+ .security = Security
+
+button-save-configuration = Save configuration
diff --git a/locales/fr/main.ftl b/locales/fr/main.ftl
index 756fd97..a92c269 100644
--- a/locales/fr/main.ftl
+++ b/locales/fr/main.ftl
@@ -36,5 +36,35 @@ record-input-addresses =
soit une adresse IPv4, comme 198.51.100.3
, soit une adresse IPv6,
comme 2001:db8:cafe:bc68::2
.
-button-save-configuration = Sauvegarder la configuration
button-add-address = Ajouter une autre adresse
+
+record-input-mailservers =
+ .legend = Serveur de courriel #{ $index }
+ .input-label-server-name = Nom du serveur
+ .input-label-preference = Préférence
+
+button-add-mailserver = Ajouter un autre serveur de courriel
+
+record-input-spf =
+ .input-label = Politique d’envoi (SPF)
+
+record-input-dmarc =
+ .input-label = Politique de signalement d’erreurs (DMARC)
+
+record-input-dkim =
+ .legend = Clé de signature cryptographique (DKIM) #{ $index }
+ .input-label-selector = Sélecteur
+ .input-label-signing-key = Clé de signature
+
+record-config-web-heading = Configurer un site web pour le domaine { $name }
+
+record-config-section-web =
+ .servers = Serveurs Web
+
+record-config-mail-heading = Configurer le courriel pour le domaine { $name }
+
+record-config-section-mail =
+ .servers = Serveurs de courriel
+ .security = Sécurité
+
+button-save-configuration = Sauvegarder la configuration
diff --git a/templates/pages/new_record/configure_record.html b/templates/pages/new_record/configure_record.html
index 0be6d47..f3dc180 100644
--- a/templates/pages/new_record/configure_record.html
+++ b/templates/pages/new_record/configure_record.html
@@ -1,9 +1,9 @@
{% if config == "web" %}
-