Skip to content

Commit

Permalink
turn the Boolean input checkboxes into switches
Browse files Browse the repository at this point in the history
because checkboxes are for making selections ans switches
are for turning things on and off
  • Loading branch information
phycodurus committed Oct 24, 2023
1 parent f71d269 commit 4eb135d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tom_swift/swift.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,19 @@ def layout(self):
),
AccordionGroup('Tiling',
Div(
'tiling',
Div( # make the tiling Boolean widget a switch
Field('tiling', css_class="custom-control-input"),
css_class="custom-control custom-switch"),
'number_of_tiles',
'exposure_time_per_tile',
'tiling_justification',
)
),
AccordionGroup('Swift Guest Investigator',
Div(
'proposal',
Div( # make the proposal Boolean widget a switch
Field('proposal', css_class="custom-control-input"),
css_class="custom-control custom-switch"),
'proposal_id',
'proposal_pi',
'proposal_trigger_just',
Expand Down

0 comments on commit 4eb135d

Please sign in to comment.