Add Highlighting and Button Functionality Based on State #7

Closed
opened 2022-08-26 01:28:07 +00:00 by engineerjoe440 · 0 comments

As I think about this more, we can do some other intelligent things:

Disable Buttons Based on State

If we have check-in and check-out buttons, and we know the present state of whether a computer should be checked in, or checked out, then we should be able to enable or disable the buttons according to whether the laptop is currently available for check-out, or not.

Highlight the Table with Colors, Indicative of Availability

We should be able to highlight the individual rows of the table, based on whether or not they're laptops which are available to be checked out. Should be simple enough...

if laptop.is_checked_out():
    higlight_as_checked_out()
else:
    highlight_as_available()

Originally posted by @engineerjoe440 in #6 (comment)

As I think about this more, we can do some other intelligent things: ### Disable Buttons Based on State If we have check-in and check-out buttons, and we *know* the present state of whether a computer should be checked in, or checked out, then we should be able to enable or disable the buttons according to whether the laptop is currently available for check-out, or not. ### Highlight the Table with Colors, Indicative of Availability We should be able to highlight the individual rows of the table, based on whether or not they're laptops which are available to be checked out. Should be simple enough... ```python if laptop.is_checked_out(): higlight_as_checked_out() else: highlight_as_available() ``` _Originally posted by @engineerjoe440 in https://gitea.stanleysolutionsnw.com/Potlatch-Loggers/ComputerKeeper/issues/6#issuecomment-21_
engineerjoe440 added the
gui
label 2022-09-26 02:24:23 +00:00
joshb added the
invalid
wontfix
labels 2022-11-07 03:07:37 +00:00
joshb closed this issue 2022-11-07 03:07:43 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Potlatch-Loggers/ComputerKeeper#7
No description provided.