Skip to content

Commit

Permalink
Fixed table preselection, fixed text
Browse files Browse the repository at this point in the history
  • Loading branch information
julsteele committed Mar 18, 2023
1 parent a3cbaf2 commit 2bf7879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div class="card-body text-center">
<h5 class="card-title display-6">Manage your Registration</h5>
<p class="card-text lead">You may update your registration, update it or cancel your registration
aslong the registration has not closed yet. You can also invite other dealers and assistants to
as long as the registration has not closed yet. You can also invite other dealers and assistants to
your slot.</p>
<a href="{{ route('applications.edit') }}" class="btn btn-lg btn-primary">Manage your
Registration</a>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/forms/application.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class="form-control @error('merchandise') is-invalid @enderror" id="merchandise"
<select name="space" id="space" class="form-select @error('space') is-invalid @enderror"
@disabled(Carbon\Carbon::parse(config('ef.reg_end_date'))->isPast())>
@foreach ($table_types as $type)
<option value="{{ $type['id'] }}" @selected(($application?->table_type_requested === $type['id'] && empty(old('space'))) || (!empty(old('denType')) && old('space', $type['id'] === 2)))>{{ $type['name'] . ' - '. $type['price']/100 . ' EUR'}}
<option value="{{ $type['id'] }}" @selected(($application?->table_type_requested === $type['id']) || (!$application?->table_type_requested && old('space', 2) === $type['id']))>{{ $type['name'] . ' - '. $type['price']/100 . ' EUR'}}
</option>
@endforeach
</select>
Expand Down

0 comments on commit 2bf7879

Please sign in to comment.