Sha256: 9af0bfcd025f46a4933797c8ab18411975586369137e22719e02bdab86263d2a
Contents?: true
Size: 1.18 KB
Versions: 10
Compression:
Stored size: 1.18 KB
Contents
<% # headmin/table/actions/action # # ==== Options # * <tt>name</tt> - Name of the bulk action # * <tt>url</tt> - URL to send the request to # * <tt>method</tt> - HTTP method for the request (defaults to GET) # * <tt>confirm</tt> - Message to show in a confirm dialog. Leave blank if no confirm dialog needs to be shown # # ==== Examples # Basic version. # <%= render "headmin/table/actions/action", name: 'export', url: export_admin_products_path %#> # # Use a different HTTP method # <%= render "headmin/table/actions/action", name: 'export', url: export_admin_products_path, method: :post %#> # # Show a confirm dialog before submitting. # <%= render "headmin/table/actions/action", name: 'delete', url: destroy_admin_products_path, confirm: 'Are you sure you want to delete these products?' %#> url = local_assigns.has_key?(:url) ? local_assigns[:url] : request.path method = local_assigns.has_key?(:method) ? local_assigns[:method] : 'GET' confirm = local_assigns.has_key?(:confirm) ? local_assigns[:confirm] : nil %> <option value="<%= url %>" data-method="<%= method %>" <% if confirm %>data-confirm="<%= confirm %>"<%end %>> <%= name %> </option>
Version data entries
10 entries across 10 versions & 1 rubygems