Sha256: 6d499617274a2b709ab55d812f32dcbff0c844c400847c10c9af76414b1bef0b
Contents?: true
Size: 959 Bytes
Versions: 1
Compression:
Stored size: 959 Bytes
Contents
<body> <h1>Listing <%= class_name.pluralize %></h1> <table> <tr> <% @attributes.each do |att| -%> <th><%= att.name %></th> <% end -%> <th></th> <th></th> <th></th> </tr> <#list <%= "#{@model}List as #@model" %>> <tr> <% @attributes.each do |att| -%> <td> <%= "${#{@model}.#{att.name}!\"\"}" unless att.boolean? %> <%= "${#{@model}.#{att.name}?string}" if att.boolean? %> </td> <% end -%> <td><a href="<%= "#{path}/${#{@model}.id}/show" %>">show</a></td> <td><a href="<%= "#{path}/${#{@model}.id}/edit" %>">edit</a></td> <td> <form action="<%= path %>" method="post"> <input name="<%= "#{@model}.id" %>" value="<%= "${#{@model}.id}" %>" type="hidden" /> <button type="submit" name="_method" value="delete" onclick="return confirm('Are you sure?')">destroy</button> </form> </td> </tr> </#list> </table> <br /> <a href="<%= path %>/new">New <%= class_name %></a> </body>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vraptor-scaffold-0.0.1.beta3 | lib/generators/scaffold_generator/freemarker_generator/templates/index.erb |