lib/padrino-admin/generators/templates/erb/page/index.erb.tt in padrino-admin-0.9.24 vs lib/padrino-admin/generators/templates/erb/page/index.erb.tt in padrino-admin-0.9.25
- old
+ new
@@ -20,10 +20,10 @@
<%- @orm.columns.each_with_index do |column, i| -%>
<td<%= " class=\"first\"" if i==0 %>><%%= <%= @orm.name_singular %>.<%= column.name %> %></td>
<%- end -%>
<td class="last">
<%%= button_to pat(:edit), url(:<%= @orm.name_plural %>, :edit, :id => <%= @orm.name_singular %>.id), :method => :get, :class => :button_to %> |
- <%%= button_to pat(:delete), url(:<%= @orm.name_plural %>, :destroy, :id => <%= @orm.name_singular %>.id), :method => :delete, :class => :button_to %>
+ <%%= button_to pat(:delete), url(:<%= @orm.name_plural %>, :destroy, :id => <%= @orm.name_singular %>.id), :method => :delete, :class => :button_to, :onsubmit => "return confirm('#{pat(:confirm)}')" %>
</td>
</tr>
<%% end %>
</table>
<div class="actions-bar wat-cf">
\ No newline at end of file