Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
The register button is now disabled if the perm is full (#313)
Browse files Browse the repository at this point in the history
* changed the displaying of the time

* Added a page to see the perms you took

* days are now displayed in french

* Added tabs to display perms per day

* changed order of information in the permanences tables

* redirects now works as expected

* added logs

* The register button is now disabled if the perm is full

* the log file is now ignored

* removed file logs.log from git file tracking
  • Loading branch information
Teddy Roncin authored Aug 30, 2023
1 parent b49dfb2 commit fbf1f6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ storage/trombi-phones/
npm-debug.log
yarn-error.log
/storage/oauth-*
public/logs.log
6 changes: 5 additions & 1 deletion resources/views/dashboard/perms/shotgun.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@
<tr class="align-middle">
<td>
<form action="{{ url('dashboard/perm/'.($perm->isAlreadyIn ? 'unshotgun' : 'shotgun').'/'.$perm->id.'?day='.$day) }}" method="post">
<button class="btn btn-xl {{ $perm->isAlreadyIn ? 'btn-danger' : 'btn-success' }}" {{ $perm->isOpen ? '' : 'disabled' }} type="submit">{{ $perm->isAlreadyIn ? 'Quitter' : "S'inscrire" }}</button>
<button class="btn btn-xl {{ $perm->isAlreadyIn ? 'btn-danger' : 'btn-success' }}"
{{ !$perm->isOpen || ($perm->permanenciers->count() >= $perm->nbr_permanenciers && !$perm->isAlreadyIn) ? 'disabled' : '' }}
type="submit">
{{ $perm->isAlreadyIn ? 'Quitter' : "S'inscrire" }}
</button>
</form>
</td>
<td>{{ $perm->type->name }}</td>
Expand Down

0 comments on commit fbf1f6a

Please sign in to comment.