Skip to content

Commit

Permalink
Fix register_button
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Mar 8, 2024
1 parent 5db013f commit 10b17df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/expipe_plugin_cinpla/widgets/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def register_adjustment_view(project):
depth_from_surgery = ipywidgets.Checkbox(description="Get depth from surgery", value=True)
register_button = ipywidgets.Button(description="Register")

fields = ipywidgets.VBox([user, date, adjustment, register])
fields = ipywidgets.VBox([user, date, adjustment, register_button])
main_box = ipywidgets.VBox([depth_from_surgery, ipywidgets.HBox([fields, entity_id])])

def on_manual_depth(change):
Expand Down Expand Up @@ -198,7 +198,7 @@ def register_annotate_view(project):
templates = SearchSelectMultiple(project.templates, description="Templates")
register_button = ipywidgets.Button(description="Register")

fields = ipywidgets.VBox([user, date, location, message, action_type, tag, depth, entity_id, register])
fields = ipywidgets.VBox([user, date, location, message, action_type, tag, depth, entity_id, register_button])
main_box = ipywidgets.VBox([ipywidgets.HBox([fields, action_id, templates])])

def on_register(change):
Expand Down Expand Up @@ -249,7 +249,7 @@ def register_entity_view(project):

overwrite = ipywidgets.Checkbox(description="Overwrite", value=False)
register_button = ipywidgets.Button(description="Register")
fields = ipywidgets.VBox([entity_id, user, species, sex, location, birthday, message, tag, register])
fields = ipywidgets.VBox([entity_id, user, species, sex, location, birthday, message, tag, register_button])

main_box = ipywidgets.VBox([overwrite, ipywidgets.HBox([fields, templates])])
view = BaseViewWithLog(main_box=main_box, project=project)
Expand Down Expand Up @@ -309,7 +309,7 @@ def register_surgery_view(project):
overwrite = ipywidgets.Checkbox(description="Overwrite", value=False)
register_button = ipywidgets.Button(description="Register")

fields = ipywidgets.VBox([user, location, date, weight, position, angle, message, procedure, tag, register])
fields = ipywidgets.VBox([user, location, date, weight, position, angle, message, procedure, tag, register_button])
main_box = ipywidgets.VBox([overwrite, ipywidgets.HBox([fields, ipywidgets.VBox([entity_id, templates])])])

view = BaseViewWithLog(main_box=main_box, project=project)
Expand Down Expand Up @@ -368,7 +368,7 @@ def register_perfuse_view(project):
overwrite = ipywidgets.Checkbox(description="Overwrite", value=False)

register_button = ipywidgets.Button(description="Register")
fields = ipywidgets.VBox([user, location, date, weight, message, register])
fields = ipywidgets.VBox([user, location, date, weight, message, register_button])
main_box = ipywidgets.VBox([overwrite, ipywidgets.HBox([fields, entity_id, templates])])
view = BaseViewWithLog(main_box=main_box, project=project)

Expand Down

0 comments on commit 10b17df

Please sign in to comment.