diff --git a/app/Http/Requests/Fo/ContactRequest.php b/app/Http/Requests/Fo/ContactRequest.php index ff5aa32..32b9375 100644 --- a/app/Http/Requests/Fo/ContactRequest.php +++ b/app/Http/Requests/Fo/ContactRequest.php @@ -45,9 +45,9 @@ class ContactRequest extends FormRequest 'society' => 'sometimes|nullable|string|between:3,255', 'email' => 'required|email:rfc,strict,dns,spoof,filter|max:255', 'phone' => 'sometimes|nullable|numeric|min:0', - 'address' => 'sometimes|nullable|string|between:3,255', - 'postal_code' => 'sometimes|nullable|numeric|min:0', - 'city' => 'sometimes|nullable|string|between:3,255', + 'address' => 'required|string|between:3,255', + 'postal_code' => 'required|numeric|min:0', + 'city' => 'required|string|between:3,255', 'object' => ['required', new Enum(ObjectEnum::class)], 'message' => 'required|string|between:3,500', 'accept_rules' => 'required|boolean', diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index dfe075d..1f45819 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -221,69 +221,70 @@ return [ 'female' => 'of the ', 'vowel' => 'of the ' ], - 'accept_rules' => 'acceptation of rules', - 'activated' => 'activated', - 'attribute_alt' => 'alt attribute', - 'attribute_title' => 'title attribute', - 'background' => 'background', - 'category' => 'category', - 'category' => 'category', - 'civility' => 'civility', - 'cooking_advice' => 'cooking advice', - 'description' => 'description', - 'direction' => 'direction', - 'event' => 'event', - 'file' => 'file', - 'ingredients' => 'ingredients', - 'job' => 'job', - 'key_earth_1' => 'key number for "respect the earth" 1', - 'key_earth_2' => 'key number for "respect the earth" 2', - 'key_feed' => 'key number for "feed well"', - 'key_territory' => 'key number for "integrate its territory"', - 'key_together_1' => 'key number for "live together" 1', - 'key_together_2' => 'key number for "live together" 2', - 'key_together_3' => 'key number for "live together" 3', - 'key_together_4' => 'key number for "live together" 4', - 'model' => 'target element', - 'nutritionnal_values' => 'nutritionnal values', - 'object' => 'object', - 'order' => 'order', - 'picture_1' => 'picture one', - 'picture_2' => 'picture two', - 'picture_3' => 'picture three', - 'picture_alt' => 'attribut alt of the :field', - 'picture_ambiance' => 'ambiance picture', - 'picture_packshot' => 'packshot picture', - 'picture_productsheet' => 'productsheet picture', - 'picture_thumbnail' => 'thumbnail', - 'picture_title' => 'attribut title of the :field', - 'picture' => 'picture', - 'presentation_content' => 'presentation content', - 'presentation_title' => 'presentation title', - 'product_barcode' => 'product barcode', - 'product_date_consumption' => 'product date consumption', - 'product_date_limit' => 'product date limit', - 'product_location' => 'product location', - 'product_lot' => 'product lot', - 'product_name' => 'product name', - 'publication' => 'publication', - 'publish_at' => 'publication date', - 'publish_at' => 'publication date', - 'send_data' => 'autorization to send data', - 'seo_description' => 'SEO description', - 'seo_title' => 'SEO title', - 'seo' => 'SEO', - 'society' => 'society', - 'static_page_type' => 'static page type', - 'statut' => 'statut', - 'subtitle' => 'subtitle', - 'tagline' => 'tagline', - 'target' => 'target', - 'title_part1' => 'title part one', - 'title_part2' => 'title part two', - 'title_part3' => 'title part three', - 'unpublish_at' => 'end of publication date', - 'unpublish_at' => 'end of publication date', - 'video_id' => 'ID of the video', + 'accept_rules' => 'acceptation of rules', + 'activated' => 'activated', + 'attribute_alt' => 'alt attribute', + 'attribute_title' => 'title attribute', + 'background' => 'background', + 'category' => 'category', + 'category' => 'category', + 'civility' => 'civility', + 'cooking_advice' => 'cooking advice', + 'description' => 'description', + 'direction' => 'direction', + 'event' => 'event', + 'file' => 'file', + 'ingredients' => 'ingredients', + 'job' => 'job', + 'key_earth_1' => 'key number for "respect the earth" 1', + 'key_earth_2' => 'key number for "respect the earth" 2', + 'key_feed' => 'key number for "feed well"', + 'key_territory' => 'key number for "integrate its territory"', + 'key_together_1' => 'key number for "live together" 1', + 'key_together_2' => 'key number for "live together" 2', + 'key_together_3' => 'key number for "live together" 3', + 'key_together_4' => 'key number for "live together" 4', + 'model' => 'target element', + 'nutritionnal_values' => 'nutritionnal values', + 'object' => 'object', + 'order' => 'order', + 'picture_1' => 'picture one', + 'picture_2' => 'picture two', + 'picture_3' => 'picture three', + 'picture_alt' => 'attribut alt of the :field', + 'picture_ambiance' => 'ambiance picture', + 'picture_packshot' => 'packshot picture', + 'picture_productsheet' => 'productsheet picture', + 'picture_thumbnail' => 'thumbnail', + 'picture_title' => 'attribut title of the :field', + 'picture' => 'picture', + 'presentation_content' => 'presentation content', + 'presentation_title' => 'presentation title', + 'product_barcode' => 'product barcode', + 'product_barcode_detail' => '(13 digits)', + 'product_date_consumption' => 'product date consumption', + 'product_date_limit' => 'product date limit', + 'product_location' => 'product location', + 'product_lot' => 'product lot', + 'product_name' => 'product name', + 'publication' => 'publication', + 'publish_at' => 'publication date', + 'publish_at' => 'publication date', + 'send_data' => 'autorization to send data', + 'seo_description' => 'SEO description', + 'seo_title' => 'SEO title', + 'seo' => 'SEO', + 'society' => 'society', + 'static_page_type' => 'static page type', + 'statut' => 'statut', + 'subtitle' => 'subtitle', + 'tagline' => 'tagline', + 'target' => 'target', + 'title_part1' => 'title part one', + 'title_part2' => 'title part two', + 'title_part3' => 'title part three', + 'unpublish_at' => 'end of publication date', + 'unpublish_at' => 'end of publication date', + 'video_id' => 'ID of the video', ], ]; diff --git a/resources/lang/fr/validation.php b/resources/lang/fr/validation.php index bc9cd54..42eddd1 100644 --- a/resources/lang/fr/validation.php +++ b/resources/lang/fr/validation.php @@ -223,69 +223,70 @@ return [ 'female' => 'de la ', 'vowel' => 'de l\'' ], - 'accept_rules' => 'acceptation des règles', - 'activated' => 'activé', - 'attribute_alt' => 'attribut alt', - 'attribute_title' => 'attribut title', - 'background' => 'fond', - 'category' => 'catégorie', - 'category' => 'catégorie', - 'civility' => 'civilité', - 'cooking_advice' => 'conseil de réchauffage', - 'description' => 'description', - 'direction' => 'direction', - 'event' => 'évènement', - 'file' => 'fichier', - 'ingredients' => 'ingrédients', - 'job' => 'métier', - 'key_earth_1' => 'Chiffre clé "respecter la terre" 1', - 'key_earth_2' => 'Chiffre clé "respecter la terre" 2', - 'key_feed' => 'chiffre clé "bien nourrir"', - 'key_territory' => 'Chiffre clé "intégrer son territoire"', - 'key_together_1' => 'Chiffre clé "vivre ensemble" 1', - 'key_together_2' => 'Chiffre clé "vivre ensemble" 2', - 'key_together_3' => 'Chiffre clé "vivre ensemble" 3', - 'key_together_4' => 'Chiffre clé "vivre ensemble" 4', - 'model' => 'élément ciblé', - 'nutritionnal_values' => 'valeurs nutritionnelles', - 'object' => 'objet', - 'order' => 'ordre', - 'picture_1' => 'image une', - 'picture_2' => 'image deux', - 'picture_3' => 'image trois', - 'picture_alt' => 'attribut alt de l\':field', - 'picture_ambiance' => 'image d\'ambiance', - 'picture_packshot' => 'image du packshot', - 'picture_productsheet' => 'image de la fiche produit', - 'picture_thumbnail' => 'vignette', - 'picture_title' => 'attribut title de l\':field', - 'picture' => 'image', - 'presentation_content' => 'contenu de présentation', - 'presentation_title' => 'titre de présentation', - 'product_barcode' => 'le code barre du produit', - 'product_date_consumption' => 'date de consommation', - 'product_date_limit' => 'date de limite de consommation', - 'product_location' => 'le lieu de l\'achat', - 'product_lot' => 'numéro du lot figurant à côté de la date', - 'product_name' => 'nom du produit', - 'publication' => 'publication', - 'publish_at' => 'date de publication', - 'publish_at' => 'date de publication', - 'send_data' => 'autorisation d\'enregistrer des données', - 'seo_description' => 'description SEO', - 'seo_title' => 'titre SEO', - 'seo' => 'référencement SEO', - 'society' => 'société', - 'static_page_type' => 'type de page', - 'statut' => 'statut', - 'subtitle' => 'sous-titre', - 'tagline' => 'phrase d\'accroche', - 'target' => 'cible', - 'title_part1' => 'première partie du titre', - 'title_part2' => 'seconde partie du titre', - 'title_part3' => 'dernière partie du titre', - 'unpublish_at' => 'date de fin de publication', - 'unpublish_at' => 'date de fin de publication', - 'video_id' => 'ID de la vidéo', + 'accept_rules' => 'acceptation des règles', + 'activated' => 'activé', + 'attribute_alt' => 'attribut alt', + 'attribute_title' => 'attribut title', + 'background' => 'fond', + 'category' => 'catégorie', + 'category' => 'catégorie', + 'civility' => 'civilité', + 'cooking_advice' => 'conseil de réchauffage', + 'description' => 'description', + 'direction' => 'direction', + 'event' => 'évènement', + 'file' => 'fichier', + 'ingredients' => 'ingrédients', + 'job' => 'métier', + 'key_earth_1' => 'Chiffre clé "respecter la terre" 1', + 'key_earth_2' => 'Chiffre clé "respecter la terre" 2', + 'key_feed' => 'chiffre clé "bien nourrir"', + 'key_territory' => 'Chiffre clé "intégrer son territoire"', + 'key_together_1' => 'Chiffre clé "vivre ensemble" 1', + 'key_together_2' => 'Chiffre clé "vivre ensemble" 2', + 'key_together_3' => 'Chiffre clé "vivre ensemble" 3', + 'key_together_4' => 'Chiffre clé "vivre ensemble" 4', + 'model' => 'élément ciblé', + 'nutritionnal_values' => 'valeurs nutritionnelles', + 'object' => 'objet', + 'order' => 'ordre', + 'picture_1' => 'image une', + 'picture_2' => 'image deux', + 'picture_3' => 'image trois', + 'picture_alt' => 'attribut alt de l\':field', + 'picture_ambiance' => 'image d\'ambiance', + 'picture_packshot' => 'image du packshot', + 'picture_productsheet' => 'image de la fiche produit', + 'picture_thumbnail' => 'vignette', + 'picture_title' => 'attribut title de l\':field', + 'picture' => 'image', + 'presentation_content' => 'contenu de présentation', + 'presentation_title' => 'titre de présentation', + 'product_barcode' => 'code barre du produit', + 'product_barcode_detail' => '(13 chiffres)', + 'product_date_consumption' => 'date de consommation', + 'product_date_limit' => 'date de limite de consommation', + 'product_location' => 'le lieu de l\'achat', + 'product_lot' => 'numéro du lot figurant à côté de la date', + 'product_name' => 'nom du produit', + 'publication' => 'publication', + 'publish_at' => 'date de publication', + 'publish_at' => 'date de publication', + 'send_data' => 'autorisation d\'enregistrer des données', + 'seo_description' => 'description SEO', + 'seo_title' => 'titre SEO', + 'seo' => 'référencement SEO', + 'society' => 'société', + 'static_page_type' => 'type de page', + 'statut' => 'statut', + 'subtitle' => 'sous-titre', + 'tagline' => 'phrase d\'accroche', + 'target' => 'cible', + 'title_part1' => 'première partie du titre', + 'title_part2' => 'seconde partie du titre', + 'title_part3' => 'dernière partie du titre', + 'unpublish_at' => 'date de fin de publication', + 'unpublish_at' => 'date de fin de publication', + 'video_id' => 'ID de la vidéo', ], ]; diff --git a/resources/views/fo/pages/contact.blade.php b/resources/views/fo/pages/contact.blade.php index 61e62c4..283d892 100644 --- a/resources/views/fo/pages/contact.blade.php +++ b/resources/views/fo/pages/contact.blade.php @@ -79,20 +79,20 @@