Skip to content

Commit

Permalink
Fix: Waiting lists list not listing theory exame corrects (#3816)
Browse files Browse the repository at this point in the history
* fix: Show waiting list theory results correctly!

* fix: Add some useful stuff to readme
  • Loading branch information
maxbrokman authored Sep 28, 2024
1 parent 5b64c4c commit 4b2fddc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ php artisan migrate
php artisan cts:migrate:fresh # Optional if you require a CTS db for tests
```

For local dev you may need to run
```shell
php artisan db:seed # sets up the roles and permissions
php artisan grant:superman <CID> # makes a test account an admin
```

### Compiling Frontend Assets
Install all required dependencies
```shell
Expand Down
25 changes: 15 additions & 10 deletions resources/views/mship/waiting-lists/_waiting_lists_list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,24 @@
@endif
</td>
<td>{{$waitingList->pivot->created_at->format('d M Y')}}</td>
<td>
@if ($waitingList->isAtcList() && $waitingList->pivot->account->onRoster())
{!! HTML::img("tick_mark_circle", "png", 20) !!}
@elseif($waitingList->isAtcList())
{!! HTML::img("cross_mark_circle", "png", 20) !!}
@else

@if($waitingList->isAtcList())
<td>
@if ($waitingList->pivot->account->onRoster())
{!! HTML::img("tick_mark_circle", "png", 20) !!}
@else
{!! HTML::img("cross_mark_circle", "png", 20) !!}
@endif
</td>
@else
<td>
N/A
@endif
</td>
</td>
@endif
<td>
@if (($record->waitingList->feature_toggles['check_cts_theory_exam'] ?? false) && $waitingList->pivot->theory_exam_passed)
@if (($waitingList->feature_toggles['check_cts_theory_exam'] ?? true) && $waitingList->pivot->theory_exam_passed)
{!! HTML::img("tick_mark_circle", "png", 20) !!}
@elseif($record->waitingList->feature_toggles['check_cts_theory_exam'] ?? false)
@elseif($waitingList->feature_toggles['check_cts_theory_exam'] ?? true)
{!! HTML::img("cross_mark_circle", "png", 20) !!}
@else
N/A
Expand Down

0 comments on commit 4b2fddc

Please sign in to comment.