Created
January 15, 2016 10:35
-
-
Save hanaori/1715fa9bad1c6943a568 to your computer and use it in GitHub Desktop.
app/views/rails_admin/main/display_order_action.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_tag("", method: "put") do %> | |
<table class="table table-striped table-bordered"> | |
<tr> | |
<th>Name</th> | |
<th>Order</th> | |
</tr> | |
<% @objects.each do |object| %> | |
<tr> | |
<td><%=object.name%></td> | |
<td><input type="number" value="<%=object.order%>" name="products[][order]"></td> | |
<input type="hidden" value="<%=object.id%>" name="products[][id]"/> | |
</tr> | |
<% end %> | |
</table> | |
<%= submit_tag("更新") %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment