Skip to content

Commit

Permalink
Merge pull request #185 from mikerae/184-bugrota-manager-allocate-res…
Browse files Browse the repository at this point in the history
…erve-404-error

184 bug rota manager allocate reserve 404 error
  • Loading branch information
mikerae authored Oct 12, 2023
2 parents 43e5f01 + 1e0e208 commit 60cb232
Show file tree
Hide file tree
Showing 7 changed files with 267 additions and 213 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ The following manual tests were made:
- [see issue #175 here](https://github.com/mikerae/string-rota/issues/175)
- [Fix Project selection for Admin and Orch Manager #179 Testing](/readme_assets/images/testing-issue179.png)
- [see issue #179 here](https://github.com/mikerae/string-rota/issues/179)
- [Fix Allocate Reserve Button for Admin and Rota Manager #184 Testing](/readme_assets/images/testing-issue184.png)
- [see issue #184 here](https://github.com/mikerae/string-rota/issues/184)
- [Update messaging #176 Testing](/readme_assets/images/testing-issue176.png)
- [see issue #176 here](https://github.com/mikerae/string-rota/issues/176)
#### Human Testing
No human testing was done for this MVP, but once office manager functionality, and the hiding of draft rotas is implemented, user feedback will be sort.

Expand Down
Binary file added readme_assets/images/testing-issue176.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme_assets/images/testing-issue184.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 56 additions & 38 deletions string_rota/templates/string_rota/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,47 +34,65 @@ <h2 class="card-title">Select a Project {% if office %}and a Section{% endif %}
</div>
</div>
</div>
<!-- Messages -->
<div class="row">
<div class="col-12">
{% if messages %}
<ul class="messages">
{% for message in messages %}
{% with message.level as level %}
<li>
{% if level == 40 %}
<span class="text-danger"><strong>{{ message }}</strong></span>
{% elif level == 30 %}
<span class="text-warning"><strong>{{ message }}</strong></span>
{% elif level == 25 %}
<span class="text-success"><strong>{{ message }}</strong></span>
{% else %}
<span class="text-info"><strong>{{ message }}</strong></span>
{% endif %}
</li>
{% endwith %}
{% endfor %}
</ul>
{% endif %}
</div>
</div>
<!-- Player Info -->
{% if rota_manager or office %}

<!-- <div class="row"> -->
<div class="col-lg-7">
<div class="card">
<div class="card-body">
<h2 class="card-title">
Register a Player
</h2>
<p class="ps-3">To enable an existing member {% if not office %}the {{section}} section{% endif %} to
access this app, please choose
"Register a Player" from the side menu.</p>
<!-- Messages -->
{% if messages %}
{% for message in messages %}
{% with message.level as level %}
{% if level == 40 %}
<div class="alert alert-dismissible alert-danger" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
{{ message | safe }}
</div>
{% elif level == 30 %}
<div class="alert alert-dismissible alert-warning" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
{{ message | safe }}
</div>
{% elif level == 25 %}
<div class="alert alert-dismissible alert-success" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
{{ message | safe }}
</div>
{% else %}
<div class="alert alert-dismissible alert-info" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
{{ message | safe }}
</div>
{% endif %}
{% endwith %}
{% endfor %}
{% endif %}
</div>
</div>
<!-- Player Info -->
{% if rota_manager or office %}
<div class="col-lg-7">
<div class="card">
<div class="card-body">
<h2 class="card-title">
Register a Player
</h2>
<p class="ps-3">To enable an existing member {% if not office %}the {{section}} section{% endif %}
to
access this app, please choose
"Register a Player" from the side menu.</p>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
</section>
</main>
{% endblock %}
Loading

0 comments on commit 60cb232

Please sign in to comment.