fixed bugs
This commit is contained in:
parent
888cde47a9
commit
d04b18c19c
|
|
@ -45,6 +45,10 @@ protected function setupListOperation()
|
|||
'name' => 'name',
|
||||
'type' => 'text'
|
||||
],
|
||||
[
|
||||
'name' => 'city',
|
||||
'type' => 'text'
|
||||
],
|
||||
[
|
||||
'name' => 'email',
|
||||
'type' => 'email'
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public function apply($id){
|
|||
}
|
||||
|
||||
public function submit(Request $request){
|
||||
$data = $request->only(['name', 'surname', 'email', 'file', 'organization', 'is_attending', 'consent_form', 'consent_form_second', 'consent_form_third']);
|
||||
$data = $request->only(['name', 'city', 'email', 'file', 'organization', 'is_attending', 'consent_form', 'consent_form_second', 'consent_form_third']);
|
||||
$data['attended'] = 0;
|
||||
$data['is_attending'] = (bool)$data['is_attending'];
|
||||
$data['consent_form'] = $data['consent_form'] ?? false;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ class Attender extends Model
|
|||
'attended',
|
||||
'consent_form',
|
||||
'consent_form_second',
|
||||
'consent_form_third'
|
||||
'consent_form_third',
|
||||
'city'
|
||||
];
|
||||
// protected $hidden = [];
|
||||
// protected $dates = [];
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('attenders', function (Blueprint $table) {
|
||||
$table->string('city')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('attenders', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
|
|
@ -49,7 +49,7 @@
|
|||
<tr>
|
||||
<td style="padding: 30px 0 0 20px;">
|
||||
<p class="content_txt" style="font-size: 14px; font-weight: 400; line-height: 1.4; margin-bottom: 15px;">
|
||||
<b>Dear {{ $attender->name }} {{ $attender->surname }}! </b><br/>
|
||||
<b>Dear {{ $attender->name }}! </b><br/>
|
||||
Here is your QR code for your registered event!
|
||||
</p>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -31,13 +31,13 @@
|
|||
</div>
|
||||
|
||||
<div>
|
||||
<label for="name"><b>Organization</b></label>
|
||||
<input type="text" id="name" name="ogranization">
|
||||
<label for="ogranization"><b>Organization</b></label>
|
||||
<input type="text" id="ogranization" name="ogranization">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="name"><b>City and country</b></label>
|
||||
<input type="text" id="name" name="name" required>
|
||||
<label for="city"><b>City and country</b></label>
|
||||
<input type="text" id="city" name="city" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
@ -87,17 +87,17 @@
|
|||
<div style="width: 3%">
|
||||
<input type="checkbox" name="consent_form" id="consent_form" style="display:block">
|
||||
</div>
|
||||
<div style="width: 97%">
|
||||
<div style="width: 97%; padding: 15px">
|
||||
<label for="consent_form">
|
||||
I consent that video(s) and/or photo(s) taken of me during the event/meeting, including web streaming and the recording of the event/meeting are used in EU communication activities including social media platforms.
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pb-3" style="display: flex; width: 100%; align-items: center">
|
||||
<div style="width: 3%">
|
||||
<div style="width: 3%;">
|
||||
<input type="checkbox" name="consent_form_second" id="consent_form_second" style="display:block">
|
||||
</div>
|
||||
<div style="width: 97%">
|
||||
<div style="width: 97%; padding: 15px">
|
||||
<label for="consent_form_second">
|
||||
I consent that my name and contact details are included in an established contact list shared internally among EEAS services for the purpose of promoting EU public diplomacy activities/events and disseminating information, including newsletters.
|
||||
</label>
|
||||
|
|
@ -107,7 +107,7 @@
|
|||
<div style="width: 3%">
|
||||
<input type="checkbox" name="consent_form_third" id="consent_form_third" style="display:block">
|
||||
</div>
|
||||
<div style="width: 95%">
|
||||
<div style="width: 97%; padding: 15px">
|
||||
<label for="consent_form_third">
|
||||
I consent that my name and contact details are published in the list of participants of the event.
|
||||
</label>
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
<!--Footer-->
|
||||
<div class="flex justify-end pt-6">
|
||||
<button type="submit" class="px-4 bg-transparent p-3 rounded-lg text-blue-500 hover:bg-gray-100 hover:text-blue-400 mr-2">Yes</button>
|
||||
<button class="modal-close px-4 bg-blue-500 p-3 rounded-lg text-white hover:bg-blue-400">No</button>
|
||||
<button type="button" class="modal-close px-4 bg-blue-500 p-3 rounded-lg text-white hover:bg-blue-400">No</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue