ready for launch
This commit is contained in:
parent
020b86949c
commit
9a2211f3ca
|
|
@ -31,7 +31,7 @@ public function submit(Request $request){
|
||||||
$data = $request->only(['name', 'surname', 'email', 'file', 'organization', 'is_attending', 'consent_form']);
|
$data = $request->only(['name', 'surname', 'email', 'file', 'organization', 'is_attending', 'consent_form']);
|
||||||
$data['attended'] = 0;
|
$data['attended'] = 0;
|
||||||
$data['is_attending'] = (bool)$data['is_attending'];
|
$data['is_attending'] = (bool)$data['is_attending'];
|
||||||
$data['consent_form'] = (bool)$data['consent_form'];
|
$data['consent_form'] = (bool)$data['consent_form'] ?? false;
|
||||||
|
|
||||||
$attender = Attender::create($data);
|
$attender = Attender::create($data);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,14 +22,15 @@
|
||||||
*Upon your confirmation of the following, you will receive a QR code to your e-mail which you must present at the registration together with your ID.
|
*Upon your confirmation of the following, you will receive a QR code to your e-mail which you must present at the registration together with your ID.
|
||||||
</p><br/>
|
</p><br/>
|
||||||
|
|
||||||
<input type="radio" id="is_attending" name="is_attending" required value="1">
|
<input type="radio" id="is_attending" name="is_attending" onclick="showConsent()" required value="1">
|
||||||
<label class="light" for="is_attending">I confirm my participation</label>
|
<label class="light" for="is_attending">I confirm my participation</label>
|
||||||
|
|
||||||
<input type="radio" name="is_attending" id="not_attending" required value="0">
|
<input type="radio" name="is_attending" id="not_attending" onclick="hideConsent()" required value="0">
|
||||||
<label class="light" for="not_attending">I decline the invitation</label>
|
<label class="light" for="not_attending">I decline the invitation</label>
|
||||||
|
|
||||||
<br/> <br/>
|
<br/> <br/>
|
||||||
|
|
||||||
|
<div id="hideBlock">
|
||||||
<p class="text-red-800">
|
<p class="text-red-800">
|
||||||
*Please read EEAS PRIVACY STATEMENT - DATA PROTECTION NOTICE and sign the CONSENT FORM Purpose of the filming/photo shooting
|
*Please read EEAS PRIVACY STATEMENT - DATA PROTECTION NOTICE and sign the CONSENT FORM Purpose of the filming/photo shooting
|
||||||
</p><a class="text-blue-500 flex" href="/storage/{{ $event->file }}">
|
</p><a class="text-blue-500 flex" href="/storage/{{ $event->file }}">
|
||||||
|
|
@ -46,10 +47,26 @@
|
||||||
<label class="light" for="not_consent_form">I decline to be filmed</label>
|
<label class="light" for="not_consent_form">I decline to be filmed</label>
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<button class="p-2 bg-blue-700 text-gray-100 mb-2" type="submit">Sign Up</button>
|
<button class="p-2 bg-blue-700 text-gray-100 mb-2" type="submit">Submit</button>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
function hideConsent(){
|
||||||
|
var elem = document.getElementById('not_consent_form');
|
||||||
|
elem.setAttribute('checked', true);
|
||||||
|
var hideblock = document.getElementById('hideBlock');
|
||||||
|
hideblock.setAttribute('style', 'display:none');
|
||||||
|
}
|
||||||
|
|
||||||
|
function showConsent(){
|
||||||
|
var elem = document.getElementById('not_consent_form');
|
||||||
|
elem.removeAttribute('checked');
|
||||||
|
var hideblock = document.getElementById('hideBlock');
|
||||||
|
hideblock.setAttribute('style', 'display:block');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="flex justify-center items-center">
|
<div class="flex justify-center items-center">
|
||||||
<div class="max-w-lg mt-4 rounded p-4 bg-green-200 border-green-500 border-2">
|
<div class="max-w-lg mt-4 rounded p-4 bg-green-200 border-green-500 border-2">
|
||||||
<h1 class="text-6xl text-green-600 font-bold">Thank you for response!</h1><br/>
|
<h1 class="text-6xl text-green-600 font-bold">Thank you!</h1><br/>
|
||||||
|
<span class="text-base text-green-600 font-medium">We have sent you an email with attached QR code which you should use for this event! Check you email, if you haven't received anything contact us via: <a href="mailto:delegation-turkmenistan@eeas.europa.eu">delegation-turkmenistan@eeas.europa.eu</a></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue