-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from HACManchester/rm-storage
Hide online member storage claims
- Loading branch information
Showing
4 changed files
with
107 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 20 additions & 8 deletions
28
resources/views/account/partials/signposts/item-storage.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
<li class="signposts-grid-item"> | ||
<div class="panel panel-default"> | ||
<div class="panel {{ $user->storageBoxes()->count() ? 'panel-danger' : 'panel-warning' }}"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">📦 Storage space</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<p><strong>Your storage space is: {{ $user->storageBoxes()->count() ? $user->storageBoxes()->first()->location : '(none claimed)' }}</strong></p> | ||
@if ($user->storageBoxes()->count() > 0) | ||
<div class="alert alert-danger"> | ||
<strong>Storage is changing (action required)</strong> | ||
<p>Please add a sticker to any items you've stored before 1st July 2025, or your items may be disposed of.</p> | ||
<p>See signage in the Hackspace storage area for full details.</p> | ||
</div> | ||
<p><strong>Your storage space is: {{ $user->storageBoxes()->count() ? $user->storageBoxes()->first()->location : '(none claimed)' }}</strong></p> | ||
|
||
<p>To claim a storage space, or return your space for somebody else to use, visit the Member's Storage page.</p> | ||
<p>To relinquish your claimed storage location, visit the Member's Storage page.</p> | ||
|
||
<div class="signpost-grid-item-buttons"> | ||
<a class="btn btn-primary btn-block" href="{{ route('storage_boxes.index') }}"> | ||
Manage Storage | ||
</a> | ||
</div> | ||
<div class="signpost-grid-item-buttons"> | ||
<a class="btn btn-primary btn-block" href="{{ route('storage_boxes.index') }}"> | ||
Manage Storage | ||
</a> | ||
</div> | ||
@else | ||
<p> | ||
As of January 2025, storage is managed physically with time-limited stickers. | ||
See signage in the Hackspace storage area for full details. | ||
</p> | ||
@endif | ||
</div> | ||
</div> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters