Created
March 31, 2009 03:45
-
-
Save NigelThorne/88036 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 | |
def is_a_staining_tab # I don't like this! | |
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 do is_a_staining_tab end # I don't like this! | |
has_tab :parallel_DS do is_a_staining_tab end # I don't like this! | |
has_tab :first do is_a_staining_tab end # I don't like this! | |
has_tab :second do is_a_staining_tab end # I don't like this! | |
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