Merge branch 'develop' into trunk
This commit is contained in:
commit
6dd90e283d
8 changed files with 18 additions and 34 deletions
|
|
@ -18,18 +18,6 @@ class ContactRequest extends FormRequest
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare the data for validation.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function prepareForValidation(): void
|
||||
{
|
||||
$this->merge([
|
||||
'terms' => $this->terms ? true : false
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
|
|
@ -42,7 +30,6 @@ class ContactRequest extends FormRequest
|
|||
'last_name' => 'required|min:1',
|
||||
'email' => 'required|email:rfc,spoof,dns,strict',
|
||||
'message' => 'required|string|min:10',
|
||||
'terms' => 'accepted',
|
||||
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
|
||||
'g-recaptcha-response' => function (string $attribute, mixed $value, \Closure $fail) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -275,5 +275,7 @@
|
|||
"up to date on the latest news around nature & respect.": "die aktuellsten Neuigkeiten und Entwicklungen rund um Nature & Respect.",
|
||||
"You must accept reCaptcha cookies to use the forms.": "Um die Formulare nutzen zu können, müssen Sie reCaptcha-Cookies akzeptieren.",
|
||||
"Accept this cookie to use the forms": "Akzeptieren Sie dieses Cookie, um die Formulare zu verwenden",
|
||||
"Authorize": "Autorisieren"
|
||||
"Authorize": "Autorisieren",
|
||||
"Privacy Policy": "Datenschutzrichtlinie",
|
||||
"You must accept cookies :type to view the videos.": "Um die Videos ansehen zu können, müssen Sie :type-Cookies akzeptieren."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ $xmobile: 320px;
|
|||
border-width: 0.1rem;
|
||||
border-radius: 1rem;
|
||||
// * Prevent weird theme override
|
||||
color: #fff !important;
|
||||
font-size: 0.9rem !important;
|
||||
|
||||
@include min-width($mobile) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
@include('fo.partials.inline-cookie', [
|
||||
'cookie_name' => $player,
|
||||
'class' => ['d-flex-column'],
|
||||
'text_line_1' => __('Vous devez accepter les cookies :type pour visionner les videos.', [
|
||||
'text_line_1' => __('You must accept cookies :type to view the videos.', [
|
||||
'type' => $player,
|
||||
]),
|
||||
])
|
||||
|
|
|
|||
|
|
@ -77,23 +77,13 @@
|
|||
</div>
|
||||
|
||||
<div class="mb-6 sm:col-span-3">
|
||||
<div class="check-standard text-sm mt-2 mr-6">
|
||||
<label for="terms" class="cursor-pointer text-weiss">
|
||||
<input type="checkbox" id="terms" name="terms" class="hidden">
|
||||
<span class="">
|
||||
{!! __('The information collected from this form is processed by the Data Controller to follow up on your contact request. To know about your rights, you can consult :start the Privacy Policy :end' ,[
|
||||
'start' => '<a href="' . route('privacy') . '" class="hover:underline">',
|
||||
'end' => '</a>'
|
||||
]) !!} *
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<span class="">
|
||||
{!! __('The information collected from this form is processed by the Data Controller to follow up on your contact request. To know about your rights, you can consult :start the Privacy Policy :end' ,[
|
||||
'start' => '<a href="' . route('privacy') . '" class="hover:underline">',
|
||||
'end' => '</a>'
|
||||
]) !!}
|
||||
</span>
|
||||
</div>
|
||||
@if ($errors->has('terms'))
|
||||
<div class="mb-6">
|
||||
<span class="text-red-600">{{ $errors->first('terms') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="mb-6 sm:col-span-3">
|
||||
<p>*{{ __('Required fields') }}</p>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
@include('front.partials.inline-cookie', [
|
||||
'cookie_name' => $type,
|
||||
'class' => ['d-flex-column'],
|
||||
'text_line_1' => __('Vous devez accepter les cookies :type pour visionner les videos.', [
|
||||
'text_line_1' => __('You must accept cookies :type to view the videos.', [
|
||||
'type' => $type,
|
||||
]),
|
||||
])
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<span>{!! nl2br(e($strings->banner_title)) !!}</span>
|
||||
</div>
|
||||
<div class="cn-banner-para-p">
|
||||
<p>{!! clean($strings->banner_text) !!}</p>
|
||||
<p>{!! $strings->banner_text !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,11 @@ $strings = (object)[
|
|||
'button_allow_all_title' => __('cookie-notice.button_allow_all_title'),
|
||||
'button_validate_and_close' => Str::upper(__('cookie-notice.button_validate_and_close')),
|
||||
'banner_title' => __('cookie-notice.banner_title', ['site_name' => $site_name]),
|
||||
'banner_text' => __('cookie-notice.banner_text'),
|
||||
'banner_text' => sprintf(
|
||||
"%s<br><br>%s",
|
||||
__('cookie-notice.banner_text'),
|
||||
"<a class='underline' href='" . route('privacy') . "'>" . __('Privacy Policy') . "</a>"
|
||||
),
|
||||
'panel_title' => __('cookie-notice.panel_title'),
|
||||
'panel_content' => __('cookie-notice.panel_content'),
|
||||
'panel_subtitle' => __('cookie-notice.panel_subtitle'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue