-
Notifications
You must be signed in to change notification settings - Fork 1
Only genrequest members can mark an order as seen #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aastabk
merged 6 commits into
summer25
from
249-only-genetic-project-staff-can-mark-new-order-as-seen-dashboard-extraction-analysis
Jul 14, 2025
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b775dd8
Only genrequest members can mark an order as seen
aastabk f1c215d
Move logic closer to frontend
aastabk 2a20d25
Removed unnecessary code, checks buttons everywhere, added check in p…
aastabk 24de91e
Removed prints
aastabk 68b75a2
Fixed linter error
aastabk e907014
Merge branch 'summer25' into 249-only-genetic-project-staff-can-mark-…
aastabk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,5 +1,11 @@ | ||
| {% load order_tags %} | ||
|
|
||
| {% if record.genrequest.responsible_staff.all|is_responsible:user %} | ||
| <form method="post" action="{% url 'staff:mark-as-seen' pk=record.id %}"> | ||
| {% csrf_token %} | ||
| <input type="hidden" name="return_to" value="dashboard"> | ||
| <button class="btn bg-secondary text-white" style="background-color: darkgoldenrod; height: auto;" type="submit">Mark as seen</button> | ||
| <button class="btn bg-secondary text-white" style="background-color: darkgoldenrod; height: auto;" type="submit"> | ||
| Mark as seen | ||
| </button> | ||
| </form> | ||
| {% endif %} |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.