kwartz 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/ChangeLog +36 -1
  2. data/LGPL +504 -0
  3. data/README.txt +16 -2
  4. data/bin/kwartz +1 -1
  5. data/doc-api/classes/Kwartz.html +47 -1
  6. data/doc-api/classes/Kwartz/Assertion.html +6 -6
  7. data/doc-api/classes/Kwartz/AssertionError.html +6 -6
  8. data/doc-api/classes/Kwartz/AttrInfo.html +42 -42
  9. data/doc-api/classes/Kwartz/BaseError.html +12 -12
  10. data/doc-api/classes/Kwartz/BaseTranslator.html +210 -43
  11. data/doc-api/classes/Kwartz/CharacterType.html +24 -24
  12. data/doc-api/classes/Kwartz/CommandOptionError.html +7 -7
  13. data/doc-api/classes/Kwartz/CommandOptions.html +49 -49
  14. data/doc-api/classes/Kwartz/Config.html +6 -1
  15. data/doc-api/classes/Kwartz/ConvertError.html +14 -14
  16. data/doc-api/classes/Kwartz/Converter.html +31 -30
  17. data/doc-api/classes/Kwartz/CssStyleParser.html +79 -57
  18. data/doc-api/classes/Kwartz/Defun.html +313 -0
  19. data/doc-api/classes/Kwartz/DocumentRuleset.html +58 -58
  20. data/doc-api/classes/Kwartz/ElementExpander.html +32 -32
  21. data/doc-api/classes/Kwartz/ElementInfo.html +29 -29
  22. data/doc-api/classes/Kwartz/ElementRuleset.html +126 -96
  23. data/doc-api/classes/Kwartz/EperlHandler.html +108 -84
  24. data/doc-api/classes/Kwartz/EperlTranslator.html +7 -7
  25. data/doc-api/classes/Kwartz/ErubisHandler.html +2 -2
  26. data/doc-api/classes/Kwartz/ErubisTranslator.html +8 -8
  27. data/doc-api/classes/Kwartz/ErubyHandler.html +2 -220
  28. data/doc-api/classes/Kwartz/ErubyTranslator.html +7 -7
  29. data/doc-api/classes/Kwartz/ExpandStatement.html +20 -20
  30. data/doc-api/classes/Kwartz/Handler.html +122 -117
  31. data/doc-api/classes/Kwartz/HandlerArgument.html +215 -0
  32. data/doc-api/classes/Kwartz/Helper.html +112 -0
  33. data/doc-api/classes/Kwartz/Helper/ActionViewHelper.html +221 -0
  34. data/doc-api/classes/Kwartz/Helper/RailsTemplate.html +630 -0
  35. data/doc-api/classes/Kwartz/JstlHandler.html +208 -193
  36. data/doc-api/classes/Kwartz/JstlTranslator.html +15 -15
  37. data/doc-api/classes/Kwartz/KwartzError.html +6 -6
  38. data/doc-api/classes/Kwartz/Main.html +39 -23
  39. data/doc-api/classes/Kwartz/NativeExpression.html +18 -18
  40. data/doc-api/classes/Kwartz/NativeStatement.html +25 -25
  41. data/doc-api/classes/Kwartz/Node.html +6 -6
  42. data/doc-api/classes/Kwartz/PIErubisHandler.html +113 -0
  43. data/doc-api/classes/Kwartz/PIErubisTranslator.html +200 -0
  44. data/doc-api/classes/Kwartz/ParseError.html +6 -6
  45. data/doc-api/classes/Kwartz/PhpHandler.html +102 -83
  46. data/doc-api/classes/Kwartz/PhpTranslator.html +14 -14
  47. data/doc-api/classes/Kwartz/PresentationLogicParser.html +136 -128
  48. data/doc-api/classes/Kwartz/PrintStatement.html +19 -19
  49. data/doc-api/classes/Kwartz/RailsHandler.html +121 -118
  50. data/doc-api/classes/Kwartz/RailsTranslator.html +7 -7
  51. data/doc-api/classes/Kwartz/RubyHandler.html +349 -0
  52. data/doc-api/classes/Kwartz/RubyStyleParser.html +85 -85
  53. data/doc-api/classes/Kwartz/RubyTranslator.html +218 -0
  54. data/doc-api/classes/Kwartz/StatementHelper.html +479 -0
  55. data/doc-api/classes/Kwartz/StrutsTranslator.html +12 -12
  56. data/doc-api/classes/Kwartz/TagInfo.html +28 -28
  57. data/doc-api/classes/Kwartz/TextConverter.html +28 -28
  58. data/doc-api/classes/Kwartz/Translator.html +42 -42
  59. data/doc-api/classes/Kwartz/Util.html +284 -0
  60. data/doc-api/created.rid +1 -1
  61. data/doc-api/files/__/README_txt.html +30 -3
  62. data/doc-api/files/kwartz/assert_rb.html +1 -1
  63. data/doc-api/files/kwartz/binding/eperl_rb.html +2 -2
  64. data/doc-api/files/kwartz/binding/erubis_rb.html +3 -3
  65. data/doc-api/files/kwartz/binding/eruby_rb.html +3 -2
  66. data/doc-api/files/kwartz/binding/jstl_rb.html +2 -2
  67. data/doc-api/files/kwartz/binding/php_rb.html +2 -2
  68. data/doc-api/files/kwartz/binding/pierubis_rb.html +116 -0
  69. data/doc-api/files/kwartz/binding/rails_rb.html +2 -2
  70. data/doc-api/files/kwartz/binding/ruby_rb.html +115 -0
  71. data/doc-api/files/kwartz/binding/struts_rb.html +1 -1
  72. data/doc-api/files/kwartz/config_rb.html +2 -2
  73. data/doc-api/files/kwartz/converter_rb.html +3 -2
  74. data/doc-api/files/kwartz/defun_rb.html +116 -0
  75. data/doc-api/files/kwartz/error_rb.html +1 -1
  76. data/doc-api/files/kwartz/helper/rails_rb.html +123 -0
  77. data/doc-api/files/kwartz/main_rb.html +5 -2
  78. data/doc-api/files/kwartz/node_rb.html +2 -2
  79. data/doc-api/files/kwartz/parser_rb.html +2 -2
  80. data/doc-api/files/kwartz/translator_rb.html +2 -2
  81. data/doc-api/files/kwartz/util/assert-text-equal_rb.html +1 -1
  82. data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
  83. data/doc-api/files/kwartz/util_rb.html +107 -0
  84. data/doc-api/files/kwartz_rb.html +3 -2
  85. data/doc-api/fr_class_index.html +11 -0
  86. data/doc-api/fr_file_index.html +5 -0
  87. data/doc-api/fr_method_index.html +242 -190
  88. data/doc/p-pattern.html +94 -94
  89. data/doc/reference.html +847 -612
  90. data/doc/users-guide.html +744 -241
  91. data/examples/rails1/README +2 -2
  92. data/examples/rails1/application_helper.rb +2 -27
  93. data/examples/rails1/link_to.plogic +5 -5
  94. data/examples/rails1/list.plogic +2 -2
  95. data/examples/rails2/app/controllers/application.rb +14 -0
  96. data/examples/rails2/app/controllers/groups_controller.rb +47 -0
  97. data/examples/rails2/app/controllers/members_controller.rb +56 -0
  98. data/examples/rails2/app/helpers/application_helper.rb +6 -0
  99. data/examples/rails2/app/helpers/groups_helper.rb +2 -0
  100. data/examples/rails2/app/helpers/members_helper.rb +2 -0
  101. data/examples/rails2/app/models/group.rb +2 -0
  102. data/examples/rails2/app/models/member.rb +3 -0
  103. data/examples/rails2/app/views/groups/_form.html +30 -0
  104. data/examples/rails2/app/views/groups/_form.plogic +11 -0
  105. data/examples/rails2/app/views/groups/_link.plogic +19 -0
  106. data/examples/rails2/app/views/groups/_read.plogic +7 -0
  107. data/examples/rails2/app/views/groups/edit.cfg.yaml +2 -0
  108. data/examples/rails2/app/views/groups/edit.html +26 -0
  109. data/examples/rails2/app/views/groups/edit.plogic +9 -0
  110. data/examples/rails2/app/views/groups/list.html +48 -0
  111. data/examples/rails2/app/views/groups/list.plogic +32 -0
  112. data/examples/rails2/app/views/groups/new.cfg.yaml +2 -0
  113. data/examples/rails2/app/views/groups/new.html +27 -0
  114. data/examples/rails2/app/views/groups/new.plogic +9 -0
  115. data/examples/rails2/app/views/groups/show.html +27 -0
  116. data/examples/rails2/app/views/groups/show.plogic +2 -0
  117. data/examples/rails2/app/views/layouts/groups.html +23 -0
  118. data/examples/rails2/app/views/layouts/groups.plogic +11 -0
  119. data/examples/rails2/app/views/layouts/members.html +23 -0
  120. data/examples/rails2/app/views/layouts/members.plogic +11 -0
  121. data/examples/rails2/app/views/layouts/members2.html +24 -0
  122. data/examples/rails2/app/views/layouts/members2.plogic +11 -0
  123. data/examples/rails2/app/views/members/_form.plogic +27 -0
  124. data/examples/rails2/app/views/members/_link.plogic +19 -0
  125. data/examples/rails2/app/views/members/_read.plogic +29 -0
  126. data/examples/rails2/app/views/members/edit.cfg.yaml +6 -0
  127. data/examples/rails2/app/views/members/edit.html +27 -0
  128. data/examples/rails2/app/views/members/edit.plogic +10 -0
  129. data/examples/rails2/app/views/members/list.html +53 -0
  130. data/examples/rails2/app/views/members/list.plogic +32 -0
  131. data/examples/rails2/app/views/members/new.html +61 -0
  132. data/examples/rails2/app/views/members/new.plogic +17 -0
  133. data/examples/rails2/app/views/members/show.html +41 -0
  134. data/examples/rails2/app/views/members/show.plogic +3 -0
  135. data/examples/rails2/db/create-tables.mysql.sql +27 -0
  136. data/examples/rails2/db/create-tables.pgsql.sql +27 -0
  137. data/examples/rails2/db/insert-data.sql +21 -0
  138. data/examples/rails2/db/tabledef.yaml +51 -0
  139. data/kwartz.gemspec +4 -4
  140. data/lib/kwartz.rb +10 -2
  141. data/lib/kwartz/assert.rb +1 -1
  142. data/lib/kwartz/binding/eperl.rb +85 -61
  143. data/lib/kwartz/binding/erubis.rb +6 -8
  144. data/lib/kwartz/binding/eruby.rb +5 -120
  145. data/lib/kwartz/binding/jstl.rb +116 -101
  146. data/lib/kwartz/binding/php.rb +79 -60
  147. data/lib/kwartz/binding/pierubis.rb +58 -0
  148. data/lib/kwartz/binding/rails.rb +45 -42
  149. data/lib/kwartz/binding/ruby.rb +193 -0
  150. data/lib/kwartz/binding/struts.rb +1 -1
  151. data/lib/kwartz/config.rb +4 -3
  152. data/lib/kwartz/converter.rb +231 -68
  153. data/lib/kwartz/defun.rb +126 -0
  154. data/lib/kwartz/error.rb +1 -1
  155. data/lib/kwartz/helper/rails.rb +437 -0
  156. data/lib/kwartz/main.rb +30 -38
  157. data/lib/kwartz/node.rb +46 -31
  158. data/lib/kwartz/parser.rb +43 -15
  159. data/lib/kwartz/translator.rb +104 -6
  160. data/lib/kwartz/util.rb +113 -0
  161. data/lib/kwartz/util/assert-text-equal.rb +1 -1
  162. data/lib/kwartz/util/testcase-helper.rb +26 -8
  163. data/test/test-compile.rb +3 -3
  164. data/test/test-compile.yaml +135 -5
  165. data/test/test-converter.rb +16 -8
  166. data/test/test-converter.yaml +307 -76
  167. data/test/test-directives.rb +1 -1
  168. data/test/test-directives.yaml +964 -979
  169. data/test/test-main.rb +61 -146
  170. data/test/test-main.yaml +235 -0
  171. data/test/test-parser.rb +10 -12
  172. data/test/test-parser.yaml +484 -326
  173. data/test/test-rails.rb +1 -1
  174. data/test/test-rails.yaml +37 -37
  175. data/test/test-ruleset.rb +1 -1
  176. data/test/test-ruleset.yaml +34 -40
  177. data/test/test.rb +1 -1
  178. metadata +82 -3
  179. data/COPYING +0 -340
@@ -0,0 +1,9 @@
1
+ @import '_link.plogic';
2
+
3
+ #start_form {
4
+ stag: start_form_tag :action=>'create';
5
+ }
6
+
7
+ #submit {
8
+ elem: submit_tag "Create";
9
+ }
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <title>Show group</title>
5
+ </head>
6
+ <body>
7
+
8
+ <h1 id="page_title">Show Group</h1>
9
+
10
+ <div id="page_content">
11
+
12
+ <p>
13
+ <b>Name:</b>
14
+ <span id="mark:group_name">group name</span>
15
+ </p>
16
+ <p>
17
+ <b>Description:</b>
18
+ <span id="mark:group_desc">group desription</span>
19
+ </p>
20
+
21
+ <a href="#" id="link_to_edit">Edit</a> |
22
+ <a href="#" id="link_to_list">Back</a>
23
+
24
+ </div>
25
+
26
+ </body>
27
+ </html>
@@ -0,0 +1,2 @@
1
+ @import '_link.plogic';
2
+ @import '_read.plogic';
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html lang="en">
3
+ <head>
4
+ <title id="mark:header_title">...header title...</title>
5
+ <link rel="stylesheet" type="text/css" href="scaffold.css" id="mark:stylesheet" />
6
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7
+ </head>
8
+ <body>
9
+
10
+ <p style="color: green" id="mark:flash_notice"></p>
11
+
12
+ <h1 id="replace_content_with_content:page_title">...page title...</h1>
13
+
14
+ <div id="replace_element_with_content:page_content">
15
+ ...page content...
16
+ </div>
17
+
18
+ <div style="text-align: right; font-size: x-small;">
19
+ copyright&copy; 2006 kuwata-lab.com all rights reserved.
20
+ </div>
21
+
22
+ </body>
23
+ </html>
@@ -0,0 +1,11 @@
1
+ #header_title {
2
+ cont: 'Group: ' + controller.action_name;
3
+ }
4
+
5
+ #stylesheet {
6
+ elem: stylesheet_link_tag 'scaffold';
7
+ }
8
+
9
+ #flash_notice {
10
+ cont: flash[:notice];
11
+ }
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html lang="en">
3
+ <head>
4
+ <title id="mark:header_title">...header title...</title>
5
+ <link rel="stylesheet" type="text/css" href="scaffold.css" id="mark:stylesheet" />
6
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7
+ </head>
8
+ <body>
9
+
10
+ <p style="color: green" id="mark:flash_notice"></p>
11
+
12
+ <h1 id="replace_content_with_content:page_title">...page title...</h1>
13
+
14
+ <div id="replace_element_with_content:page_content">
15
+ ...page content...
16
+ </div>
17
+
18
+ <div style="text-align: right; font-size: x-small;">
19
+ copyright&copy; 2006 kuwata-lab.com all rights reserved.
20
+ </div>
21
+
22
+ </body>
23
+ </html>
@@ -0,0 +1,11 @@
1
+ #header_title {
2
+ cont: 'Member: ' + controller.action_name;
3
+ }
4
+
5
+ #stylesheet {
6
+ elem: stylesheet_link_tag 'scaffold';
7
+ }
8
+
9
+ #flash_notice {
10
+ cont: flash[:notice];
11
+ }
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html lang="en">
3
+ <head>
4
+ <title id="mark:header_title">...header title...</title>
5
+ <link rel="stylesheet" type="text/css" href="scaffold.css" id="mark:stylesheet" />
6
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7
+ </head>
8
+ <body style="background-color: #CCF">
9
+ <p>layout=members2</p>
10
+
11
+ <p style="color: green" id="mark:flash_notice"></p>
12
+
13
+ <h1 id="replace_content_with_content:page_title">...page title...</h1>
14
+
15
+ <div id="replace_element_with_content:page_content">
16
+ ...page content...
17
+ </div>
18
+
19
+ <div style="text-align: right; font-size: x-small;">
20
+ copyright&copy; 2006 kuwata-lab.com all rights reserved.
21
+ </div>
22
+
23
+ </body>
24
+ </html>
@@ -0,0 +1,11 @@
1
+ #header_title {
2
+ cont: 'Member: ' + controller.action_name;
3
+ }
4
+
5
+ #stylesheet {
6
+ elem: stylesheet_link_tag 'scaffold';
7
+ }
8
+
9
+ #flash_notice {
10
+ cont: flash[:notice];
11
+ }
@@ -0,0 +1,27 @@
1
+ #error_messages {
2
+ elem: error_messages_for 'member';
3
+ }
4
+
5
+ #member_name {
6
+ elem: text_field 'member', 'name';
7
+ }
8
+
9
+ #member_email {
10
+ elem: text_field 'member', 'email';
11
+ }
12
+
13
+ #member_birth {
14
+ elem: date_select 'member', 'birth';
15
+ }
16
+
17
+ #member_gender_m {
18
+ elem: radio_button 'member', 'gender', 'M';
19
+ }
20
+ #member_gender_w {
21
+ elem: radio_button 'member', 'gender', 'W';
22
+ }
23
+
24
+ #member_group_id {
25
+ elem: select 'member', 'group_id', @group_select_options, :include_blank=>true;
26
+ }
27
+
@@ -0,0 +1,19 @@
1
+ #link_to_list {
2
+ stag: start_link_tag :action=>'list';
3
+ }
4
+
5
+ #link_to_new {
6
+ stag: start_link_tag :action=>'new';
7
+ }
8
+
9
+ #link_to_show {
10
+ stag: start_link_tag :action=>'show', :id=>@member.id;
11
+ }
12
+
13
+ #link_to_edit {
14
+ stag: start_link_tag :action=>'edit', :id=>@member.id;
15
+ }
16
+
17
+ #link_to_destroy {
18
+ stag: start_link_tag({:action=>'destroy', :id=>@member.id}, :confirm=>'Are you sure?');
19
+ }
@@ -0,0 +1,29 @@
1
+
2
+ #member_name {
3
+ Value: @member.name;
4
+ }
5
+
6
+ #member_email {
7
+ Value: @member.email;
8
+ }
9
+
10
+ #member_birth {
11
+ value: @member.birth;
12
+ }
13
+
14
+ #member_gender {
15
+ value: label;
16
+ logic: {
17
+ case @member.gender
18
+ when 'M' ; label = 'Man'
19
+ when 'W' ; label = 'Woman'
20
+ else ; label = ' - '
21
+ end
22
+ _elem
23
+ }
24
+ }
25
+
26
+ #member_group {
27
+ Value: @member.group.name;
28
+ }
29
+
@@ -0,0 +1,6 @@
1
+ import_pdata:
2
+ - filename: new.html
3
+ patterns: [ form_content ]
4
+ #import_plogic:
5
+ # - filename: new.plogic
6
+ # patterns: [ member_*, error_message ]
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <link rel="stylesheet" type="text/css" href="scaffold.css">
6
+ </head>
7
+ <body>
8
+
9
+ <h1 id="page_title">Editing member</h1>
10
+
11
+ <div id="page_content">
12
+
13
+ <form action="update" id="mark:start_form">
14
+
15
+ <div id="replace_element_with_content:form_content">
16
+ ...
17
+ </div>
18
+
19
+ <input type="submit" id="mark:submit">
20
+ </form>
21
+
22
+ <a href="#" id="link_to_show">Show</a> | <a href="#" id="link_to_list">List</a>
23
+
24
+ </div>
25
+
26
+ </body>
27
+ </html>
@@ -0,0 +1,10 @@
1
+ @import '_link.plogic';
2
+ @import '_form.plogic';
3
+
4
+ #start_form {
5
+ stag: start_form_tag :action=>'update', :id=>@member.id;
6
+ }
7
+
8
+ #submit {
9
+ elem: submit_tag 'Edit';
10
+ }
@@ -0,0 +1,53 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <title>Listing members</title>
5
+ </head>
6
+ <body>
7
+
8
+ <h1 id="mark:page_title">Listing members</h1>
9
+
10
+ <div id="mark:page_content">
11
+
12
+ <table summary="">
13
+
14
+ <tr>
15
+ <th>Name</th>
16
+ <th>Email</th>
17
+ <th>Birth</th>
18
+ <th>Gender</th>
19
+ <th>Group</th>
20
+ </tr>
21
+
22
+ <tr id="mark:members">
23
+ <td id="mark:member_name">foo</td>
24
+ <td id="mark:member_email">foo@mail.com</td>
25
+ <td id="mark:member_birth">2000-01-01</td>
26
+ <td id="mark:member_gender">Woman</td>
27
+ <td id="mark:member_group">admin</td>
28
+ <td>
29
+ <a href="#" id="link_to_show">Show</a>
30
+ <a href="#" id="link_to_edit">Edit</a>
31
+ <a href="#" id="link_to_destroy">Destroy</a>
32
+ </td>
33
+ </tr>
34
+
35
+ </table>
36
+
37
+ <p>
38
+ <a href="#" id="prev_page">Previous page</a>
39
+ <a href="#" id="next_page">Next page</a>
40
+ </p>
41
+
42
+ <p>
43
+ <a href="#" id="link_to_new">New member</a>
44
+ </p>
45
+
46
+ <p>
47
+ <a href="#" id="link_to_groups">Go to groups</a>
48
+ </p>
49
+
50
+ </div>
51
+
52
+ </body>
53
+ </html>
@@ -0,0 +1,32 @@
1
+ @import '_link.plogic';
2
+ @import '_read.plogic';
3
+
4
+ #members {
5
+ logic: {
6
+ for @member in @members
7
+ _elem
8
+ end
9
+ }
10
+ }
11
+
12
+ #prev_page {
13
+ stag: start_link_tag :page=>@member_pages.current.previous;
14
+ logic: {
15
+ if @member_pages.current.previous
16
+ _elem
17
+ end
18
+ }
19
+ }
20
+
21
+ #next_page {
22
+ stag: start_link_tag :page=>@member_pages.current.next;
23
+ logic: {
24
+ if @member_pages.current.next
25
+ _elem
26
+ end
27
+ }
28
+ }
29
+
30
+ #link_to_groups {
31
+ stag: start_link_tag :action=>'list', :controller=>'groups';
32
+ }
@@ -0,0 +1,61 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title>New member</title>
5
+ </head>
6
+ <body>
7
+
8
+
9
+ <h1 id="page_title">New member</h1>
10
+
11
+ <div id="page_content">
12
+
13
+ <form action="create" id="mark:start_form">
14
+ <div id="mark:form_content">
15
+
16
+ <div id="mark:error_messages"></div>
17
+
18
+ <!--[form:member]-->
19
+ <p>
20
+ <label for="member_name">Name</label><br>
21
+ <input type="text" id="member_name">
22
+ </p>
23
+
24
+ <p>
25
+ <label for="member_email">Email</label><br>
26
+ <input type="text" id="member_email">
27
+ </p>
28
+
29
+ <p>
30
+ <label for="member_birth">Birth</label><br>
31
+ <select id="member_birth">
32
+ <option value=""> - </option>
33
+ </select>
34
+ </p>
35
+
36
+ <p>
37
+ <label for="member_gender">Gender</label><br>
38
+ <input type="radio" id="member_gender_m"><label for="member_gender_m">Man</label>
39
+ <input type="radio" id="member_gender_w"><label for="member_gender_w">Woman</label>
40
+ </p>
41
+
42
+ <p>
43
+ <label for="member_group_id">Group</label><br>
44
+ <select id="member_group_id">
45
+ <option value=""> - </option>
46
+ <option value="1">group1</option>
47
+ <option value="2">group2</option>
48
+ </select>
49
+ </p>
50
+ <!--[eoform:member]-->
51
+
52
+ </div>
53
+ <input type="submit" id="submit">
54
+ </form>
55
+
56
+ <a href="#" id="link_to_list">Back</a>
57
+
58
+ </div>
59
+
60
+ </body>
61
+ </html>
@@ -0,0 +1,17 @@
1
+ @import '_link.plogic';
2
+ @import '_form.plogic';
3
+
4
+ #start_form {
5
+ stag: start_form_tag :action=>'create';
6
+ }
7
+
8
+ #form_content {
9
+ logic: {
10
+ _cont
11
+ }
12
+ }
13
+
14
+ #submit {
15
+ elem: submit_tag 'Create';
16
+ }
17
+