Sha256: 4c9091c1d9c24b99313c6baa0924d3e0f4c44532655809146aafc565f9a454f4

Contents?: true

Size: 864 Bytes

Versions: 1

Compression:

Stored size: 864 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}!\"\"}" %></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.beta2 lib/generators/scaffold_generator/freemarker_generator/templates/index.erb