Skip to content
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

73 dashboard lock button #86

Merged
merged 21 commits into from
Jan 19, 2025

Conversation

Scilly-guy
Copy link
Contributor

@Scilly-guy Scilly-guy commented Dec 13, 2024

Adds two buttons to the vehicles list item template that open modals asking for confirmation, specifying vehicle name and registration. On confirmation a new boxaction is generated with the requested action for that vehicle.

Fixes #73

Copy link
Member

@grundleborg grundleborg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a few minor changes requested. I haven't tested the PR yet, but will do at some point soon.

backoffice/templates/backoffice/confirm_lock.html Outdated Show resolved Hide resolved
backoffice/templates/backoffice/confirm_unlock.html Outdated Show resolved Hide resolved
backoffice/views.py Outdated Show resolved Hide resolved
backoffice/views.py Outdated Show resolved Hide resolved
backoffice/views.py Outdated Show resolved Hide resolved
backoffice/views.py Outdated Show resolved Hide resolved
backoffice/views.py Outdated Show resolved Hide resolved
@grundleborg
Copy link
Member

@Scilly-guy
Copy link
Contributor Author

There was an existing message display component for the portal, I have used that, it appears to use tailwind alerts.

Copy link
Member

@grundleborg grundleborg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, not sure how I forgot that the messages.html template already existed 👀

@grundleborg grundleborg merged commit 0a51159 into ios-cv:main Jan 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lock / Unlock buttons in backoffice
2 participants