Fixed tour storno flagging
This commit is contained in:
parent
1b6dc17ead
commit
ebd663e842
6 changed files with 936 additions and 7 deletions
|
|
@ -274,7 +274,7 @@
|
|||
public function update(Request $request, Tour $tour)
|
||||
{
|
||||
|
||||
Log::info("Tour:update");
|
||||
Log::info("Tour:update !");
|
||||
$tour = Tour::find($request->input('tour_id'));
|
||||
|
||||
$request->validate(
|
||||
|
|
@ -313,13 +313,22 @@
|
|||
*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
$tour->name = $request->input('name');
|
||||
if ($request->beschreibung) $tour->beschreibung = $request->input('beschreibung');
|
||||
if ($request->start) $tour->start = Tour::toDBDate($request->input('start'));
|
||||
if ($request->deadline) $tour->deadline = Tour::toDBDate($request->input('deadline'));
|
||||
if ($request->max_participants) $tour->max_participants = $request->input('max_participants');
|
||||
$tour->is_cancelled = ($request->has('is_cancelled'));
|
||||
if ($request->is_cancelled) {
|
||||
$tour->is_cancelled = true;
|
||||
$tour->status="STORNIERT";
|
||||
} else {
|
||||
$tour->is_cancelled=false;
|
||||
$tour->status="FINDET STATT";
|
||||
}
|
||||
if ($request->bericht) $tour->bericht = $request->bericht;
|
||||
|
||||
$tour->save();
|
||||
|
||||
|
||||
|
|
@ -460,4 +469,4 @@
|
|||
Log::info("Image saved as $dirPath/$name" . '.jpg');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,12 +24,12 @@
|
|||
|
||||
<div class="form-group" style="display:flex;">
|
||||
<label class="ml-2 mt-3" style="width:180px; text-align:left;font-size:18px;" for="name">Start:</label>
|
||||
<input class="mt-3 mr-2 form-control input-sm" type="date" id="start" name="start" value="{{ old('start') ?? $tour->start }}" required >
|
||||
<input class="mt-3 mr-2 form-control input-sm" type="text" id="start" name="start" value="{{ old('start') ?? $tour->start }}" required >
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="display:flex;">
|
||||
<label class="ml-2 mt-4" style="width:180px; text-align:left;font-size:18px;" for="deadline">Anmeldeschluss:</label>
|
||||
<input class="mt-3 mr-2 form-control" type="date" id="deadline" style="font-size:16px;" name="deadline" value="{{ old('deadline') ?? $tour->deadline }}" required >
|
||||
<input class="mt-3 mr-2 form-control" type="text" id="deadline" style="font-size:16px;" name="deadline" value="{{ old('deadline') ?? $tour->deadline }}" required >
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="display:flex;">
|
||||
|
|
|
|||
|
|
@ -33,14 +33,14 @@
|
|||
<div class="form-group" style="display:flex;">
|
||||
<label class="ml-2 mt-3" style="width:180px; text-align:left;font-size:18px;"
|
||||
for="name">Start:</label>
|
||||
<input class="mt-3 mr-2 form-control input-sm" type="date" id="start" name="start"
|
||||
<input class="mt-3 mr-2 form-control input-sm" type="text" id="start" name="start"
|
||||
value="{{ $tour->start }}" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="display:flex;">
|
||||
<label class="ml-2 mt-4" style="width:180px; text-align:left;font-size:18px;"
|
||||
for="deadline">Anmeldeschluss:</label>
|
||||
<input class="mt-3 mr-2 form-control" type="date" id="deadline" style="font-size:16px;"
|
||||
<input class="mt-3 mr-2 form-control" type="text" id="deadline" style="font-size:16px;"
|
||||
name="deadline" value="{{ old('deadline') ?? $tour->deadline }}" required>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
306
tools/motorradig_2023-12-13_164858.sql
Normal file
306
tools/motorradig_2023-12-13_164858.sql
Normal file
File diff suppressed because one or more lines are too long
307
tools/motorradig_2023-12-18_171914.sql
Normal file
307
tools/motorradig_2023-12-18_171914.sql
Normal file
File diff suppressed because one or more lines are too long
307
tools/motorradig_2024-01-29_170226.sql
Normal file
307
tools/motorradig_2024-01-29_170226.sql
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue