- Revision
- 183
- Author
- fabio.kung
- Date
- 2007-06-21 03:00:36 -0500 (Thu, 21 Jun 2007)
Log Message
Alternative person listing with rhtml
Added Paths
Diff
Added: trunk/examples/jruby-example/resources/person.rhtml (0 => 183)
--- trunk/examples/jruby-example/resources/person.rhtml (rev 0) +++ trunk/examples/jruby-example/resources/person.rhtml 2007-06-21 08:00:36 UTC (rev 183) @@ -0,0 +1,41 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> + <title>Persons rhtml listing</title> + <style type="text/css" title="currentStyle" media="screen"> + @import "stylesheets/style.css"; + </style> + <script src="" type="text/_javascript_"> + // keep this space + </script> + <script src="" type="text/_javascript_"> + // keep this space + </script> +</head> + +<body> + <form action="" method="post"> + <h3>Waffle/JRuby rhtml example</h3> + + <table> + <tr> + <th>Id</th> + <th>First Name</th> + <th>Last Name</th> + <th>Email</th> + <th>Date of Birth</th> + </tr> + <% @persons.each_with_index do |person, index| %> + <tr class="<%= index % 2 == 0 ? 'even' : 'odd' %>"> + <td><%= person.id %></td> <!-- TODO: Override object_id --> + <td><%= person.firstName %></td> + <td><%= person.lastName %></td> + <td><%= person.email %></td> + <td><%= person.dateOfBirth %></td> + </tr> + <% end %> + </table> + </form> +</body> + +</html>
To unsubscribe from this list please visit:
