Commit 08c334e0 authored by Sylvain's avatar Sylvain

Readme traduction

parent caa56735
......@@ -17,7 +17,7 @@ composer require goldenscarab/modulus-service-field
Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
## Liste des champs disponibles
## List of available fields
- [Input](#input)
- [Select](#select)
- [Textarea](#textarea)
......@@ -41,14 +41,14 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
'value' => 23.4,
]); !!}
// Avancé
// Avanced
{!! Field::input([
'label' => 'Total',
'name' => 'total',
'value' => 23.4,
'prefix' => '<i class="fa fa-money"></i>',
'suffix' => '€',
'help' => 'Taxe comprise',
'help' => 'Taxes included',
'indice' => 1,
'inline' => true,
'attributes' => [
......@@ -58,7 +58,7 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
'placeholder' => '123,30',
'onchange' => "console.log('change')",
'style' => 'background-color: #c3c3c3;',
'data-type' => 'column',
'data-type' => 'money',
'disabled' => true,
'readonly' => true,
'required' => true,
......@@ -68,7 +68,7 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
'popover' => [
'placement' => 'right',
'title' => 'Information',
'content' => "Le montant est calculé selon les éléments communiqué. Il peux néanmoins variée suivant d'autre facteurs non pris en compte"
'content' => "Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellendus ab fugiat recusandae quam incidunt quasi, molestiae velit quidem qui eos in delectus quo temporibus nam magnam excepturi nisi. Ipsa, deserunt."
],
]) !!}
```
......@@ -77,8 +77,8 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
```php
// Simple
{!! Field::select([
'label' => 'Menu déroulant',
'name' => 'my_field_name',
'label' => 'My select',
'name' => 'my_select',
'options' => [
'source' => [
1 => 'Item 1',
......@@ -87,29 +87,29 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
]
]) !!}
// Simple avec groupes
// Simple with groupes
{!! Field::select([
'label' => 'Menu déroulant',
'name' => 'my_field_name',
'label' => 'My select',
'name' => 'my_select',
'value' => 23,
'options' => [
'default' => ['value' => '', 'label' => 'Choisir...'],
'default' => ['value' => '', 'label' => 'Choose...'],
'source' => [
'Groupe 1' => [
23 => 'Élement 23',
24 => 'Élement 24',
25 => 'Élement 25',
23 => 'Item 23',
24 => 'Item 24',
25 => 'Item 25',
],
'Groupe 2' => [
26 => 'Élement 26',
27 => 'Élement 27',
28 => 'Élement 28',
26 => 'Item 26',
27 => 'Item 27',
28 => 'Item 28',
]
]
]
]) !!}
// Avancé avec Callback
// Avanced with Callback
{!! Field::select([
'label' => 'Collection',
'name' => 'collection',
......@@ -126,7 +126,7 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
],
'options' => [
'source' => $collection,
'default' => ['value' => '', 'label' => 'Choisir...'],
'default' => ['value' => '', 'label' => 'Choose...'],
'value' => ':id',
'label' => ['callback' => [
'function' => 'strtoupper',
......@@ -138,15 +138,15 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
]
]); !!}
// Avancé avec Data
// Avanced with Data
{!! Field::select([
'label' => 'Ville',
'label' => 'City',
'name' => 'city_id',
'value' => 2,
'placeholder' => "Choisir...",
'placeholder' => "Choose...",
'options' => [
'source' => $collection,
'default' => ['value' => '', 'label' => 'Choisir une ville...'],
'default' => ['value' => '', 'label' => 'Choose a city...'],
'value' => ':id',
'label' => ['template' => [
'format' => '%s - %s',
......@@ -163,7 +163,7 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
#### Textarea
```php
{!! Field::textarea([
'label' => 'Contenu',
'label' => 'Content',
'name' => 'content',
'value' => $item->content,
'attributes' => [
......@@ -177,7 +177,7 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
```php
// Simple
{!! Field::checkbox([
'label' => 'Choix multiple',
'label' => 'My checkboxes',
'name' => 'my_field_name',
'value' => [2, 3],
'inline' => true,
......@@ -189,10 +189,10 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
]],
]) !!}
// Avancé
// Avanced
{!! Field::checkbox([
'label' => 'Mon Champs',
'name' => 'mon-champs',
'label' => 'My checkboxes',
'name' => 'my_field_name',
'value' => ['value-2', 'value-3'],
'inline' => true,
'options' => [
......@@ -237,7 +237,7 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
]],
]) !!}
// Avancé
// Avanced
{!! Field::radio([
'label' => 'Mon Champs',
'name' => 'mon-champs',
......@@ -305,7 +305,7 @@ Laravel 5.8 uses Package Auto-Discovery, so doesn't require you to manually add
'label' => 'Uploader',
'name' => 'csv',
'prefix' => 'Fichier',
'attributes' => ['placeholder' => 'Aucun fichier choisi']
'attributes' => ['placeholder' => 'No file selected']
]) !!}
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment