-
-
Save ryan-allen/88041 to your computer and use it in GitHub Desktop.
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
# I want to say all four tabs have the same set of fields | |
has_dialog :add_reagent_dialog do | |
@common_bits = lambda do | |
has_drop_down :default_staining_protocol1 | |
has_drop_down :default_staining_protocol2 | |
has_drop_down :default_staining_protocol3 | |
has_drop_down :default_staining_protocol4 | |
end | |
has_text_box :name | |
has_drop_down :type, {:options => ["Ancillary", "Primary", "Probe"] } | |
has_text_box :abbreviated_name | |
has_text_box :supplier | |
has_list :compatible_bulks | |
has_list :available_bulks | |
has_check_box :preferred | |
has_check_box :hazardous | |
has_tab :single, &@common_bits | |
has_tab :parallel_DS, &@common_bits | |
has_tab :first, &@common_bits | |
has_tab :second, &@common_bits | |
has_button :add_bulk, {:name=>">>" } | |
has_button :remove_bulk, {:name=>"<<"} | |
has_button :save | |
has_button :cancel | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment