Sha256: 18acc1e35f0c4b5bd32dd3bb99418ad61dcce22dd3353a868fb48ef4f5267c9d

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

<head>
	<title><%= class_name %> [index]</title>
</head>
<body>
  <p id="message">${message}</p>

	<h1>Listing <%= class_name.pluralize %></h1>

	<table>
		<tr>
			<%- @attributes.each do |att| -%>
			<th><%= att.html_label %></th>
			<%- end -%>
			<th></th>
			<th></th>
			<th></th>
		</tr>

		<c:forEach items="${<%=model_parameter_name%>List}" var="<%=model_parameter_name%>">
			<tr>
				<%- @attributes.each do |att| -%>
				<td><%= "${#{model_parameter_name}.#{att.name}}" %></td>
				<%- end -%>
				<td><a href="<%= path "/${#{model_parameter_name}.id}" %>">show</a></td>
				<td><a href="<%= path "/${#{model_parameter_name}.id}/edit" %>">edit</a></td>
				<td>
					<form action="<%= path "/${#{model_parameter_name}.id}" %>" method="post">
						<input type="hidden" name="_method" value="delete"/>
						<button type="submit" onclick="return confirm('Are you sure?')">destroy</button>
					</form>
				</td>
			</tr>
		</c:forEach>
	</table>

	<br />
	<a href="<%= path '/new' %>">New <%= class_name %></a> 
</body>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
springmvc-scaffold-1.0.1 lib/springmvc-scaffold/generators/scaffold/jsp/templates/index.erb