rtml 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +396 -0
- data/PostInstall.txt +2 -0
- data/README.rdoc +42 -0
- data/Rakefile +33 -0
- data/app_generators/rtml/USAGE +5 -0
- data/app_generators/rtml/rtml_generator.rb +78 -0
- data/app_generators/rtml/templates/rails_template.rb +36 -0
- data/app_generators/rtml/templates/rtml/MIT-LICENSE +20 -0
- data/app_generators/rtml/templates/rtml/README +109 -0
- data/app_generators/rtml/templates/rtml/Rakefile +38 -0
- data/app_generators/rtml/templates/rtml/app/controllers/beryl_controller.rb +70 -0
- data/app_generators/rtml/templates/rtml/app/controllers/rtml/magcard_demo_controller.rb +9 -0
- data/app_generators/rtml/templates/rtml/app/controllers/rtml/oe/btmlpa_controller.rb +158 -0
- data/app_generators/rtml/templates/rtml/app/controllers/rtml/rtml_app_controller.rb +252 -0
- data/app_generators/rtml/templates/rtml/app/controllers/rtml/tml_app_controller.rb +418 -0
- data/app_generators/rtml/templates/rtml/app/helpers/beryl_helper.rb +72 -0
- data/app_generators/rtml/templates/rtml/app/helpers/beryl_tml_helpers/auth_result.rb +56 -0
- data/app_generators/rtml/templates/rtml/app/helpers/beryl_tml_helpers/common.rb +19 -0
- data/app_generators/rtml/templates/rtml/app/helpers/beryl_tml_helpers/index.rb +82 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_helper.rb +2 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_tml_helpers/authorized.rb +10 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_tml_helpers/common.rb +20 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_tml_helpers/index.rb +33 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_helper.rb +2 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/auth_result.rb +23 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/common.rb +23 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/dynamic.rb +11 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/icc.rb +384 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/index.rb +191 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/receipt.rb +152 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/rtml_app_helper.rb +74 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/rtml_app_tml_helpers/common.rb +9 -0
- data/app_generators/rtml/templates/rtml/app/helpers/rtml/tml_app_helper.rb +43 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/card.rb +83 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/card_avs.rb +14 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/card_cvv.rb +14 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/card_parser.rb +21 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/card_pin.rb +18 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/emv_card_data.rb +25 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/mag_card_data.rb +21 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/reference_code.rb +26 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/state.rb +12 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/terminal.rb +8 -0
- data/app_generators/rtml/templates/rtml/app/models/rtml/transaction.rb +68 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/auth_result/another_rcpt.rtml.erb +15 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/auth_result/receipt.rtml.erb +108 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/auth_result/receipt_single_column.rtml.erb +106 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/index/about.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/index/admin.rtml.erb +4 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/index/construction.rtml.erb +10 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/index/idle.rtml.erb +13 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/index/main_menu.rtml.erb +12 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/index/menu_credit.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/app/views/beryl/index/menu_debit.rtml.erb +3 -0
- data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/beryl_color.rtml.erb +24 -0
- data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/beryl_mono.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/magcard_demo_color.rtml.erb +24 -0
- data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/magcard_demo_mono.rtml.erb +3 -0
- data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/oe/btmlpa_i5100.rtml.erb +3 -0
- data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/oe/btmlpa_i8550.rtml.erb +17 -0
- data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/uml.html.erb +11 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/authorized.html.erb +15 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/authorized/main.rtml.erb +5 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index.html.erb +15 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index/_error.rtml.erb +2 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index/enter_amount.rtml.erb +5 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index/main.rtml.erb +4 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/dynamic/response.rtml.erb +2 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/icc.rtml.erb +760 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_enter_amount.rtml.erb +4 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_about.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_duplicate.rtml.erb +9 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_examples.rtml.erb +9 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_logo.rtml.erb +11 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_other.rtml.erb +20 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_refund.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_reversal.rtml.erb +9 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_sale.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_sale_cashback.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/about.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/assert.rtml.erb +2 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/card_nmb.rtml.erb +19 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/compl_txn.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/confirm_rev.rtml.erb +3 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/duplicate_na.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/error_scr.rtml.erb +4 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/main_menu.rtml.bak +31 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/main_menu.rtml.erb +40 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/print_pf.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/rd_sale_disp.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/read_refund.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/read_scb.rtml.erb +10 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/reject_trans.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/remove_card.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/rev_bad.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/scb_check_f.rtml.erb +2 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/sign_check.rtml.erb +3 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/subm_err.rtml.erb +2 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/to_man_entry.rtml.erb +2 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/trans_abrt.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/void_trans.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/receipt/_receipt.rtml.erb +29 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/receipt/error_paper.rtml.erb +3 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/_default_development.html.erb +167 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/_default_header.html.erb +12 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/_default_production.html.erb +8 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/charts.html.erb +14 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/do_tml_redirect.rtml.erb +7 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/get_terminal_info.rtml.erb +26 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/rescue_action_in_public.rtml.erb +9 -0
- data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/rescue_action_locally.rtml.erb +42 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/common.rb +303 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/force.rb +46 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/return.rb +22 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/sale.rb +49 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/_confirmation.rtml.erb +10 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/_receipt_agreement.rtml.erb +3 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/_receipt_footer.rtml.erb +2 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/_receipt_header.rtml.erb +4 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/ask_cashback.rtml.erb +11 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/card_imprint.rtml.erb +7 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/check_cb.rtml.erb +11 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/conf_debit.rtml.erb +5 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/confirm_sale.rtml.erb +4 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/confrm_force.rtml.erb +4 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/cvv_skipped.rtml.erb +10 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/disp_avs.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/do_avs_zip.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_amount.rtml.erb +12 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_card.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_cashbk.rtml.erb +10 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_cvv2.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_expiry.rtml.erb +9 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/fraud_check1.rtml.erb +6 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/fraud_check2.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/frc_aprvl.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/frc_avs_zip.rtml.erb +8 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/frc_bad_aprv.rtml.erb +5 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/frd_chk_fail.rtml.erb +5 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/invalid_exp.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/no_entr_crd.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/remove_card.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/swipe_card.rtml.erb +7 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/trans_abort.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/trans_reject.rtml.erb +1 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/views/void_ref.rtml.erb +10 -0
- data/app_generators/rtml/templates/rtml/components/rtml/features/void.rb +30 -0
- data/app_generators/rtml/templates/rtml/components/rtml/widgets/card_parser_widget.rb +90 -0
- data/app_generators/rtml/templates/rtml/components/rtml/widgets/display_widget.rb +66 -0
- data/app_generators/rtml/templates/rtml/components/rtml/widgets/element_builder_widget.rb +123 -0
- data/app_generators/rtml/templates/rtml/components/rtml/widgets/emv_support_widget.rb +365 -0
- data/app_generators/rtml/templates/rtml/components/rtml/widgets/form_submit_widget.rb +65 -0
- data/app_generators/rtml/templates/rtml/components/rtml/widgets/get_transaction_variables_widget.rb +33 -0
- data/app_generators/rtml/templates/rtml/components/rtml/widgets/get_variable_widget.rb +39 -0
- data/app_generators/rtml/templates/rtml/components/rtml/widgets/receipt_widget.rb +66 -0
- data/app_generators/rtml/templates/rtml/components/rtml/widgets/screen_builder_widget.rb +49 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090825132217_create_rtml_states.rb +15 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090825132401_create_rtml_terminals.rb +16 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090825132530_create_rtml_transactions.rb +24 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090825134118_create_rtml_cards.rb +23 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090825134622_create_rtml_emv_card_data.rb +20 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090825134629_create_rtml_mag_card_data.rb +17 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090825135838_create_rtml_card_parsers.rb +19 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090826103509_create_reference_codes.rb +14 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090915030044_add_batch_to_rtml_transactions.rb +10 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090915031155_add_additional_data_to_rtml_transactions.rb +10 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20090915031156_add_hidden_data_to_rtml_transactions.rb +10 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20091016133313_create_rtml_card_avs.rb +16 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20091016135800_create_rtml_card_cvvs.rb +16 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20091016135810_create_rtml_card_pins.rb +16 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20091016135820_reverse_card_transaction_relationship.rb +11 -0
- data/app_generators/rtml/templates/rtml/db/migrate/20100127115105_convert_rtml_migrations_to_rails_migrations.rb +31 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/USAGE +25 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/rtml_controller_generator.rb +49 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/common_tml_helper.rb +20 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/controller.rb +3 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/css_color.css +37 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/css_mono.css +12 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/functional_test.rb +11 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/helper.rb +2 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/layout_color.rtml.erb +24 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/layout_mono.rtml.erb +3 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/tml_helper.rb +16 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/view.html.erb +15 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/view.rtml.erb +2 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_document/USAGE +8 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_document/rtml_document_generator.rb +45 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/controller.rb +7 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/functional_test.rb +10 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/helper.rb +2 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/view.rtml.erb +11 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_widget/USAGE +8 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_widget/rtml_widget_generator.rb +66 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_widget/templates/basic_widget.rb +57 -0
- data/app_generators/rtml/templates/rtml/generators/rtml_widget/templates/basic_widget_no_help.rb +27 -0
- data/app_generators/rtml/templates/rtml/init.rb +40 -0
- data/app_generators/rtml/templates/rtml/install.rb +18 -0
- data/app_generators/rtml/templates/rtml/lib/environment.rb +61 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/action_controller/request.rb +9 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/action_controller/routing/route_set.rb +34 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/action_view/base.rb +74 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/action_view/partial_template.rb +24 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/active_record.rb +13 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/active_support/dependencies.rb +25 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/array.rb +15 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/attr_boolean.rb +10 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/hash.rb +28 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/nil_class.rb +20 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/rake.rb +19 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/regexp.rb +16 -0
- data/app_generators/rtml/templates/rtml/lib/extensions/string.rb +37 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins.rb +23 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/MIT-LICENSE +20 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/README +36 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/Rakefile +44 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/init.rb +25 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/action_controller/filters/before_render_filter.rb +30 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/before_render.rb +43 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/before_render_instance.rb +45 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/filter_chain_has_many_types_of_filters.rb +87 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/filter_has_before_render.rb +26 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/tasks/before_render_tasks.rake +25 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/test/before_render_test.rb +29 -0
- data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/test/test_helper.rb +24 -0
- data/app_generators/rtml/templates/rtml/lib/rtml.rb +77 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/beryl/constants.rb +12 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/beryl/version.rb +11 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/common/renderable.rb +13 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/include.rb +30 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/layout.rb +59 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/next.rb +188 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/screen.rb +91 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/screen/iterators.rb +63 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/screen/next_screen_methods.rb +70 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/screen/variable_methods.rb +73 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/support/importer.rb +55 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/tml_document.rb +318 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/tml_document/screen_methods.rb +79 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/tml_document/variable_methods.rb +83 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/core/variable.rb +123 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/debug/browser_emulator.rb +59 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/debug/rtml_controller_test_case.rb +7 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/debug/rtml_core_unit_test.rb +11 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/debug/unit_test.rb +3 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/delegation.rb +8 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/doc.rb +12 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/element.rb +75 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/errors/widget_accessor_failure.rb +9 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/events/event_handler.rb +79 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/events/event_processor.rb +106 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/events/processors.rb +10 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/events/processors/defaults_processor.rb +18 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/events/processors/key_processor.rb +21 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/feature.rb +32 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/feature_config.rb +195 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/features.rb +18 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/features/array_of_feature_instances.rb +17 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/features/controller_class_methods.rb +30 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/features/controller_instance_methods.rb +35 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers.rb +21 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/controller_helpers.rb +59 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/controller_helpers/menu_helpers.rb +193 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/action_view_wrapper.rb +23 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/event_helpers.rb +28 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/layout_helpers.rb +47 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/widget_support.rb +181 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/widget_support/class_methods.rb +28 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/yield_helpers.rb +33 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/proxy_helpers/feature_helpers.rb +17 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/render_helper.rb +71 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/terminal_helpers.rb +21 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/test_helpers.rb +6 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/test_helpers/tml_validation_assertions.rb +10 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/test_helpers/variable_assertions.rb +27 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/view_helpers/form_helpers.rb +70 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/helpers/view_helpers/rtml_form_builder.rb +174 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/oe/btmlpa_constants.rb +48 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/proxying/method_missing_methods.rb +14 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/proxying/rtml_interface.rb +33 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/proxying/sandbox.rb +18 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/text_utils.rb +51 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/tml_param_parser.rb +95 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/validation/dom_rule_parser.rb +61 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/validation/dom_tag.rb +52 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/validation/predefined_variable_rule_parser.rb +97 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/validation/tml_validator.rb +16 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/version.rb +11 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/widgets/property.rb +11 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/widgets/property_accessors.rb +59 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/widgets/widget.rb +251 -0
- data/app_generators/rtml/templates/rtml/lib/rtml/widgets/widget_class_methods.rb +213 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/dot.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_can.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_cand.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_en.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_end.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_i.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icd.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icl.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icr.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_ics.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icsw.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icv.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_int.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_int2.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_men.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_mend.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_next.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_no.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_nod.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_ok.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_okd.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic1.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic2.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic3.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic4.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_top.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_txn.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_yes.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_yesd.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/btmlpa.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/can_dn.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/can_up.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/conf.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/iccemv.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/images.lib +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/magcard.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/no_dn.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/no_up.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/ok_dn.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/ok_up.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/top.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/yes_dn.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/yes_up.gif +0 -0
- data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/beryl_color.css +37 -0
- data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/beryl_mono.css +17 -0
- data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/charts.css +0 -0
- data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/btmlpa/i5100.css +12 -0
- data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/btmlpa/i8550.css +37 -0
- data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/btmlpa/receipt.css +4 -0
- data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/examples/i5100.css +12 -0
- data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/examples/i8550.css +37 -0
- data/app_generators/rtml/templates/rtml/reporting/110409 +227 -0
- data/app_generators/rtml/templates/rtml/reporting/linecount.rb +42 -0
- data/app_generators/rtml/templates/rtml/rules/predefined_tml_variables.rb +63 -0
- data/app_generators/rtml/templates/rtml/rules/tml_document_structure.rb +84 -0
- data/app_generators/rtml/templates/rtml/rules/varns/audio.rb +30 -0
- data/app_generators/rtml/templates/rtml/rules/varns/card.rb +17 -0
- data/app_generators/rtml/templates/rtml/rules/varns/card/emv.rb +31 -0
- data/app_generators/rtml/templates/rtml/rules/varns/card/mag.rb +8 -0
- data/app_generators/rtml/templates/rtml/rules/varns/card/parser.rb +7 -0
- data/app_generators/rtml/templates/rtml/rules/varns/card/pin.rb +6 -0
- data/app_generators/rtml/templates/rtml/rules/varns/cfgm.rb +15 -0
- data/app_generators/rtml/templates/rtml/rules/varns/com.rb +9 -0
- data/app_generators/rtml/templates/rtml/rules/varns/err.rb +14 -0
- data/app_generators/rtml/templates/rtml/rules/varns/gma/event.rb +13 -0
- data/app_generators/rtml/templates/rtml/rules/varns/gprs.rb +8 -0
- data/app_generators/rtml/templates/rtml/rules/varns/imager.rb +8 -0
- data/app_generators/rtml/templates/rtml/rules/varns/ip.rb +15 -0
- data/app_generators/rtml/templates/rtml/rules/varns/oebr.rb +42 -0
- data/app_generators/rtml/templates/rtml/rules/varns/oebr/3rdparty.rb +7 -0
- data/app_generators/rtml/templates/rtml/rules/varns/oebr/backlight.rb +4 -0
- data/app_generators/rtml/templates/rtml/rules/varns/oebr/cache.rb +1 -0
- data/app_generators/rtml/templates/rtml/rules/varns/oebr/connect.rb +5 -0
- data/app_generators/rtml/templates/rtml/rules/varns/oebr/connection.rb +5 -0
- data/app_generators/rtml/templates/rtml/rules/varns/oebr/offline.rb +5 -0
- data/app_generators/rtml/templates/rtml/rules/varns/oegw.rb +12 -0
- data/app_generators/rtml/templates/rtml/rules/varns/payment.rb +21 -0
- data/app_generators/rtml/templates/rtml/rules/varns/ppp.rb +11 -0
- data/app_generators/rtml/templates/rtml/rules/varns/terminal.rb +29 -0
- data/app_generators/rtml/templates/rtml/tasks/rtml_tasks.rake +78 -0
- data/app_generators/rtml/templates/rtml/template.rb +64 -0
- data/app_generators/rtml/templates/rtml/test/core/element_test.rb +17 -0
- data/app_generators/rtml/templates/rtml/test/core/screen_test.rb +91 -0
- data/app_generators/rtml/templates/rtml/test/core/tml_document_test.rb +53 -0
- data/app_generators/rtml/templates/rtml/test/functional/beryl_controller_test.rb +13 -0
- data/app_generators/rtml/templates/rtml/test/functional/btmlpa_controller_test.rb +13 -0
- data/app_generators/rtml/templates/rtml/test/functional/magcard_demo_controller_test.rb +20 -0
- data/app_generators/rtml/templates/rtml/test/functional/rtml_app_controller_test.rb +9 -0
- data/app_generators/rtml/templates/rtml/test/functional/rtml_routing_test.rb +19 -0
- data/app_generators/rtml/templates/rtml/test/functional/tml_controller_params_test.rb +20 -0
- data/app_generators/rtml/templates/rtml/test/rtml_test_helper.rb +44 -0
- data/app_generators/rtml/templates/rtml/test/validation/predefined_variable_rule_parser_test.rb +11 -0
- data/app_generators/rtml/templates/rtml/uninstall.rb +1 -0
- data/app_generators/rtml/templates/rtml/update.rb +57 -0
- data/bin/rtml +36 -0
- data/lib/rtml.rb +4 -0
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/tasks/reglob.rake +28 -0
- data/test/test_generator_helper.rb +29 -0
- data/test/test_helper.rb +3 -0
- data/test/test_rtml.rb +11 -0
- data/test/test_rtml_generator.rb +43 -0
- metadata +516 -0
data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_duplicate.rtml.erb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<%if color_display?%>
|
2
|
+
<tr>
|
3
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_icd.gif" alt="" /></td>
|
4
|
+
<td><a href="#duplicate">Duplicate</a></td>
|
5
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_pic2.gif" alt=""/></td>
|
6
|
+
</tr>
|
7
|
+
<%else%>
|
8
|
+
<div class="menu"><a href='#duplicate'>Duplicate</a></div>
|
9
|
+
<%end%>
|
data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_examples.rtml.erb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<%if color_display?%>
|
2
|
+
<tr>
|
3
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_icl.gif" alt="" /></td>
|
4
|
+
<td><a href="<%=url_for :controller => 'rtml/oe/examples/index'%>">Examples</a></td>
|
5
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_pic3.gif" alt=""/></td>
|
6
|
+
</tr>
|
7
|
+
<%else%>
|
8
|
+
<div class="menu"><%=link_to 'Sale', :controller => 'rtml/oe/examples/index'%></div>
|
9
|
+
<%end%>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%if color_display?%>
|
2
|
+
<!--
|
3
|
+
Insert additional hooks here, for i8550 and similar models:
|
4
|
+
|
5
|
+
<tr>
|
6
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_i.gif" alt="" /></td>
|
7
|
+
<td colspan="2">
|
8
|
+
<%=link_to 'Hook Action Label', :action => 'hook_action'%>
|
9
|
+
</td>
|
10
|
+
</tr>
|
11
|
+
-->
|
12
|
+
<%else%>
|
13
|
+
<!--
|
14
|
+
Insert additional hooks here, for i5100 and similar models:
|
15
|
+
|
16
|
+
<div class="menu">
|
17
|
+
<%=link_to 'Hook Action Label', :action => 'hook_action'%>
|
18
|
+
</div>
|
19
|
+
-->
|
20
|
+
<%end%>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%if color_display?%>
|
2
|
+
<tr>
|
3
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_icr.gif" alt="" /></td>
|
4
|
+
<td colspan="2"><a href="#refund">Refund<img src="/images/rtml/oe/btmlpa/nbg_next.gif" alt="" /></a></td>
|
5
|
+
</tr>
|
6
|
+
<%else%>
|
7
|
+
<div class="menu"><a href='#refund'>Refund</a></div>
|
8
|
+
<%end%>
|
data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_reversal.rtml.erb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<%if color_display?%>
|
2
|
+
<tr>
|
3
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_icv.gif" alt="" /></td>
|
4
|
+
<td><a href="#check_rev">Reversal</a></td>
|
5
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_pic1.gif" alt=""/></td>
|
6
|
+
</tr>
|
7
|
+
<%else%>
|
8
|
+
<div class="menu"><a href='#check_rev'>Reversal</a></div>
|
9
|
+
<%end%>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%if color_display?%>
|
2
|
+
<tr>
|
3
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_ics.gif" alt="" /></td>
|
4
|
+
<td colspan="2"><a href="#sale" >Sale<img src="/images/rtml/oe/btmlpa/nbg_next.gif" alt=""/></a></td>
|
5
|
+
</tr>
|
6
|
+
<%else%>
|
7
|
+
<div class="menu"><a href='#sale'>Sale</a></div>
|
8
|
+
<%end%>
|
data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_sale_cashback.rtml.erb
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<%if color_display?%>
|
2
|
+
<tr>
|
3
|
+
<td><img src="/images/rtml/oe/btmlpa/nbg_icsw.gif" alt="" /></td>
|
4
|
+
<td colspan="2"><a href="#sale_cb">Sale With Cashback<img src="/images/rtml/oe/btmlpa/nbg_next.gif" alt=""/></a></td>
|
5
|
+
</tr>
|
6
|
+
<%else%>
|
7
|
+
<div class="menu"><a href='#sale_cb'>Sale With Cashback</a></div>
|
8
|
+
<%end%>
|
@@ -0,0 +1 @@
|
|
1
|
+
BTMLPA 2.1.3.2
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%form_for :card do |f|%>
|
2
|
+
Key in card number:<br/>
|
3
|
+
<%=f.number_field :pan, :format => 'n*', :size => 19, :alt => 'PAN:'%>
|
4
|
+
<br/>
|
5
|
+
Key in Expiry Date [MM/YY]:<br/>
|
6
|
+
<%=f.date_field :expiry_date, :alt => 'Expiry Date:', :format => 'MM/YY', :size => 5,
|
7
|
+
:value => 'tmlvar:card.expiry_date'%>
|
8
|
+
<!--
|
9
|
+
<input alt='Expiry Date:' type='date' name='card.expiry_date' format='MM/YY' size='5' value='tmlvar:card.expiry_date'>
|
10
|
+
<baddata class='c_center' next='#card_nmb'>
|
11
|
+
<table border='2' height='100%' width='100%'><tr><td valign='middle' align='center'>
|
12
|
+
<getvar name='err.baddata_reason' />
|
13
|
+
</td></tr></table>
|
14
|
+
</baddata>
|
15
|
+
</input>
|
16
|
+
-->
|
17
|
+
<br/>
|
18
|
+
<input alt='OK' type='submit' />
|
19
|
+
<%end%>
|
@@ -0,0 +1 @@
|
|
1
|
+
Transaction Completed
|
@@ -0,0 +1 @@
|
|
1
|
+
Receipt to duplicate is not available
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<!-- this table is designed to scale to any screen size -->
|
2
|
+
<%if graphical_display?%>
|
3
|
+
<table class="menu" width="100%">
|
4
|
+
<tr>
|
5
|
+
<td><!-- left edge --></td>
|
6
|
+
<td>
|
7
|
+
<!-- content -->
|
8
|
+
<table class="menu2" border="0" cellpadding="0">
|
9
|
+
<!-- align the columns and set explicit width -->
|
10
|
+
<colgroup>
|
11
|
+
<!-- this column contains transaction icons -->
|
12
|
+
<col align="left" width="40" />
|
13
|
+
<!-- this column contains links
|
14
|
+
most links span 2 cells -->
|
15
|
+
<col width="114" align="left" />
|
16
|
+
<!-- this column contains the credit card images -->
|
17
|
+
<col align="right" width="66"/>
|
18
|
+
</colgroup>
|
19
|
+
<%[:logo, :sale, :sale_cashback, :refund, :reversal, :duplicate, :examples, :other, :about].each do |item|%>
|
20
|
+
<%=render :partial => "menu_#{item}"%>
|
21
|
+
<%end%>
|
22
|
+
</table>
|
23
|
+
</td>
|
24
|
+
<td><!-- right edge --></td>
|
25
|
+
</tr>
|
26
|
+
</table>
|
27
|
+
<%else%>
|
28
|
+
<%[:logo, :sale, :sale_cashback, :refund, :reversal, :duplicate, :examples, :other, :about].each do |item|%>
|
29
|
+
<%=render :partial => "menu_#{item}"%>
|
30
|
+
<%end%>
|
31
|
+
<%end%>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<!-- this table is designed to scale to any screen size -->
|
2
|
+
<%if color_display?%>
|
3
|
+
<table class="menu" width="100%">
|
4
|
+
<tr>
|
5
|
+
<td><!-- left edge --></td>
|
6
|
+
<td>
|
7
|
+
<!-- content -->
|
8
|
+
<table class="menu2" border="0" cellpadding="0">
|
9
|
+
<!-- align the columns and set explicit width -->
|
10
|
+
<colgroup>
|
11
|
+
<!-- this column contains transaction icons -->
|
12
|
+
<col align="left" width="40" />
|
13
|
+
<!-- this column contains links
|
14
|
+
most links span 2 cells -->
|
15
|
+
<col width="114" align="left" />
|
16
|
+
<!-- this column contains the credit card images -->
|
17
|
+
<col align="right" width="66"/>
|
18
|
+
</colgroup>
|
19
|
+
<%=render :partial => 'menu_logo'%>
|
20
|
+
<%=render_menu_items%>
|
21
|
+
</table>
|
22
|
+
</td>
|
23
|
+
<td><!-- right edge --></td>
|
24
|
+
</tr>
|
25
|
+
</table>
|
26
|
+
<%else%>
|
27
|
+
<%=render :partial => 'menu_logo'%>
|
28
|
+
<%=render_menu_items do |item, block_response|
|
29
|
+
label = block_response || item[:label]
|
30
|
+
if item[:partial]
|
31
|
+
render :partial => item[:partial]
|
32
|
+
else
|
33
|
+
<<-end_tml
|
34
|
+
<div class="menu">
|
35
|
+
#{link_to label, item[:next_screen].to_screen_ref}
|
36
|
+
</div>
|
37
|
+
end_tml
|
38
|
+
end
|
39
|
+
end%>
|
40
|
+
<%end%>
|
@@ -0,0 +1 @@
|
|
1
|
+
Cannot go offline: offline pool is full.
|
@@ -0,0 +1 @@
|
|
1
|
+
<%=render :partial => 'enter_amount'%>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%=render :partial => 'enter_amount'%>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<%form_for :payment, :url => { :action => 'test' } do |f|%>
|
2
|
+
Purchase Amount:<br/>
|
3
|
+
<%=f.number_field :amount, :size => 10, :min => 1, :format => "^*0.00"%><br/>
|
4
|
+
|
5
|
+
Cashback Amount:<br/>
|
6
|
+
<%=f.number_field :amount_other, :alt => "Amount:", :size => 10, :min => 1,
|
7
|
+
:format => "^*0.00"%><br/>
|
8
|
+
|
9
|
+
<%=f.submit :post => false%>
|
10
|
+
<%end%>
|
@@ -0,0 +1 @@
|
|
1
|
+
<getvar name='card.parser.reject_reason' />
|
@@ -0,0 +1 @@
|
|
1
|
+
Please Remove Card
|
@@ -0,0 +1 @@
|
|
1
|
+
Reversal Forbidden
|
@@ -0,0 +1 @@
|
|
1
|
+
Transaction has been aborted.
|
@@ -0,0 +1 @@
|
|
1
|
+
Transaction Cancelled
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<print>
|
2
|
+
<table class="receipt">
|
3
|
+
<tr><td>
|
4
|
+
<h1><getvar name="btmlpa.receipt.header" /></h1>
|
5
|
+
<hr />
|
6
|
+
<p class="emvdata"><getvar name="btmlpa.receipt.emv_app_aid"/></p>
|
7
|
+
<p class="emvdata"><getvar name="btmlpa.receipt.emv_app_label" /></p>
|
8
|
+
<p>On <getvar name="payment.txn_date" format="DD/MM/YYYY"/> at
|
9
|
+
<getvar name="payment.txn_date" format="hh:mm:ss"/></p>
|
10
|
+
<p>Transaction# <getvar name="transid" /></p>
|
11
|
+
<p><getvar name="btmlpa.receipt.store_name" /></p>
|
12
|
+
<p><getvar name="btmlpa.receipt.store_address" /></p>
|
13
|
+
<p class="pan"><getvar name="card.pan" format="tmlvar:btmlpa.receipt.pan_format"/></p>
|
14
|
+
<p><getvar name="btmlpa.receipt.authorization" /></p>
|
15
|
+
<p>Amount:</p>
|
16
|
+
<p class="amount"><getvar name="payment.amount" format="^*0.00"/><getvar name="btmlpa.receipt.currency" /></p>
|
17
|
+
<p><getvar name="btmlpa.receipt.cashback_message"/></p>
|
18
|
+
<p class="amount"><getvar name="btmlpa.receipt.cashback_amount"/></p>
|
19
|
+
<p><getvar name="payment.trans_type" /></p>
|
20
|
+
<p class="signature"><getvar name="btmlpa.receipt.signature" /></p>
|
21
|
+
<p class="footer"><getvar name="btmlpa.receipt.footr" /></p>
|
22
|
+
</td></tr>
|
23
|
+
</table>
|
24
|
+
<br/>
|
25
|
+
<hr />
|
26
|
+
<!-- line breaks to make it easier
|
27
|
+
to tear off a completed receipt from the printer -->
|
28
|
+
<br/><br/><br/><br/><br/><br/><br/><br/>
|
29
|
+
</print>
|
@@ -0,0 +1,167 @@
|
|
1
|
+
<h1><%=params[:controller]%>#<%=params[:action]%></h1>
|
2
|
+
<div id='sidebar'>
|
3
|
+
<ol start='0'>
|
4
|
+
<li><%=link_to "RTML Beginner's Guide (remote)",
|
5
|
+
"http://wiki.rubytml.com/doku.php?id=rtml_beginner_s_guide", :target => "_new"%></li>
|
6
|
+
<li><%=link_to "File Locations", params.merge(:anchor => 'files')%></li>
|
7
|
+
<%if connected_to_berylapp?%>
|
8
|
+
<li><%=link_to "UML Diagram of '#{params[:action]}'", params.merge(:anchor => 'uml')%></li>
|
9
|
+
<%end%>
|
10
|
+
<li><%=link_to "Form Helpers", params.merge(:anchor => 'form_helpers')%></li>
|
11
|
+
<li><%=link_to "Operators", params.merge(:anchor => 'operators')%></li>
|
12
|
+
</ol>
|
13
|
+
</div>
|
14
|
+
<p>
|
15
|
+
This is the HTML front-end file for your newly-generated RTML action. Basically, that
|
16
|
+
means that this is a public-facing page that gets sent to people who stumble across this
|
17
|
+
location. Since RTML doesn't generate HTML content, there'd be nothing to show a user
|
18
|
+
who's bringing a standard HTML browser to this location. Feel free to modify this file
|
19
|
+
to provide a more user-friendly frontend. By default, they'll be given a friendly "go away"
|
20
|
+
message in production, and they'll see the message you're currently reading in development.
|
21
|
+
</p>
|
22
|
+
<p>
|
23
|
+
Now that we've gone over what this page is here for, we can dedicate the remainder to a nifty
|
24
|
+
cheat sheet to help you get started, or to remember common mistakes.
|
25
|
+
</p>
|
26
|
+
<p>
|
27
|
+
<a class='section' name='files'>File Locations</a>
|
28
|
+
<ul>
|
29
|
+
<li>this file in
|
30
|
+
<span class='filename'>app/views/<%=params[:controller]%>/<%=params[:action]%>.html.erb</span></li>
|
31
|
+
<li>the RTML helpers in
|
32
|
+
<span class='filename'>app/helpers/<%=params[:controller]%>_tml_helpers/<%=params[:action]%>.rb</span></li>
|
33
|
+
<li>the RTML views in
|
34
|
+
<span class='filename'>app/views/<%=params[:controller]%>/<%=params[:action]%>/*.rb</span></li>
|
35
|
+
</ul>
|
36
|
+
</p>
|
37
|
+
<%if connected_to_berylapp?%>
|
38
|
+
<p>
|
39
|
+
<a class='section' name='uml'>UML Diagram</a>
|
40
|
+
<div id='uml_div'>
|
41
|
+
<%if params[:tred] == '1'%>
|
42
|
+
<%=link_to "Standard", :anchor => :uml, :tred => nil, :rankdir => params[:rankdir]%>
|
43
|
+
<%else%>
|
44
|
+
Standard
|
45
|
+
<%end%>
|
46
|
+
|
|
47
|
+
<%if params[:tred] == '1'%>
|
48
|
+
TRED
|
49
|
+
<%else%>
|
50
|
+
<%=link_to "TRED", :tred => '1', :anchor => :uml, :rankdir => params[:rankdir]%>
|
51
|
+
<%end%>
|
52
|
+
<br/>
|
53
|
+
<%if params[:rankdir] == 'TB'%>
|
54
|
+
<%=link_to "Left-to-Right", :anchor => :uml, :rankdir => "LR", :tred => params[:tred]%>
|
55
|
+
<%else%>
|
56
|
+
Left-to-Right
|
57
|
+
<%end%>
|
58
|
+
|
|
59
|
+
<%if params[:rankdir] == 'TB'%>
|
60
|
+
Top-to-Bottom
|
61
|
+
<%else%>
|
62
|
+
<%=link_to "Top-to-Bottom", :anchor => :uml, :rankdir => 'TB', :tred => params[:tred]%>
|
63
|
+
<%end%>
|
64
|
+
<br/>
|
65
|
+
<%=image_tag url_for(:action => 'uml', :id => params[:action], :tred => params[:tred], :rankdir => params[:rankdir] || "LR")%>
|
66
|
+
</div></p>
|
67
|
+
<%end%>
|
68
|
+
<p>
|
69
|
+
<a class='section' name='form_helpers'>Form Helpers</a>
|
70
|
+
<table cellspacing='2' cellpadding='2' id='form_helpers'>
|
71
|
+
<tr>
|
72
|
+
<th>Form Helper</th>
|
73
|
+
<th>TML input type</th>
|
74
|
+
<th>Usage Example</th>
|
75
|
+
</tr>
|
76
|
+
<tr>
|
77
|
+
<td>tml_select</td><td>list</td>
|
78
|
+
<td><%=f.tml_select :state, %W(AL AK AS AZ AR CA . . . )%></td>
|
79
|
+
</tr>
|
80
|
+
<tr>
|
81
|
+
<td>check_box</td><td>checkbox</td>
|
82
|
+
<td><%=f.check_box :enabled%></td>
|
83
|
+
</tr>
|
84
|
+
<tr>
|
85
|
+
<td>hidden_field</td><td>special<sup>1</sup></td>
|
86
|
+
<td><%=f.hidden_field :var_name[, :value => ‘whatever’]%></td>
|
87
|
+
</tr>
|
88
|
+
<tr>
|
89
|
+
<td>label</td><td>special<sup>1</sup></td>
|
90
|
+
<td><%=f.label :var_name[, “use this label instead”]%></td>
|
91
|
+
</tr>
|
92
|
+
<tr>
|
93
|
+
<td>radio_button</td><td>radio</td>
|
94
|
+
<td><%=f.radio_button :sex, “male”%>; <%%=f.radio_button :sex, “female”%></td>
|
95
|
+
</tr>
|
96
|
+
<tr>
|
97
|
+
<td>date_field</td><td>date</td>
|
98
|
+
<td><%=f.date_field :todaydate%></td>
|
99
|
+
</tr>
|
100
|
+
<tr>
|
101
|
+
<td>password_field</td><td>password</td>
|
102
|
+
<td><%=f.password_field :password%></td>
|
103
|
+
</tr>
|
104
|
+
<tr>
|
105
|
+
<td>text_field</td><td>text</td>
|
106
|
+
<td><%=f.text_field :first_name%></td>
|
107
|
+
</tr>
|
108
|
+
<tr>
|
109
|
+
<td>number_field</td><td>number</td>
|
110
|
+
<td><%=f.number_field :num_games%></td>
|
111
|
+
</tr>
|
112
|
+
<tr>
|
113
|
+
<td>submit</td><td>submit<sup>2</sup></td>
|
114
|
+
<td><%=f.submit[, "button text"]%></td>
|
115
|
+
</tr>
|
116
|
+
<tr>
|
117
|
+
<td>reset</td><td>reset</td>
|
118
|
+
<td><%=f.reset[, "button text"]%></td>
|
119
|
+
</tr>
|
120
|
+
<tr>
|
121
|
+
<td>baddata_for</td><td><baddata/><sup>3</sup></td>
|
122
|
+
<td><%=f.baddata_for :password do . . . end%></td>
|
123
|
+
</tr>
|
124
|
+
</table>
|
125
|
+
</p>
|
126
|
+
<p>
|
127
|
+
<sup>1</sup> Special input types are form elements that do not exist in pure TML.
|
128
|
+
RTML automatically generates supporting code for these elements.
|
129
|
+
</p>
|
130
|
+
<p>
|
131
|
+
<sup>2</sup> RTML Submit buttons generate additional screens and result in data
|
132
|
+
being sent to the server. Alternatively, use the “submit” widget (this is what
|
133
|
+
the <%=link_to "tutorial", "http://wiki.rubytml.com/doku.php?id=rtml_beginner_s_guide"%> does)
|
134
|
+
to send data directly to the server.
|
135
|
+
</p>
|
136
|
+
<p>
|
137
|
+
<sup>3</sup> This is for customizing the <baddata/> elements that display when
|
138
|
+
the user enters invalid data, and is optional. In most cases, RTML will generate the
|
139
|
+
necessary <baddata/> elements for you.
|
140
|
+
</p>
|
141
|
+
<p>
|
142
|
+
You can pass any option that the TML Application Development Guidelines mention for an "input" tag with
|
143
|
+
the syntax <i>:option => "value"</i>. Some examples:</p>
|
144
|
+
<p class='code'>
|
145
|
+
<%=f.text_field :agent_id, :min => 6, :max => 12%> (minimum 6 characters, maximum 12 characters)
|
146
|
+
<%=f.number_field :amount, :min => 100, :max => 5000%> (minimum 100, maximum 5000)
|
147
|
+
<%=f.text_field :agent_id, :format => “n*”%> (a text field that accepts only numeric characters)</p>
|
148
|
+
|
149
|
+
<p><a class='section' name='operators'>Operators</a>
|
150
|
+
<strong>Multiplication and division are currently not supported.</strong>
|
151
|
+
Operators for assignments or conditions can include any of the following:
|
152
|
+
<table class='code'>
|
153
|
+
<tr><td>==</td><td>equal</td></tr>
|
154
|
+
<tr><td>!=</td><td>not equal</td></tr>
|
155
|
+
<tr><td>></td><td>greater than</td></tr>
|
156
|
+
<tr><td>>=</td><td>greater than or equal to</td></tr>
|
157
|
+
<tr><td><</td><td>less than</td></tr>
|
158
|
+
<tr><td><=</td><td>less than or equal to</td></tr>
|
159
|
+
<tr><td>+</td><td>addition, left plus right</td></tr>
|
160
|
+
<tr><td>plus</td><td>addition, left plus right</td></tr>
|
161
|
+
<tr><td>-</td><td>subtraction, left minus right</td></tr>
|
162
|
+
<tr><td>minus</td><td>subtraction, left minus right</td></tr>
|
163
|
+
<tr><td>contains</td><td>left value contains right value (strings)</td></tr>
|
164
|
+
<tr><td>item</td><td>Nth item in the left value, where N is the right value</td></tr>
|
165
|
+
</table>
|
166
|
+
<br/>
|
167
|
+
|