Sha256: 6ca747aaf5f761dd8b96c2a5d527642aef2b9fc944f3bb13d7b463f090a4958e

Contents?: true

Size: 872 Bytes

Versions: 2

Compression:

Stored size: 872 Bytes

Contents

<!-- Scaffolding generated by Casein <%= casein_get_full_version_string %> -->

<table cellpadding="0" cellspacing="0" id="itemList" class="itemList">
	<tr>
		<% for attribute in attributes %><th><%= attribute.name.humanize %></th>
		<% end %><th>&nbsp;</th>
	</tr>
	
	<%% @<%= plural_name %>.each_with_index do |<%= singular_name %>, index| %>
		<tr class="<%%= 'even' if index.modulo(2) == 0 %> hover">
			<% attributes.each do |attribute| %><td><%%= casein_table_cell_link <%= singular_name %>.<%= attribute.name %>, casein_<%= singular_name %>_path(<%= singular_name %>) %></td>
			<% end %><td class="delete">
				<%%= link_to(casein_show_row_icon("delete"), casein_<%= singular_name %>_path(<%= singular_name %>), :method => :delete, :confirm => "Are you sure you want to delete this <%= singular_name.humanize.downcase %>?") %>
			</td>
		</tr>
	<%% end %>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
casein-3.1.1 lib/generators/casein/scaffold/templates/views/_table.html.erb
casein-3.1.0 lib/generators/casein/scaffold/templates/views/_table.html.erb