rtml 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. data/History.txt +4 -0
  2. data/Manifest.txt +396 -0
  3. data/PostInstall.txt +2 -0
  4. data/README.rdoc +42 -0
  5. data/Rakefile +33 -0
  6. data/app_generators/rtml/USAGE +5 -0
  7. data/app_generators/rtml/rtml_generator.rb +78 -0
  8. data/app_generators/rtml/templates/rails_template.rb +36 -0
  9. data/app_generators/rtml/templates/rtml/MIT-LICENSE +20 -0
  10. data/app_generators/rtml/templates/rtml/README +109 -0
  11. data/app_generators/rtml/templates/rtml/Rakefile +38 -0
  12. data/app_generators/rtml/templates/rtml/app/controllers/beryl_controller.rb +70 -0
  13. data/app_generators/rtml/templates/rtml/app/controllers/rtml/magcard_demo_controller.rb +9 -0
  14. data/app_generators/rtml/templates/rtml/app/controllers/rtml/oe/btmlpa_controller.rb +158 -0
  15. data/app_generators/rtml/templates/rtml/app/controllers/rtml/rtml_app_controller.rb +252 -0
  16. data/app_generators/rtml/templates/rtml/app/controllers/rtml/tml_app_controller.rb +418 -0
  17. data/app_generators/rtml/templates/rtml/app/helpers/beryl_helper.rb +72 -0
  18. data/app_generators/rtml/templates/rtml/app/helpers/beryl_tml_helpers/auth_result.rb +56 -0
  19. data/app_generators/rtml/templates/rtml/app/helpers/beryl_tml_helpers/common.rb +19 -0
  20. data/app_generators/rtml/templates/rtml/app/helpers/beryl_tml_helpers/index.rb +82 -0
  21. data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_helper.rb +2 -0
  22. data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_tml_helpers/authorized.rb +10 -0
  23. data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_tml_helpers/common.rb +20 -0
  24. data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_tml_helpers/index.rb +33 -0
  25. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_helper.rb +2 -0
  26. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/auth_result.rb +23 -0
  27. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/common.rb +23 -0
  28. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/dynamic.rb +11 -0
  29. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/icc.rb +384 -0
  30. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/index.rb +191 -0
  31. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/receipt.rb +152 -0
  32. data/app_generators/rtml/templates/rtml/app/helpers/rtml/rtml_app_helper.rb +74 -0
  33. data/app_generators/rtml/templates/rtml/app/helpers/rtml/rtml_app_tml_helpers/common.rb +9 -0
  34. data/app_generators/rtml/templates/rtml/app/helpers/rtml/tml_app_helper.rb +43 -0
  35. data/app_generators/rtml/templates/rtml/app/models/rtml/card.rb +83 -0
  36. data/app_generators/rtml/templates/rtml/app/models/rtml/card_avs.rb +14 -0
  37. data/app_generators/rtml/templates/rtml/app/models/rtml/card_cvv.rb +14 -0
  38. data/app_generators/rtml/templates/rtml/app/models/rtml/card_parser.rb +21 -0
  39. data/app_generators/rtml/templates/rtml/app/models/rtml/card_pin.rb +18 -0
  40. data/app_generators/rtml/templates/rtml/app/models/rtml/emv_card_data.rb +25 -0
  41. data/app_generators/rtml/templates/rtml/app/models/rtml/mag_card_data.rb +21 -0
  42. data/app_generators/rtml/templates/rtml/app/models/rtml/reference_code.rb +26 -0
  43. data/app_generators/rtml/templates/rtml/app/models/rtml/state.rb +12 -0
  44. data/app_generators/rtml/templates/rtml/app/models/rtml/terminal.rb +8 -0
  45. data/app_generators/rtml/templates/rtml/app/models/rtml/transaction.rb +68 -0
  46. data/app_generators/rtml/templates/rtml/app/views/beryl/auth_result/another_rcpt.rtml.erb +15 -0
  47. data/app_generators/rtml/templates/rtml/app/views/beryl/auth_result/receipt.rtml.erb +108 -0
  48. data/app_generators/rtml/templates/rtml/app/views/beryl/auth_result/receipt_single_column.rtml.erb +106 -0
  49. data/app_generators/rtml/templates/rtml/app/views/beryl/index/about.rtml.erb +8 -0
  50. data/app_generators/rtml/templates/rtml/app/views/beryl/index/admin.rtml.erb +4 -0
  51. data/app_generators/rtml/templates/rtml/app/views/beryl/index/construction.rtml.erb +10 -0
  52. data/app_generators/rtml/templates/rtml/app/views/beryl/index/idle.rtml.erb +13 -0
  53. data/app_generators/rtml/templates/rtml/app/views/beryl/index/main_menu.rtml.erb +12 -0
  54. data/app_generators/rtml/templates/rtml/app/views/beryl/index/menu_credit.rtml.erb +8 -0
  55. data/app_generators/rtml/templates/rtml/app/views/beryl/index/menu_debit.rtml.erb +3 -0
  56. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/beryl_color.rtml.erb +24 -0
  57. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/beryl_mono.rtml.erb +8 -0
  58. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/magcard_demo_color.rtml.erb +24 -0
  59. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/magcard_demo_mono.rtml.erb +3 -0
  60. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/oe/btmlpa_i5100.rtml.erb +3 -0
  61. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/oe/btmlpa_i8550.rtml.erb +17 -0
  62. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/uml.html.erb +11 -0
  63. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/authorized.html.erb +15 -0
  64. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/authorized/main.rtml.erb +5 -0
  65. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index.html.erb +15 -0
  66. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index/_error.rtml.erb +2 -0
  67. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index/enter_amount.rtml.erb +5 -0
  68. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index/main.rtml.erb +4 -0
  69. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/dynamic/response.rtml.erb +2 -0
  70. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/icc.rtml.erb +760 -0
  71. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_enter_amount.rtml.erb +4 -0
  72. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_about.rtml.erb +8 -0
  73. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_duplicate.rtml.erb +9 -0
  74. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_examples.rtml.erb +9 -0
  75. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_logo.rtml.erb +11 -0
  76. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_other.rtml.erb +20 -0
  77. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_refund.rtml.erb +8 -0
  78. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_reversal.rtml.erb +9 -0
  79. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_sale.rtml.erb +8 -0
  80. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_sale_cashback.rtml.erb +8 -0
  81. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/about.rtml.erb +1 -0
  82. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/assert.rtml.erb +2 -0
  83. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/card_nmb.rtml.erb +19 -0
  84. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/compl_txn.rtml.erb +1 -0
  85. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/confirm_rev.rtml.erb +3 -0
  86. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/duplicate_na.rtml.erb +1 -0
  87. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/error_scr.rtml.erb +4 -0
  88. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/main_menu.rtml.bak +31 -0
  89. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/main_menu.rtml.erb +40 -0
  90. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/print_pf.rtml.erb +1 -0
  91. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/rd_sale_disp.rtml.erb +1 -0
  92. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/read_refund.rtml.erb +1 -0
  93. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/read_scb.rtml.erb +10 -0
  94. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/reject_trans.rtml.erb +1 -0
  95. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/remove_card.rtml.erb +1 -0
  96. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/rev_bad.rtml.erb +1 -0
  97. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/scb_check_f.rtml.erb +2 -0
  98. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/sign_check.rtml.erb +3 -0
  99. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/subm_err.rtml.erb +2 -0
  100. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/to_man_entry.rtml.erb +2 -0
  101. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/trans_abrt.rtml.erb +1 -0
  102. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/void_trans.rtml.erb +1 -0
  103. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/receipt/_receipt.rtml.erb +29 -0
  104. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/receipt/error_paper.rtml.erb +3 -0
  105. data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/_default_development.html.erb +167 -0
  106. data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/_default_header.html.erb +12 -0
  107. data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/_default_production.html.erb +8 -0
  108. data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/charts.html.erb +14 -0
  109. data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/do_tml_redirect.rtml.erb +7 -0
  110. data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/get_terminal_info.rtml.erb +26 -0
  111. data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/rescue_action_in_public.rtml.erb +9 -0
  112. data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/rescue_action_locally.rtml.erb +42 -0
  113. data/app_generators/rtml/templates/rtml/components/rtml/features/common.rb +303 -0
  114. data/app_generators/rtml/templates/rtml/components/rtml/features/force.rb +46 -0
  115. data/app_generators/rtml/templates/rtml/components/rtml/features/return.rb +22 -0
  116. data/app_generators/rtml/templates/rtml/components/rtml/features/sale.rb +49 -0
  117. data/app_generators/rtml/templates/rtml/components/rtml/features/views/_confirmation.rtml.erb +10 -0
  118. data/app_generators/rtml/templates/rtml/components/rtml/features/views/_receipt_agreement.rtml.erb +3 -0
  119. data/app_generators/rtml/templates/rtml/components/rtml/features/views/_receipt_footer.rtml.erb +2 -0
  120. data/app_generators/rtml/templates/rtml/components/rtml/features/views/_receipt_header.rtml.erb +4 -0
  121. data/app_generators/rtml/templates/rtml/components/rtml/features/views/ask_cashback.rtml.erb +11 -0
  122. data/app_generators/rtml/templates/rtml/components/rtml/features/views/card_imprint.rtml.erb +7 -0
  123. data/app_generators/rtml/templates/rtml/components/rtml/features/views/check_cb.rtml.erb +11 -0
  124. data/app_generators/rtml/templates/rtml/components/rtml/features/views/conf_debit.rtml.erb +5 -0
  125. data/app_generators/rtml/templates/rtml/components/rtml/features/views/confirm_sale.rtml.erb +4 -0
  126. data/app_generators/rtml/templates/rtml/components/rtml/features/views/confrm_force.rtml.erb +4 -0
  127. data/app_generators/rtml/templates/rtml/components/rtml/features/views/cvv_skipped.rtml.erb +10 -0
  128. data/app_generators/rtml/templates/rtml/components/rtml/features/views/disp_avs.rtml.erb +8 -0
  129. data/app_generators/rtml/templates/rtml/components/rtml/features/views/do_avs_zip.rtml.erb +8 -0
  130. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_amount.rtml.erb +12 -0
  131. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_card.rtml.erb +8 -0
  132. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_cashbk.rtml.erb +10 -0
  133. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_cvv2.rtml.erb +8 -0
  134. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_expiry.rtml.erb +9 -0
  135. data/app_generators/rtml/templates/rtml/components/rtml/features/views/fraud_check1.rtml.erb +6 -0
  136. data/app_generators/rtml/templates/rtml/components/rtml/features/views/fraud_check2.rtml.erb +8 -0
  137. data/app_generators/rtml/templates/rtml/components/rtml/features/views/frc_aprvl.rtml.erb +8 -0
  138. data/app_generators/rtml/templates/rtml/components/rtml/features/views/frc_avs_zip.rtml.erb +8 -0
  139. data/app_generators/rtml/templates/rtml/components/rtml/features/views/frc_bad_aprv.rtml.erb +5 -0
  140. data/app_generators/rtml/templates/rtml/components/rtml/features/views/frd_chk_fail.rtml.erb +5 -0
  141. data/app_generators/rtml/templates/rtml/components/rtml/features/views/invalid_exp.rtml.erb +1 -0
  142. data/app_generators/rtml/templates/rtml/components/rtml/features/views/no_entr_crd.rtml.erb +1 -0
  143. data/app_generators/rtml/templates/rtml/components/rtml/features/views/remove_card.rtml.erb +1 -0
  144. data/app_generators/rtml/templates/rtml/components/rtml/features/views/swipe_card.rtml.erb +7 -0
  145. data/app_generators/rtml/templates/rtml/components/rtml/features/views/trans_abort.rtml.erb +1 -0
  146. data/app_generators/rtml/templates/rtml/components/rtml/features/views/trans_reject.rtml.erb +1 -0
  147. data/app_generators/rtml/templates/rtml/components/rtml/features/views/void_ref.rtml.erb +10 -0
  148. data/app_generators/rtml/templates/rtml/components/rtml/features/void.rb +30 -0
  149. data/app_generators/rtml/templates/rtml/components/rtml/widgets/card_parser_widget.rb +90 -0
  150. data/app_generators/rtml/templates/rtml/components/rtml/widgets/display_widget.rb +66 -0
  151. data/app_generators/rtml/templates/rtml/components/rtml/widgets/element_builder_widget.rb +123 -0
  152. data/app_generators/rtml/templates/rtml/components/rtml/widgets/emv_support_widget.rb +365 -0
  153. data/app_generators/rtml/templates/rtml/components/rtml/widgets/form_submit_widget.rb +65 -0
  154. data/app_generators/rtml/templates/rtml/components/rtml/widgets/get_transaction_variables_widget.rb +33 -0
  155. data/app_generators/rtml/templates/rtml/components/rtml/widgets/get_variable_widget.rb +39 -0
  156. data/app_generators/rtml/templates/rtml/components/rtml/widgets/receipt_widget.rb +66 -0
  157. data/app_generators/rtml/templates/rtml/components/rtml/widgets/screen_builder_widget.rb +49 -0
  158. data/app_generators/rtml/templates/rtml/db/migrate/20090825132217_create_rtml_states.rb +15 -0
  159. data/app_generators/rtml/templates/rtml/db/migrate/20090825132401_create_rtml_terminals.rb +16 -0
  160. data/app_generators/rtml/templates/rtml/db/migrate/20090825132530_create_rtml_transactions.rb +24 -0
  161. data/app_generators/rtml/templates/rtml/db/migrate/20090825134118_create_rtml_cards.rb +23 -0
  162. data/app_generators/rtml/templates/rtml/db/migrate/20090825134622_create_rtml_emv_card_data.rb +20 -0
  163. data/app_generators/rtml/templates/rtml/db/migrate/20090825134629_create_rtml_mag_card_data.rb +17 -0
  164. data/app_generators/rtml/templates/rtml/db/migrate/20090825135838_create_rtml_card_parsers.rb +19 -0
  165. data/app_generators/rtml/templates/rtml/db/migrate/20090826103509_create_reference_codes.rb +14 -0
  166. data/app_generators/rtml/templates/rtml/db/migrate/20090915030044_add_batch_to_rtml_transactions.rb +10 -0
  167. data/app_generators/rtml/templates/rtml/db/migrate/20090915031155_add_additional_data_to_rtml_transactions.rb +10 -0
  168. data/app_generators/rtml/templates/rtml/db/migrate/20090915031156_add_hidden_data_to_rtml_transactions.rb +10 -0
  169. data/app_generators/rtml/templates/rtml/db/migrate/20091016133313_create_rtml_card_avs.rb +16 -0
  170. data/app_generators/rtml/templates/rtml/db/migrate/20091016135800_create_rtml_card_cvvs.rb +16 -0
  171. data/app_generators/rtml/templates/rtml/db/migrate/20091016135810_create_rtml_card_pins.rb +16 -0
  172. data/app_generators/rtml/templates/rtml/db/migrate/20091016135820_reverse_card_transaction_relationship.rb +11 -0
  173. data/app_generators/rtml/templates/rtml/db/migrate/20100127115105_convert_rtml_migrations_to_rails_migrations.rb +31 -0
  174. data/app_generators/rtml/templates/rtml/generators/rtml_controller/USAGE +25 -0
  175. data/app_generators/rtml/templates/rtml/generators/rtml_controller/rtml_controller_generator.rb +49 -0
  176. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/common_tml_helper.rb +20 -0
  177. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/controller.rb +3 -0
  178. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/css_color.css +37 -0
  179. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/css_mono.css +12 -0
  180. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/functional_test.rb +11 -0
  181. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/helper.rb +2 -0
  182. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/layout_color.rtml.erb +24 -0
  183. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/layout_mono.rtml.erb +3 -0
  184. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/tml_helper.rb +16 -0
  185. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/view.html.erb +15 -0
  186. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/view.rtml.erb +2 -0
  187. data/app_generators/rtml/templates/rtml/generators/rtml_document/USAGE +8 -0
  188. data/app_generators/rtml/templates/rtml/generators/rtml_document/rtml_document_generator.rb +45 -0
  189. data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/controller.rb +7 -0
  190. data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/functional_test.rb +10 -0
  191. data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/helper.rb +2 -0
  192. data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/view.rtml.erb +11 -0
  193. data/app_generators/rtml/templates/rtml/generators/rtml_widget/USAGE +8 -0
  194. data/app_generators/rtml/templates/rtml/generators/rtml_widget/rtml_widget_generator.rb +66 -0
  195. data/app_generators/rtml/templates/rtml/generators/rtml_widget/templates/basic_widget.rb +57 -0
  196. data/app_generators/rtml/templates/rtml/generators/rtml_widget/templates/basic_widget_no_help.rb +27 -0
  197. data/app_generators/rtml/templates/rtml/init.rb +40 -0
  198. data/app_generators/rtml/templates/rtml/install.rb +18 -0
  199. data/app_generators/rtml/templates/rtml/lib/environment.rb +61 -0
  200. data/app_generators/rtml/templates/rtml/lib/extensions/action_controller/request.rb +9 -0
  201. data/app_generators/rtml/templates/rtml/lib/extensions/action_controller/routing/route_set.rb +34 -0
  202. data/app_generators/rtml/templates/rtml/lib/extensions/action_view/base.rb +74 -0
  203. data/app_generators/rtml/templates/rtml/lib/extensions/action_view/partial_template.rb +24 -0
  204. data/app_generators/rtml/templates/rtml/lib/extensions/active_record.rb +13 -0
  205. data/app_generators/rtml/templates/rtml/lib/extensions/active_support/dependencies.rb +25 -0
  206. data/app_generators/rtml/templates/rtml/lib/extensions/array.rb +15 -0
  207. data/app_generators/rtml/templates/rtml/lib/extensions/attr_boolean.rb +10 -0
  208. data/app_generators/rtml/templates/rtml/lib/extensions/hash.rb +28 -0
  209. data/app_generators/rtml/templates/rtml/lib/extensions/nil_class.rb +20 -0
  210. data/app_generators/rtml/templates/rtml/lib/extensions/rake.rb +19 -0
  211. data/app_generators/rtml/templates/rtml/lib/extensions/regexp.rb +16 -0
  212. data/app_generators/rtml/templates/rtml/lib/extensions/string.rb +37 -0
  213. data/app_generators/rtml/templates/rtml/lib/other_plugins.rb +23 -0
  214. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/MIT-LICENSE +20 -0
  215. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/README +36 -0
  216. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/Rakefile +44 -0
  217. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/init.rb +25 -0
  218. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/action_controller/filters/before_render_filter.rb +30 -0
  219. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/before_render.rb +43 -0
  220. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/before_render_instance.rb +45 -0
  221. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/filter_chain_has_many_types_of_filters.rb +87 -0
  222. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/filter_has_before_render.rb +26 -0
  223. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/tasks/before_render_tasks.rake +25 -0
  224. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/test/before_render_test.rb +29 -0
  225. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/test/test_helper.rb +24 -0
  226. data/app_generators/rtml/templates/rtml/lib/rtml.rb +77 -0
  227. data/app_generators/rtml/templates/rtml/lib/rtml/beryl/constants.rb +12 -0
  228. data/app_generators/rtml/templates/rtml/lib/rtml/beryl/version.rb +11 -0
  229. data/app_generators/rtml/templates/rtml/lib/rtml/common/renderable.rb +13 -0
  230. data/app_generators/rtml/templates/rtml/lib/rtml/core/include.rb +30 -0
  231. data/app_generators/rtml/templates/rtml/lib/rtml/core/layout.rb +59 -0
  232. data/app_generators/rtml/templates/rtml/lib/rtml/core/next.rb +188 -0
  233. data/app_generators/rtml/templates/rtml/lib/rtml/core/screen.rb +91 -0
  234. data/app_generators/rtml/templates/rtml/lib/rtml/core/screen/iterators.rb +63 -0
  235. data/app_generators/rtml/templates/rtml/lib/rtml/core/screen/next_screen_methods.rb +70 -0
  236. data/app_generators/rtml/templates/rtml/lib/rtml/core/screen/variable_methods.rb +73 -0
  237. data/app_generators/rtml/templates/rtml/lib/rtml/core/support/importer.rb +55 -0
  238. data/app_generators/rtml/templates/rtml/lib/rtml/core/tml_document.rb +318 -0
  239. data/app_generators/rtml/templates/rtml/lib/rtml/core/tml_document/screen_methods.rb +79 -0
  240. data/app_generators/rtml/templates/rtml/lib/rtml/core/tml_document/variable_methods.rb +83 -0
  241. data/app_generators/rtml/templates/rtml/lib/rtml/core/variable.rb +123 -0
  242. data/app_generators/rtml/templates/rtml/lib/rtml/debug/browser_emulator.rb +59 -0
  243. data/app_generators/rtml/templates/rtml/lib/rtml/debug/rtml_controller_test_case.rb +7 -0
  244. data/app_generators/rtml/templates/rtml/lib/rtml/debug/rtml_core_unit_test.rb +11 -0
  245. data/app_generators/rtml/templates/rtml/lib/rtml/debug/unit_test.rb +3 -0
  246. data/app_generators/rtml/templates/rtml/lib/rtml/delegation.rb +8 -0
  247. data/app_generators/rtml/templates/rtml/lib/rtml/doc.rb +12 -0
  248. data/app_generators/rtml/templates/rtml/lib/rtml/element.rb +75 -0
  249. data/app_generators/rtml/templates/rtml/lib/rtml/errors/widget_accessor_failure.rb +9 -0
  250. data/app_generators/rtml/templates/rtml/lib/rtml/events/event_handler.rb +79 -0
  251. data/app_generators/rtml/templates/rtml/lib/rtml/events/event_processor.rb +106 -0
  252. data/app_generators/rtml/templates/rtml/lib/rtml/events/processors.rb +10 -0
  253. data/app_generators/rtml/templates/rtml/lib/rtml/events/processors/defaults_processor.rb +18 -0
  254. data/app_generators/rtml/templates/rtml/lib/rtml/events/processors/key_processor.rb +21 -0
  255. data/app_generators/rtml/templates/rtml/lib/rtml/feature.rb +32 -0
  256. data/app_generators/rtml/templates/rtml/lib/rtml/feature_config.rb +195 -0
  257. data/app_generators/rtml/templates/rtml/lib/rtml/features.rb +18 -0
  258. data/app_generators/rtml/templates/rtml/lib/rtml/features/array_of_feature_instances.rb +17 -0
  259. data/app_generators/rtml/templates/rtml/lib/rtml/features/controller_class_methods.rb +30 -0
  260. data/app_generators/rtml/templates/rtml/lib/rtml/features/controller_instance_methods.rb +35 -0
  261. data/app_generators/rtml/templates/rtml/lib/rtml/helpers.rb +21 -0
  262. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/controller_helpers.rb +59 -0
  263. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/controller_helpers/menu_helpers.rb +193 -0
  264. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/action_view_wrapper.rb +23 -0
  265. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/event_helpers.rb +28 -0
  266. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/layout_helpers.rb +47 -0
  267. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/widget_support.rb +181 -0
  268. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/widget_support/class_methods.rb +28 -0
  269. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/yield_helpers.rb +33 -0
  270. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/proxy_helpers/feature_helpers.rb +17 -0
  271. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/render_helper.rb +71 -0
  272. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/terminal_helpers.rb +21 -0
  273. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/test_helpers.rb +6 -0
  274. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/test_helpers/tml_validation_assertions.rb +10 -0
  275. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/test_helpers/variable_assertions.rb +27 -0
  276. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/view_helpers/form_helpers.rb +70 -0
  277. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/view_helpers/rtml_form_builder.rb +174 -0
  278. data/app_generators/rtml/templates/rtml/lib/rtml/oe/btmlpa_constants.rb +48 -0
  279. data/app_generators/rtml/templates/rtml/lib/rtml/proxying/method_missing_methods.rb +14 -0
  280. data/app_generators/rtml/templates/rtml/lib/rtml/proxying/rtml_interface.rb +33 -0
  281. data/app_generators/rtml/templates/rtml/lib/rtml/proxying/sandbox.rb +18 -0
  282. data/app_generators/rtml/templates/rtml/lib/rtml/text_utils.rb +51 -0
  283. data/app_generators/rtml/templates/rtml/lib/rtml/tml_param_parser.rb +95 -0
  284. data/app_generators/rtml/templates/rtml/lib/rtml/validation/dom_rule_parser.rb +61 -0
  285. data/app_generators/rtml/templates/rtml/lib/rtml/validation/dom_tag.rb +52 -0
  286. data/app_generators/rtml/templates/rtml/lib/rtml/validation/predefined_variable_rule_parser.rb +97 -0
  287. data/app_generators/rtml/templates/rtml/lib/rtml/validation/tml_validator.rb +16 -0
  288. data/app_generators/rtml/templates/rtml/lib/rtml/version.rb +11 -0
  289. data/app_generators/rtml/templates/rtml/lib/rtml/widgets/property.rb +11 -0
  290. data/app_generators/rtml/templates/rtml/lib/rtml/widgets/property_accessors.rb +59 -0
  291. data/app_generators/rtml/templates/rtml/lib/rtml/widgets/widget.rb +251 -0
  292. data/app_generators/rtml/templates/rtml/lib/rtml/widgets/widget_class_methods.rb +213 -0
  293. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/dot.gif +0 -0
  294. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_can.gif +0 -0
  295. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_cand.gif +0 -0
  296. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_en.gif +0 -0
  297. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_end.gif +0 -0
  298. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_i.gif +0 -0
  299. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icd.gif +0 -0
  300. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icl.gif +0 -0
  301. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icr.gif +0 -0
  302. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_ics.gif +0 -0
  303. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icsw.gif +0 -0
  304. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icv.gif +0 -0
  305. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_int.gif +0 -0
  306. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_int2.gif +0 -0
  307. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_men.gif +0 -0
  308. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_mend.gif +0 -0
  309. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_next.gif +0 -0
  310. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_no.gif +0 -0
  311. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_nod.gif +0 -0
  312. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_ok.gif +0 -0
  313. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_okd.gif +0 -0
  314. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic1.gif +0 -0
  315. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic2.gif +0 -0
  316. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic3.gif +0 -0
  317. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic4.gif +0 -0
  318. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_top.gif +0 -0
  319. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_txn.gif +0 -0
  320. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_yes.gif +0 -0
  321. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_yesd.gif +0 -0
  322. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/btmlpa.gif +0 -0
  323. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/can_dn.gif +0 -0
  324. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/can_up.gif +0 -0
  325. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/conf.gif +0 -0
  326. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/iccemv.gif +0 -0
  327. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/images.lib +0 -0
  328. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/magcard.gif +0 -0
  329. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/no_dn.gif +0 -0
  330. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/no_up.gif +0 -0
  331. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/ok_dn.gif +0 -0
  332. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/ok_up.gif +0 -0
  333. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/top.gif +0 -0
  334. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/yes_dn.gif +0 -0
  335. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/yes_up.gif +0 -0
  336. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/beryl_color.css +37 -0
  337. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/beryl_mono.css +17 -0
  338. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/charts.css +0 -0
  339. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/btmlpa/i5100.css +12 -0
  340. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/btmlpa/i8550.css +37 -0
  341. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/btmlpa/receipt.css +4 -0
  342. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/examples/i5100.css +12 -0
  343. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/examples/i8550.css +37 -0
  344. data/app_generators/rtml/templates/rtml/reporting/110409 +227 -0
  345. data/app_generators/rtml/templates/rtml/reporting/linecount.rb +42 -0
  346. data/app_generators/rtml/templates/rtml/rules/predefined_tml_variables.rb +63 -0
  347. data/app_generators/rtml/templates/rtml/rules/tml_document_structure.rb +84 -0
  348. data/app_generators/rtml/templates/rtml/rules/varns/audio.rb +30 -0
  349. data/app_generators/rtml/templates/rtml/rules/varns/card.rb +17 -0
  350. data/app_generators/rtml/templates/rtml/rules/varns/card/emv.rb +31 -0
  351. data/app_generators/rtml/templates/rtml/rules/varns/card/mag.rb +8 -0
  352. data/app_generators/rtml/templates/rtml/rules/varns/card/parser.rb +7 -0
  353. data/app_generators/rtml/templates/rtml/rules/varns/card/pin.rb +6 -0
  354. data/app_generators/rtml/templates/rtml/rules/varns/cfgm.rb +15 -0
  355. data/app_generators/rtml/templates/rtml/rules/varns/com.rb +9 -0
  356. data/app_generators/rtml/templates/rtml/rules/varns/err.rb +14 -0
  357. data/app_generators/rtml/templates/rtml/rules/varns/gma/event.rb +13 -0
  358. data/app_generators/rtml/templates/rtml/rules/varns/gprs.rb +8 -0
  359. data/app_generators/rtml/templates/rtml/rules/varns/imager.rb +8 -0
  360. data/app_generators/rtml/templates/rtml/rules/varns/ip.rb +15 -0
  361. data/app_generators/rtml/templates/rtml/rules/varns/oebr.rb +42 -0
  362. data/app_generators/rtml/templates/rtml/rules/varns/oebr/3rdparty.rb +7 -0
  363. data/app_generators/rtml/templates/rtml/rules/varns/oebr/backlight.rb +4 -0
  364. data/app_generators/rtml/templates/rtml/rules/varns/oebr/cache.rb +1 -0
  365. data/app_generators/rtml/templates/rtml/rules/varns/oebr/connect.rb +5 -0
  366. data/app_generators/rtml/templates/rtml/rules/varns/oebr/connection.rb +5 -0
  367. data/app_generators/rtml/templates/rtml/rules/varns/oebr/offline.rb +5 -0
  368. data/app_generators/rtml/templates/rtml/rules/varns/oegw.rb +12 -0
  369. data/app_generators/rtml/templates/rtml/rules/varns/payment.rb +21 -0
  370. data/app_generators/rtml/templates/rtml/rules/varns/ppp.rb +11 -0
  371. data/app_generators/rtml/templates/rtml/rules/varns/terminal.rb +29 -0
  372. data/app_generators/rtml/templates/rtml/tasks/rtml_tasks.rake +78 -0
  373. data/app_generators/rtml/templates/rtml/template.rb +64 -0
  374. data/app_generators/rtml/templates/rtml/test/core/element_test.rb +17 -0
  375. data/app_generators/rtml/templates/rtml/test/core/screen_test.rb +91 -0
  376. data/app_generators/rtml/templates/rtml/test/core/tml_document_test.rb +53 -0
  377. data/app_generators/rtml/templates/rtml/test/functional/beryl_controller_test.rb +13 -0
  378. data/app_generators/rtml/templates/rtml/test/functional/btmlpa_controller_test.rb +13 -0
  379. data/app_generators/rtml/templates/rtml/test/functional/magcard_demo_controller_test.rb +20 -0
  380. data/app_generators/rtml/templates/rtml/test/functional/rtml_app_controller_test.rb +9 -0
  381. data/app_generators/rtml/templates/rtml/test/functional/rtml_routing_test.rb +19 -0
  382. data/app_generators/rtml/templates/rtml/test/functional/tml_controller_params_test.rb +20 -0
  383. data/app_generators/rtml/templates/rtml/test/rtml_test_helper.rb +44 -0
  384. data/app_generators/rtml/templates/rtml/test/validation/predefined_variable_rule_parser_test.rb +11 -0
  385. data/app_generators/rtml/templates/rtml/uninstall.rb +1 -0
  386. data/app_generators/rtml/templates/rtml/update.rb +57 -0
  387. data/bin/rtml +36 -0
  388. data/lib/rtml.rb +4 -0
  389. data/script/console +10 -0
  390. data/script/destroy +14 -0
  391. data/script/generate +14 -0
  392. data/tasks/reglob.rake +28 -0
  393. data/test/test_generator_helper.rb +29 -0
  394. data/test/test_helper.rb +3 -0
  395. data/test/test_rtml.rb +11 -0
  396. data/test/test_rtml_generator.rb +43 -0
  397. metadata +516 -0
@@ -0,0 +1,4 @@
1
+ <%form_for :payment do |f|%>
2
+ Amount:<br/>
3
+ <%=f.number_field :amount, :size => 10, :min => 1, :format => '^*0.00'%>
4
+ <%end%>
@@ -0,0 +1,8 @@
1
+ <%if color_display?%>
2
+ <tr>
3
+ <td><img src="/images/rtml/oe/btmlpa/nbg_i.gif" alt="" /></td>
4
+ <td colspan="2"><a href="#about">About</a></td>
5
+ </tr>
6
+ <%else%>
7
+ <div class="menu"><a href='#about'>About</a></div>
8
+ <%end%>
@@ -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%>
@@ -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,11 @@
1
+ <%if color_display?%>
2
+ <tr>
3
+ <td colspan="3" align="center">
4
+ <img src="/images/rtml/oe/btmlpa/nbg_top.gif" width="224" alt="" />
5
+ </td>
6
+ </tr>
7
+ <%else%>
8
+ <div class="title">
9
+ <span class="title">TML Sample App</span>
10
+ </div>
11
+ <%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%>
@@ -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%>
@@ -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,2 @@
1
+ Assertion Error<br/>
2
+ on screen '<getvar name='oebr.prev_screen' />
@@ -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,3 @@
1
+ Reverse Transaction?<br/>
2
+ <a href='#sub_rev_prep'>YES</a><br/>
3
+ <a href='#close_trans'>NO</a>
@@ -0,0 +1,4 @@
1
+ code-low: <getvar name='err.code.low' /><br/>
2
+ code-high: <getvar name='err.code.high' /><br/>
3
+ <getvar name='err.baddata_reason' /><br/>
4
+ <getvar name='err.description' />
@@ -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,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,2 @@
1
+ Cashback amount is greater than sale amount.<br/>
2
+ Not allowed.
@@ -0,0 +1,3 @@
1
+ Is Signature OK?<br/>
2
+ <%=link_to 'YES', :action => 'receipt', :anchor => :rcpt_cust%><br/>
3
+ <%=link_to 'NO', :anchor => :sub_rev_prep%>
@@ -0,0 +1,2 @@
1
+ Couldn't reverse transaction.<br/>
2
+ Connection error and offline pool is full.
@@ -0,0 +1,2 @@
1
+ Card is not readable.<br/>
2
+ Forwarding to manual entry.
@@ -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,3 @@
1
+ Out of paper<br/>
2
+ Replace paper and press<br/>
3
+ <span class='bold'>Enter</span>
@@ -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>&lt;%=f.tml_select :state, %W(AL AK AS AZ AR CA . . . )%&gt;</td>
79
+ </tr>
80
+ <tr>
81
+ <td>check_box</td><td>checkbox</td>
82
+ <td>&lt;%=f.check_box :enabled%&gt;</td>
83
+ </tr>
84
+ <tr>
85
+ <td>hidden_field</td><td>special<sup>1</sup></td>
86
+ <td>&lt;%=f.hidden_field :var_name[, :value => ‘whatever’]%&gt;</td>
87
+ </tr>
88
+ <tr>
89
+ <td>label</td><td>special<sup>1</sup></td>
90
+ <td>&lt;%=f.label :var_name[, “use this label instead”]%&gt;</td>
91
+ </tr>
92
+ <tr>
93
+ <td>radio_button</td><td>radio</td>
94
+ <td>&lt;%=f.radio_button :sex, “male”%&gt;; <%%=f.radio_button :sex, “female”%></td>
95
+ </tr>
96
+ <tr>
97
+ <td>date_field</td><td>date</td>
98
+ <td>&lt;%=f.date_field :todaydate%&gt;</td>
99
+ </tr>
100
+ <tr>
101
+ <td>password_field</td><td>password</td>
102
+ <td>&lt;%=f.password_field :password%&gt;</td>
103
+ </tr>
104
+ <tr>
105
+ <td>text_field</td><td>text</td>
106
+ <td>&lt;%=f.text_field :first_name%&gt;</td>
107
+ </tr>
108
+ <tr>
109
+ <td>number_field</td><td>number</td>
110
+ <td>&lt;%=f.number_field :num_games%&gt;</td>
111
+ </tr>
112
+ <tr>
113
+ <td>submit</td><td>submit<sup>2</sup></td>
114
+ <td>&lt;%=f.submit[, "button text"]%&gt;</td>
115
+ </tr>
116
+ <tr>
117
+ <td>reset</td><td>reset</td>
118
+ <td>&lt;%=f.reset[, "button text"]%&gt;</td>
119
+ </tr>
120
+ <tr>
121
+ <td>baddata_for</td><td>&lt;baddata/&gt;<sup>3</sup></td>
122
+ <td>&lt;%=f.baddata_for :password do . . . end%&gt;</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 &lt;baddata/&gt; elements that display when
138
+ the user enters invalid data, and is optional. In most cases, RTML will generate the
139
+ necessary &lt;baddata/&gt; 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
+ &lt;%=f.text_field :agent_id, :min => 6, :max => 12%&gt; (minimum 6 characters, maximum 12 characters)
146
+ &lt;%=f.number_field :amount, :min => 100, :max => 5000%&gt; (minimum 100, maximum 5000)
147
+ &lt;%=f.text_field :agent_id, :format => “n*”%&gt; (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>&gt;</td><td>greater than</td></tr>
156
+ <tr><td>&gt;=</td><td>greater than or equal to</td></tr>
157
+ <tr><td>&lt;</td><td>less than</td></tr>
158
+ <tr><td>&lt;=</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
+ &nbsp;<br/>
167
+