Skip to content

Commit

Permalink
forms: missing information added
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 14, 2024
1 parent a24403c commit cd4af22
Show file tree
Hide file tree
Showing 16 changed files with 176 additions and 16 deletions.
12 changes: 11 additions & 1 deletion forms/bg/controls.texy
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ $form->addInteger('year', 'Year:')
->addRule($form::Range, 'The year must be in the range %d to %d.', [1900, 2023 |1900, 2023]);
```

Елементът се визуализира като `<input type="numeric">`. Като използвате метода `setHtmlType()`, можете да промените типа на `range` за показване като плъзгач или на `text`, ако предпочитате стандартно текстово поле без специалното поведение на `numeric`.


addFloat(string|int $name, $label=null): TextInput .[method]{data-version:3.1.12}
=================================================================================
Expand All @@ -70,7 +72,9 @@ $form->addFloat('level', 'Level:')
->addRule($form::Range, 'Нивото трябва да е в диапазона от %d до %d.', [0, 100 |0, 100]);
```

Nette и Chrome приемат както запетая, така и точка като десетичен разделител. За да може Firefox също да приема запетая, трябва да зададете съответния език в HTML атрибута `lang`, или директно към този елемент, или към някой родителски елемент, например `<html lang="cs">`.
Елементът се визуализира като `<input type="numeric">`. Като използвате метода `setHtmlType()`, можете да промените типа на `range` за показване като плъзгач или на `text`, ако предпочитате стандартно текстово поле без специалното поведение на `numeric`.

Nette и браузърът Chrome приемат както запетая, така и точка като десетични разделители. За да направите тази функционалност достъпна във Firefox, се препоръчва да зададете атрибута `lang` или за конкретния елемент, или за цялата страница, например, `<html lang="cs">`.


addEmail(string|int $name, $label=null): TextInput .[method]
Expand Down Expand Up @@ -134,6 +138,12 @@ $form->addCheckboxList('colors', 'Цвета:', [

При задаване на стойности по подразбиране се проверява също дали те са един от предлаганите елементи, в противен случай се прави изключение. Тази проверка може да бъде деактивирана с помощта на `checkDefaultValue(false)`.

Ако изпращате формуляр чрез метода `GET`, можете да изберете по-компактен метод за прехвърляне на данни, който спестява от размера на низ от заявки. Това се активира чрез задаване на HTML атрибут на формуляра:

```php
$form->setHtmlAttribute('data-nette-compact');
```


addRadioList(string|int $name, $label=null, array $items=null): RadioList .[method]
===================================================================================
Expand Down
12 changes: 11 additions & 1 deletion forms/cs/controls.texy
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ $form->addInteger('year', 'Rok:')
->addRule($form::Range, 'Rok musí být v rozsahu od %d do %d.', [1900, 2023]);
```

Prvek se vykresluje jako `<input type="numeric">`. Použitím metody `setHtmlType()` lze změnit typ na `range` pro zobrazení v podobě posuvníku, nebo na `text`, pokud preferujete standardní textové pole bez speciálního chování typu `numeric`.


addFloat(string|int $name, $label=null): TextInput .[method]{data-version:3.1.12}
=================================================================================
Expand All @@ -70,7 +72,9 @@ $form->addFloat('level', 'Úroveň:')
->addRule($form::Range, 'Úroveň musí být v rozsahu od %d do %d.', [0, 100]);
```

Nette a prohlížeč Chrome akceptují jako oddělovač desetinných míst čárku i tečku. Aby Firefox také akceptoval čárku, je potřeba nastavit odpovídající jazyk v HTML atributu `lang`, a to buď přímo tomuto prvku, nebo kterémukoliv nadřazenému elementu, například `<html lang="cs">`.
Prvek se vykresluje jako `<input type="numeric">`. Použitím metody `setHtmlType()` lze změnit typ na `range` pro zobrazení v podobě posuvníku, nebo na `text`, pokud preferujete standardní textové pole bez speciálního chování typu `numeric`.

Nette a prohlížeč Chrome akceptují jako oddělovač desetinných míst jak čárku, tak tečku. Aby byla tato funkcionalita dostupná i ve Firefoxu, je doporučeno nastavit atribut `lang` buď pro daný prvek nebo pro celou stránku, například `<html lang="cs">`.


addEmail(string|int $name, $label=null): TextInput .[method]
Expand Down Expand Up @@ -134,6 +138,12 @@ Prvek automaticky kontroluje, že nedošlo k podvržení a že vybrané položky

Při nastavení výchozích vybraných položek také kontroluje, že jde o jedny z nabízených, jinak vyhodí výjimku. Tuto kontrolu lze vypnout pomocí `checkDefaultValue(false)`.

Pokud odesíláte formulář metodou `GET`, můžete zvolit kompaktnější způsob přenosu dat, který šetří velikost query stringu. Aktivuje se nastavením HTML atributu formuláře:

```php
$form->setHtmlAttribute('data-nette-compact');
```


addRadioList(string|int $name, $label=null, array $items=null): RadioList .[method]
===================================================================================
Expand Down
12 changes: 11 additions & 1 deletion forms/de/controls.texy
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ $form->addInteger('Jahr', 'Jahr:')
->addRule($form::Range, 'Das Jahr muss im Bereich %d bis %d liegen.', [1900, 2023 |1900, 2023]);
```

Das Element wird wiedergegeben als `<input type="numeric">`. Mit der Methode `setHtmlType()` können Sie den Typ in `range` für die Anzeige als Schieberegler oder in `text` ändern, wenn Sie ein Standardtextfeld ohne das spezielle Verhalten von `numeric` bevorzugen.


addFloat(string|int $name, $label=null): TextInput .[method]{data-version:3.1.12}
=================================================================================
Expand All @@ -70,7 +72,9 @@ $form->addFloat('Ebene', 'Ebene:')
->addRule($form::Range, 'Das Niveau muss im Bereich %d bis %d liegen.', [0, 100 |0, 100]);
```

Nette und Chrome akzeptieren sowohl Komma als auch Punkt als Dezimaltrennzeichen. Damit Firefox auch ein Komma akzeptiert, müssen Sie die entsprechende Sprache im HTML-Attribut `lang` setzen, entweder direkt in diesem Element oder in einem übergeordneten Element, zum Beispiel `<html lang="cs">`.
Das Element wird wiedergegeben als `<input type="numeric">`. Mit der Methode `setHtmlType()` können Sie den Typ in `range` für die Anzeige als Schieberegler oder in `text` ändern, wenn Sie ein Standardtextfeld ohne das spezielle Verhalten von `numeric` bevorzugen.

Nette und der Chrome-Browser akzeptieren sowohl ein Komma als auch einen Punkt als Dezimaltrennzeichen. Um diese Funktionalität in Firefox verfügbar zu machen, empfiehlt es sich, das Attribut `lang` entweder für das spezifische Element oder für die gesamte Seite zu setzen, zum Beispiel, `<html lang="cs">`.


addEmail(string|int $name, $label=null): TextInput .[method]
Expand Down Expand Up @@ -134,6 +138,12 @@ Das Element überprüft automatisch, dass keine Fälschung vorliegt und dass die

Wenn Standardwerte gesetzt werden, wird auch geprüft, ob sie zu den angebotenen Artikeln gehören, andernfalls wird eine Ausnahme geworfen. Diese Prüfung kann mit `checkDefaultValue(false)` ausgeschaltet werden.

Wenn Sie ein Formular mit der Methode `GET` absenden, können Sie eine kompaktere Datenübertragungsmethode wählen, die die Größe des Abfrage-Strings einspart. Dies wird durch die Einstellung des HTML-Attributs des Formulars aktiviert:

```php
$form->setHtmlAttribute('data-nette-compact');
```


addRadioList(string|int $name, $label=null, array $items=null): RadioList .[method]
===================================================================================
Expand Down
12 changes: 11 additions & 1 deletion forms/el/controls.texy
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ $form->addInteger('year', 'Year:')
->addRule($form::Range, 'Το έτος πρέπει να βρίσκεται στο εύρος %d έως %d.', [1900, 2023 |1900, 2023]),
```

Το στοιχείο αποδίδεται ως `<input type="numeric">`. Χρησιμοποιώντας τη μέθοδο `setHtmlType()`, μπορείτε να αλλάξετε τον τύπο σε `range` για εμφάνιση ως ολισθητής ή σε `text` αν προτιμάτε ένα τυπικό πεδίο κειμένου χωρίς την ειδική συμπεριφορά του `numeric`.


addFloat(string|int $name, $label=null): TextInput .[method]{data-version:3.1.12}
=================================================================================
Expand All @@ -70,7 +72,9 @@ $form->addFloat('level', 'Level:')
->addRule($form::Range, 'Το επίπεδο πρέπει να είναι στο εύρος %d έως %d.', [0, 100 |0, 100]),
```

Το Nette και το Chrome δέχονται τόσο το κόμμα όσο και την τελεία ως δεκαδικό διαχωριστικό. Για να δέχεται και ο Firefox το κόμμα, πρέπει να ορίσετε την αντίστοιχη γλώσσα στο χαρακτηριστικό HTML `lang`, είτε απευθείας σε αυτό το στοιχείο είτε σε οποιοδήποτε γονικό στοιχείο, για παράδειγμα `<html lang="cs">`.
Το στοιχείο αποδίδεται ως `<input type="numeric">`. Χρησιμοποιώντας τη μέθοδο `setHtmlType()`, μπορείτε να αλλάξετε τον τύπο σε `range` για εμφάνιση ως ολισθητής ή σε `text` αν προτιμάτε ένα τυπικό πεδίο κειμένου χωρίς την ειδική συμπεριφορά του `numeric`.

Η Nette και το πρόγραμμα περιήγησης Chrome δέχονται τόσο ένα κόμμα όσο και μια τελεία ως δεκαδικά διαχωριστικά. Για να είναι διαθέσιμη αυτή η λειτουργικότητα στον Firefox, συνιστάται να ορίσετε το χαρακτηριστικό `lang` είτε για το συγκεκριμένο στοιχείο είτε για ολόκληρη τη σελίδα, για παράδειγμα, `<html lang="cs">`.


addEmail(string|int $name, $label=null): TextInput .[method]
Expand Down Expand Up @@ -134,6 +138,12 @@ $form->addCheckboxList('colors', 'Colors:', [

Όταν ορίζονται προεπιλεγμένες τιμές, ελέγχει επίσης ότι είναι ένα από τα προσφερόμενα στοιχεία, διαφορετικά πετάει μια εξαίρεση. Αυτός ο έλεγχος μπορεί να απενεργοποιηθεί με τη μέθοδο `checkDefaultValue(false)`.

Εάν υποβάλετε μια φόρμα χρησιμοποιώντας τη μέθοδο `GET`, μπορείτε να επιλέξετε μια πιο συμπαγή μέθοδο μεταφοράς δεδομένων που εξοικονομεί το μέγεθος της συμβολοσειράς ερωτημάτων. Αυτό ενεργοποιείται με τη ρύθμιση του χαρακτηριστικού HTML της φόρμας:

```php
$form->setHtmlAttribute('data-nette-compact');
```


addRadioList(string|int $name, $label=null, array $items=null): RadioList .[method]
===================================================================================
Expand Down
12 changes: 11 additions & 1 deletion forms/en/controls.texy
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ $form->addInteger('year', 'Year:')
->addRule($form::Range, 'The year must be in the range %d to %d.', [1900, 2023]);
```

The element is rendered as `<input type="numeric">`. By using the `setHtmlType()` method, you can change the type to `range` for display as a slider, or to `text` if you prefer a standard text field without the special behavior of `numeric`.


addFloat(string|int $name, $label=null): TextInput .[method]{data-version:3.1.12}
=================================================================================
Expand All @@ -70,7 +72,9 @@ $form->addFloat('level', 'Level:')
->addRule($form::Range, 'The level must be in the range %d to %d.', [0, 100]);
```

Nette and Chrome accept both comma and period as decimal separator. For Firefox to also accept a comma, you need to set the corresponding language in the HTML attribute `lang`, either directly to this element or to any parent element, for example `<html lang="cs">`.
The element is rendered as `<input type="numeric">`. By using the `setHtmlType()` method, you can change the type to `range` for display as a slider, or to `text` if you prefer a standard text field without the special behavior of `numeric`.

Nette and the Chrome browser accept both a comma and a dot as decimal separators. To make this functionality available in Firefox, it is recommended to set the `lang` attribute either for the specific element or for the entire page, for example, `<html lang="cs">`.


addEmail(string|int $name, $label=null): TextInput .[method]
Expand Down Expand Up @@ -134,6 +138,12 @@ The element automatically checks that there has been no forgery and that the sel

When default values are set, it also checks that they are one of the offered items, otherwise it throws an exception. This check can be turned off with `checkDefaultValue(false)`.

If you are submitting a form using the `GET` method, you can choose a more compact data transfer method that saves on the size of the query string. This is activated by setting the HTML attribute of the form:

```php
$form->setHtmlAttribute('data-nette-compact');
```


addRadioList(string|int $name, $label=null, array $items=null): RadioList .[method]
===================================================================================
Expand Down
12 changes: 11 additions & 1 deletion forms/es/controls.texy
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ $form->addInteger('año', 'Año:')
->addRule($form::Range, 'El año debe estar en el rango %d a %d.', [1900, 2023 |1900, 2023]);
```

El elemento se representa como `<input type="numeric">`. Utilizando el método `setHtmlType()`, puede cambiar el tipo a `range` para mostrarlo como un deslizador, o a `text` si prefiere un campo de texto estándar sin el comportamiento especial de `numeric`.


addFloat(string|int $name, $label=null): TextInput .[method]{data-version:3.1.12}
=================================================================================
Expand All @@ -70,7 +72,9 @@ $form->addFloat('nivel', 'Nivel:')
->addRule($form::Range, 'El nivel debe estar en el rango %d a %d.', [0, 100 |0, 100]);
```

Nette y Chrome aceptan tanto la coma como el punto como separador decimal. Para que Firefox también acepte una coma, es necesario establecer el idioma correspondiente en el atributo HTML `lang`, ya sea directamente en este elemento o en cualquier elemento padre, por ejemplo `<html lang="cs">`.
El elemento se representa como `<input type="numeric">`. Utilizando el método `setHtmlType()`, puede cambiar el tipo a `range` para mostrarlo como un deslizador, o a `text` si prefiere un campo de texto estándar sin el comportamiento especial de `numeric`.

Nette y el navegador Chrome aceptan tanto una coma como un punto como separadores decimales. Para que esta funcionalidad esté disponible en Firefox, se recomienda establecer el atributo `lang` para el elemento específico o para toda la página, por ejemplo, `<html lang="cs">`.


addEmail(string|int $name, $label=null): TextInput .[method]
Expand Down Expand Up @@ -134,6 +138,12 @@ El elemento comprueba automáticamente que no ha habido falsificación y que los

Cuando se establecen valores por defecto, también comprueba que son uno de los elementos ofrecidos, de lo contrario lanza una excepción. Esta comprobación puede desactivarse con `checkDefaultValue(false)`.

Si está enviando un formulario utilizando el método `GET`, puede elegir un método de transferencia de datos más compacto que ahorra en el tamaño de la cadena de consulta. Esto se activa configurando el atributo HTML del formulario:

```php
$form->setHtmlAttribute('data-nette-compact');
```


addRadioList(string|int $name, $label=null, array $items=null): RadioList .[method]
===================================================================================
Expand Down
12 changes: 11 additions & 1 deletion forms/fr/controls.texy
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ $form->addInteger('year', 'Year:')
->addRule($form::Range, 'L'année doit être comprise entre %d et %d.', [1900, 2023 |1900, 2023]) ;
```

L'élément est rendu sous la forme `<input type="numeric">`. En utilisant la méthode `setHtmlType()`, vous pouvez changer le type en `range` pour l'afficher comme un curseur, ou en `text` si vous préférez un champ de texte standard sans le comportement spécial de `numeric`.


addFloat(string|int $name, $label=null): TextInput .[method]{data-version:3.1.12}
=================================================================================
Expand All @@ -70,7 +72,9 @@ $form->addFloat('niveau', 'Niveau:')
->addRule($form::Range, 'Le niveau doit être compris entre %d et %d.', [0, 100 |0, 100]) ;
```

Nette et Chrome acceptent à la fois la virgule et le point comme séparateur décimal. Pour que Firefox accepte également la virgule, vous devez définir la langue correspondante dans l'attribut HTML `lang`, soit directement dans cet élément, soit dans un élément parent, par exemple `<html lang="cs">`.
L'élément est rendu sous la forme `<input type="numeric">`. En utilisant la méthode `setHtmlType()`, vous pouvez changer le type en `range` pour l'afficher comme un curseur, ou en `text` si vous préférez un champ de texte standard sans le comportement spécial de `numeric`.

Nette et le navigateur Chrome acceptent à la fois une virgule et un point comme séparateurs décimaux. Pour que cette fonctionnalité soit disponible dans Firefox, il est recommandé de définir l'attribut `lang` soit pour l'élément spécifique, soit pour la page entière, par exemple, `<html lang="cs">`.


addEmail(string|int $name, $label=null): TextInput .[method]
Expand Down Expand Up @@ -134,6 +138,12 @@ L'élément vérifie automatiquement qu'il n'y a pas eu de falsification et que

Lorsque des valeurs par défaut sont définies, la méthode vérifie également qu'il s'agit de l'un des éléments proposés, sinon elle lève une exception. Cette vérification peut être désactivée avec `checkDefaultValue(false)`.

Si vous soumettez un formulaire à l'aide de la méthode `GET`, vous pouvez choisir une méthode de transfert de données plus compacte qui réduit la taille de la chaîne de requête. Cette option est activée en définissant l'attribut HTML du formulaire :

```php
$form->setHtmlAttribute('data-nette-compact');
```


addRadioList(string|int $name, $label=null, array $items=null): RadioList .[method]
===================================================================================
Expand Down

0 comments on commit cd4af22

Please sign in to comment.