-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,285 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
|
||
class EventRegistration extends Model | ||
{ | ||
// | ||
protected $fillable = ['user_id', 'event_id']; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,9 @@ public function index() | |
// | ||
} | ||
|
||
|
||
public function export($id) | ||
{ | ||
// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
return [ | ||
'apikey' => env('GMAPS_API_KEY'), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Seeder; | ||
|
||
class FieldTableSeeder extends Seeder | ||
{ | ||
/** | ||
* Run the database seeds. | ||
* | ||
* @return void | ||
*/ | ||
public function run() | ||
{ | ||
DB::table('fields')->insert([ | ||
'id' => 1, | ||
'type' => 'radio', | ||
'label' => 'Will you be present at the event ?', | ||
'options' => 'Yes;No' | ||
]); | ||
|
||
DB::table('fields')->insert([ | ||
'id' => 2, | ||
'type' => 'radio', | ||
'label' => 'Will you take your own car to go to the event ?', | ||
'options' => 'Yes;No', | ||
'help' => 'There will be no shuttle transports this year, parking is 12 CHF for the night' | ||
]); | ||
|
||
DB::table('fields')->insert([ | ||
'id' => 3, | ||
'type' => 'radio', | ||
'label' => 'Do you need a hotel room ?', | ||
'help' => 'Answer "No" if you already have a room (FAME participants) or if you have another accommodation plan for the night.', | ||
'options' => 'Yes;No' | ||
]); | ||
|
||
DB::table('fields')->insert([ | ||
'id' => 4, | ||
'type' => 'doubletext', | ||
'label' => 'Who do you want to share the room with ?', | ||
'options' => 'Yes;No', | ||
'help' => 'Rooms have 3 occupants in total, input the name and department of the persons you want to share the room with', | ||
'condition' => "3:Yes" | ||
]); | ||
|
||
|
||
DB::table('fields')->insert([ | ||
'id' => 5, | ||
'type' => 'radio', | ||
'label' => 'Do you have any dietary restrictions (for example allergies) ?', | ||
'options' => 'Yes;No' | ||
]); | ||
|
||
DB::table('fields')->insert([ | ||
'id' => 6, | ||
'type' => 'text', | ||
'label' => 'Which ones ?', | ||
'condition' => "5:Yes" | ||
]); | ||
|
||
for ($i = 2; $i < 7; $i++){ | ||
DB::table('event_fields')->insert([ | ||
'event_id' => 1, | ||
'field_id' => $i | ||
]); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Seeder; | ||
|
||
class UserTableSeeder extends Seeder | ||
{ | ||
/** | ||
* Run the database seeds. | ||
* | ||
* @return void | ||
*/ | ||
public function run() | ||
{ | ||
DB::table('users')->insert([ | ||
'id' => 43, | ||
'name' => "test", | ||
'department' => "test", | ||
'login' => 'test', | ||
'email' => '[email protected]' | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"/js/app.js": "/js/app.js", | ||
"/css/app.css": "/css/app.css" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="form-group col-sm-6" id="field-group-{{$field->id}}" data-condition="{{$field->condition}}"> | ||
<label for="field-{{$field->id}}">{{$field->label}}</label> | ||
<input type="text" class="form-control" name="field-{{$field->id}}-1" id="field-{{$field->id}}-1" placeholder="Name and department"><br> | ||
<input type="text" class="form-control" name="field-{{$field->id}}-2" id="field-{{$field->id}}-2" placeholder="Name and department"> | ||
<small class="form-text text-muted">{{$field->help}}</small> | ||
</div> | ||
|
||
|
||
|
Oops, something went wrong.