Skip to content

Commit

Permalink
Never show declined nominees
Browse files Browse the repository at this point in the history
Mörkläggningsfix
  • Loading branch information
foodelevator committed Sep 11, 2023
1 parent 6a27b15 commit f754d80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
{!! Form::checkbox('', '', false, ['class' => 'hidebox-a', 'id' => 'hide-declined-a']) !!}
<label for="hide-declined-a">Göm ej besvarade nomineringar</label>
</div>
<div class="checkbox" style="display: inline-block;width: 300px;">
{!! Form::checkbox('', '', false, ['class' => 'hidebox-b', 'id' => 'hide-declined-b']) !!}
<label for="hide-declined-b">Göm avböjda nomineringar</label>
</div>
<div class="checkbox" style="display: inline-block;">
{!! Form::checkbox('', '', false, ['class' => 'hidebox-c', 'id' => 'hide-declined-c']) !!}
<label for="hide-declined-c">Visa bilder</label>
Expand Down Expand Up @@ -79,6 +75,7 @@
@if($election->nominees($position)->count() > 0)
<ul>
@foreach($election->nominees($position) as $nominee)
@if($nominee->status != 'declined')
<li class="{{ $nominee->status == 'accepted' ? 'accepted' : ($nominee->status == 'declined' ? 'declined' : ($nominee->status == 'accepted' ? 'acccepted' : 'waiting')) }}">

@if ($nominee->status == 'accepted')
Expand All @@ -93,6 +90,7 @@
<a href="/admin/elections/edit-nomination/{{ $nominee->uuid }}">Ändra</a>
@endif
</li>
@endif
@endforeach
</ul>
@else
Expand Down

0 comments on commit f754d80

Please sign in to comment.