Class: OLE_QA::Framework::OLELS::Patron_Phone_Line
- Inherits:
-
Line_Object
- Object
- Common_Object
- Data_Object
- Line_Object
- OLE_QA::Framework::OLELS::Patron_Phone_Line
- Defined in:
- lib/olels/objects/patron_phone_line.rb
Overview
A phone number info line on a single patron record.
Instance Attribute Summary
Attributes inherited from Line_Object
Attributes inherited from Common_Object
Instance Method Summary collapse
-
#set_elements ⇒ Object
Set screen elements for patron phone number info line.
Methods inherited from Line_Object
#initialize, #line_id, #set_subline
Methods inherited from Common_Object
Methods included from Helpers
#browser, #load_yml, #set_element, #set_function
Constructor Details
This class inherits a constructor from OLE_QA::Framework::Line_Object
Instance Method Details
#set_elements ⇒ Object
Set screen elements for patron phone number info line.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/olels/objects/patron_phone_line.rb', line 19 def set_elements element(:phone_type_selector) {(line_id == 0) ? id_str = 'phoneTypeCode_add_control' : id_str = "phoneTypeCode_line#{line_id - 1}_control" b.select_list(:id => id_str)} element(:phone_number_field) {(line_id == 0) ? id_str = 'phoneNumber_add_control' : id_str = "phoneNumber_line#{line_id - 1}_control" b.text_field(:id => id_str)} element(:extension_field) {(line_id == 0) ? id_str = 'extensionNumber_add_control' : id_str = "extensionNumber_line#{line_id - 1}_control" b.text_field(:id => id_str)} element(:country_selector) {(line_id == 0) ? id_str = 'countryCode_add_control' : id_str = "countryCode_line#{line_id - 1}_control" b.select_list(:id => id_str)} element(:preferred_checkbox) {(line_id == 0) ? id_str = 'phoneNumber_defaultValue_add_control' : id_str = "phoneNumber_defaultValue_line#{line_id - 1}_control" b.checkbox(:id => id_str)} element(:active_checkbox) {(line_id == 0) ? id_str = 'phoneNumber_active_add_control' : id_str = "phoneNumber_active_line#{line_id - 1}_control" b.checkbox(:id => id_str)} element(:add_button) {b.(:id => 'OlePatronDocument-Phone-Add_add')} element(:delete_button) {b.(:id => "OlePatronDocument-Phone_del_line#{line_id - 1}")} end |