diff --git a/templates/job/add.html.twig b/templates/job/add.html.twig index 50598dd..ba86ec6 100644 --- a/templates/job/add.html.twig +++ b/templates/job/add.html.twig @@ -1,58 +1,58 @@ {% extends "base.html.twig" %} -{% block title %}Add job{% endblock %} +{% block title %}{{ "job.add.title" | trans }}{% endblock %} {% block content %} -

Add a cronjob

+

{{ "job.add.header" | trans }}

-

General info

+

{{ "job.addedit.generalinfo.header" | trans }}

- - - You can create colored tags by using [tag] + + + {{ "job.addedit.generalinfo.name.helptext" | trans }}
- +
- - + +
- +
- Eternal + {{ "job.addedit.generalinfo.lastrun.eternal.label" | trans }}
- - - How many days (at least) to keep runs of this job in the database + + + {{ "job.addedit.generalinfo.retention.placeholder" | trans }}
- +
50%
@@ -62,140 +62,139 @@
- - + +

Job details

-

Command details

+

{{ "job.addedit.crontype.command.label" | trans }}

- - + +
- - + +
-

Reboot job details

+

{{ "job.addedit.crontype.reboot.header" | trans }}

- - - Use {reboot-delay} or {reboot-delay-secs} to add the delay in your command + + + {{ "job.addedit.crontype.reboot.reboot.command.placeholder" | trans }}
- - + +
- - + +
- - - Delay between triggering reboot and actual reboot + + + {{ "job.addedit.crontype.reboot.reboot.delay.helptext" | trans }}
- - - The amount of time the system takes to actually reboot + + + {{ "job.addedit.crontype.reboot.reboot.duration.helptext" | trans }}
-

HTTP request details

+

{{ "job.addedit.crontype.http.header" | trans }}

- - + +
- - + +
- - - This field is being saved as a secret + + + {{ "job.addedit.crontype.http.basic-auth.password.helptext" | trans }}
- - + +
-

Localhost details

-
No options
+

{{ "job.addedit.hosttype.local.header" | trans }}

+
{{ "job.addedit.hosttype.local.nodetails" | trans }}
-

SSH host details

+

{{ "job.addedit.hosttype.ssh.header" | trans }}

- - + +
- - + +
- +
- This file is being saved as a secret + {{ "job.addedit.hosttype.ssh.privatekey.helptext" | trans }}
- - - If private key is empty this field is being used as ssh-password - This field is being saved as a secret + + + {{ "job.addedit.hosttype.ssh.passphrase.helptext" | trans }}
@@ -203,45 +202,45 @@
-

Docker container details

+

{{ "job.addedit.containertype.docker.header" | trans }}

- - + +
- - + +
-

Variables

+

{{ "job.addedit.variables.header" | trans }}

- Secret - - + {{ "job.addedit.variables.secret.label" | trans }} + +

- You can add variables by using {variable-name} in job details + {{ "job.addedit.variables.helptext" | trans }}

- + {% endblock %} diff --git a/templates/job/edit.html.twig b/templates/job/edit.html.twig index 53940a5..c7f95cf 100644 --- a/templates/job/edit.html.twig +++ b/templates/job/edit.html.twig @@ -86,16 +86,16 @@ @@ -106,16 +106,16 @@
@@ -165,62 +165,61 @@
-

HTTP request details

+

{{ "job.addedit.crontype.http.header" | trans }}

- - + +
- - + +
- - - This field is being saved as a secret + + + {{ "job.addedit.crontype.http.basic-auth.password.helptext" | trans }}
- - + +
-

Localhost details

-
No options
+

{{ "job.addedit.hosttype.local.header" | trans }}

+
{{ "job.addedit.hosttype.local.nodetails" | trans }}
-

SSH host details

+

{{ "job.addedit.hosttype.ssh.header" | trans }}

- - + +
- - + +
- +
- Keep - + {{ "job.addedit.hosttype.ssh.privatekey.keep.label" | trans }} +
- This file is being saved as a secret + {{ "job.addedit.hosttype.ssh.privatekey.helptext" | trans }}
- - - If private key is empty this field is being used as ssh-password - This field is being saved as a secret + + + {{ "job.addedit.hosttype.ssh.passphrase.helptext" | trans }}
@@ -228,28 +227,28 @@
-

Docker container details

+

{{ "job.addedit.containertype.docker.header" | trans }}

- - + +
- - + +
-

Variables

+

{{ "job.addedit.variables.header" | trans }}

- Secret - - + {{ "job.addedit.variables.secret.label" | trans }} + +
{% set key = 1 %} {% if job.data.vars is defined %} @@ -258,9 +257,9 @@
- Secret - - + {{ "job.addedit.variables.secret.label" | trans }} + +
{% endfor %} {% endif %} @@ -268,17 +267,17 @@

- You can add variables by using {variable-name} in job details + {{ "job.addedit.variables.helptext" | trans }}

- Add variable + {{ "job.addedit.variables.add.label" | trans }}
- + {% endblock %} diff --git a/translations/messages.en.yaml b/translations/messages.en.yaml index d5bb5b5..8491f84 100644 --- a/translations/messages.en.yaml +++ b/translations/messages.en.yaml @@ -120,4 +120,68 @@ job: label: "Get services command exit code" placeholder: "0" http: - label: "HTTP request" \ No newline at end of file + label: "HTTP request" + header: "HTTP request details" + url: + label: "Url" + placeholder: "https://www.example.com" + basic-auth: + username: + label: "Username for basic auth" + placeholder: "www-data" + password: + label: "Password for basic auth" + placeholder: "correct horse battery staple" + helptext: "This field is being saved as a secret" + response: + label: "Expected http status code" + placeholder: "418" + hosttype: + label: "Host type" + local: + label: "Local" + header: "Localhost details" + nodetails: "No options" + ssh: + label: "SSH" + header: "SSH host details" + hostname: + label: "Hostname" + placeholder: "ssh.abc.xyz" + username: + label: "Username" + placeholder: "larry" + privatekey: + label: "Private key" + helptext: "This file is being saves as a secret" + keep: + label: "Keep" + passphrase: + label: "Passphrase for private key" + placeholder: "correct horse battery staple" + helptext: "If private key is empty this field is being used as ssh-password This field is being saved as a secret" + containertype: + label: "Container type" + none: + label: "None" + docker: + header: "Docker container details" + service: + label: "Service" + placeholder: "mysql" + username: + label: "Username" + placeholder: "larry" + variables: + header: "Variables" + secret: + label: "Secret" + name: + placeholder: "Name" + value: + placeholder: "Value" + helptext: "You can add variables by using {variable-name} in job details" + add: + label: "Add variable" + submit: + label: "Submit!" \ No newline at end of file diff --git a/translations/messages.nl.yaml b/translations/messages.nl.yaml index 6703803..464ddfb 100644 --- a/translations/messages.nl.yaml +++ b/translations/messages.nl.yaml @@ -120,4 +120,70 @@ job: label: "Resultaat van commando voor ophalen services" placeholder: "0" http: - label: HTTP request + label: "HTTP request" + header: "HTTP request details" + url: + label: "Url" + placeholder: "https://www.example.com" + basic-auth: + username: + label: "Gebruikersnaam voor basic auth" + placeholder: "www-data" + password: + label: "Wachtwoord voor basic auth" + placeholder: "correct horse battery staple" + helptext: "Dit veld word opgeslagen als geheime waarde" + response: + label: "Verwachte http status code" + placeholder: "418" + hosttype: + label: "Host type" + local: + label: "Lokaal" + header: "Localhost details" + nodetails: "Geen opties" + ssh: + label: "SSH" + header: "SSH host details" + hostname: + label: "Hostnaam" + placeholder: "ssh.abc.xyz" + username: + label: "Gebruikersnaam" + placeholder: "larry" + privatekey: + label: "Privésleutel" + helptext: "Dit bestand word opgeslagen als geheime waarde" + keep: + label: "Behoud" + passphrase: + label: "Wachtwoord voor privésleutel" + placeholder: "abc123" + helptext: "Indien er geen privésleutel is meegegeven zal dit gebruikt worden als gewoon wachtwoord. Dit veld word opgeslagen als geheime waarde" + containertype: + label: "Container type" + none: + label: "Geen" + docker: + label: "Docker" + header: "Docker container details" + service: + label: "Service" + placeholder: "mysql" + username: + label: "Gebruikersnaam" + placeholder: "larry" + variables: + header: "Variabelen" + secret: + label: "Geheim" + name: + placeholder: "Naam" + value: + placeholder: "Waarde" + helptext: "Je kan variabelen gebruiken via {variabele-naam} in de job details" + add: + label: "Variable toevoegen" + submit: + label: "Verzend!" +