User form translations
This commit is contained in:
parent
405732cedf
commit
41071dba00
|
@ -206,48 +206,48 @@ textarea {
|
|||
}
|
||||
</style>
|
||||
<body>
|
||||
{% if modalità == "add" %}
|
||||
{% if modalità == "edit" or modalità == "add" %}
|
||||
<form method="post">
|
||||
<div class="container">
|
||||
<label><b>E-mail</b></label>
|
||||
<input id="mail" type="text" name="mail" placeholder="user@providermail.estensione" required>
|
||||
<label><b>{{ 'E-mail'|t }}</b></label>
|
||||
<input id="mail" type="text" name="mail" placeholder="{{ 'user@provider-email-domain.com'|t }}" required>
|
||||
<br>
|
||||
<br>
|
||||
<label><b>name</b></label>
|
||||
<input id="name" type="text" name="name" placeholder="name Cogname" required>
|
||||
<label><b>{{ 'Name'|t }}</b></label>
|
||||
<input id="name" type="text" name="name" placeholder="{{ 'Name Surname'|t }}" required>
|
||||
<br>
|
||||
<br>
|
||||
<label><b>Username</b></label>
|
||||
<input id="username" type="text" name="username" placeholder="name.cogname" required>
|
||||
<label><b>{{ 'Username'|t }}</b></label>
|
||||
<input id="username" type="text" name="username" placeholder="{{ 'name.surname'|t }}" required>
|
||||
<br>
|
||||
<br>
|
||||
<label><b>Password</b></label>
|
||||
<label><b>{{ 'Password'|t }}</b></label>
|
||||
<input id="password" type="text" name="password" required>
|
||||
<br>
|
||||
<br>
|
||||
<label><b>Data di nascita</b></label>
|
||||
<label><b>{{ 'Birthday'|t }}</b></label>
|
||||
<input autocomplete="off" class="datepicker" name="birthday" placeholder="DD/MM/YYY" type="text">
|
||||
<br>
|
||||
<br>
|
||||
<label><b>Caposquadra</b></label><br>
|
||||
<label><b>{{ 'Foreman'|t }}</b></label><br>
|
||||
<input type="checkbox" name="capo" data-toggle="toggle">
|
||||
<br>
|
||||
<br>
|
||||
<label><b>Autista</b></label><br>
|
||||
<label><b>{{ 'Driver'|t }}</b></label><br>
|
||||
<input type="checkbox" name="autista" data-toggle="toggle">
|
||||
<br>
|
||||
<br>
|
||||
<label><b>Visible</b></label><br>
|
||||
<label><b>{{ 'Visible'|t }}</b></label><br>
|
||||
<input type="checkbox" name="visible" checked data-toggle="toggle">
|
||||
<br>
|
||||
<br>
|
||||
<label><b>Enabled</b></label><br>
|
||||
<label><b>{{ 'Enabled'|t }}</b></label><br>
|
||||
<input type="checkbox" name="enabled" checked data-toggle="toggle">
|
||||
<br>
|
||||
<br>
|
||||
<input id="modalità" type="hidden" value="add" name="mod"></input>
|
||||
<input id="modalità" type="hidden" value="{{ training.modalità }}" name="mod"></input>
|
||||
<input id="token" type="hidden" value="{{ token }}" name="token"></input>
|
||||
<button type="submit">invia</button>
|
||||
<button type="submit">{{ 'Submit'|t }}</button>
|
||||
</div>
|
||||
</form>
|
||||
<script>
|
||||
|
@ -259,8 +259,6 @@ $('form').submit(function () {
|
|||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
{% if modalità == "edit" %}
|
||||
{% endif %}
|
||||
{% if modalità == "delete" %}
|
||||
<style>
|
||||
#add {
|
||||
|
@ -276,16 +274,16 @@ $('form').submit(function () {
|
|||
}
|
||||
</style>
|
||||
<div style="margin: 0 auto; text-align: center">
|
||||
<p>Sei sicuro di voler deletere l' utente?</p>
|
||||
<p>{{ 'Are you sure you want to delete the user?'|t }}</p>
|
||||
<form method="post">
|
||||
<input id="modalità" type="hidden" value="delete" name="mod"></input>
|
||||
<input id="token" type="hidden" value="{{ token }}" name="token"></input>
|
||||
<input id="id" type="hidden" value="{{ id }}" name="id"></input>
|
||||
<button id="add" type="submit">invia</button>
|
||||
<button id="add" type="submit">{{ 'Submit'|t }}</button>
|
||||
</form>
|
||||
<script>
|
||||
$('form').submit(function () {
|
||||
return confirm("L'azione non può essere annullata. Sei sicuro di voler continuare?");
|
||||
return confirm("{{ 'The action cannot be canceled. Are you sure you want to continue?'|t }}");
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
// Translated by: Name Surname (github, email or another social profile url/username)
|
||||
|
||||
return [
|
||||
"E-mail" => "E-mail",
|
||||
"user@provider-email-domain.com" => "user@provider-email-domain.com",
|
||||
"Name" => "Name",
|
||||
"Username" => "Username",
|
||||
"Password" => "Password",
|
||||
"Birthday" => "Birthday",
|
||||
"Foreman" => "Foreman",
|
||||
"Driver" => "Driver",
|
||||
"Visible" => "Visible",
|
||||
"Enabled" => "Enabled",
|
||||
"Submit" => "Submit",
|
||||
"Are you sure you want to delete the service?" => "Are you sure you want to delete the service?",
|
||||
"The action cannot be canceled. Are you sure you want to continue?" => "The action cannot be canceled. Are you sure you want to continue?"
|
||||
];
|
Loading…
Reference in New Issue