Sha256: 10ee2a2b9e2e568defde77b81a81141b1d2f3300a0beccd25c2be26b4cdf58ae

Contents?: true

Size: 877 Bytes

Versions: 8

Compression:

Stored size: 877 Bytes

Contents

<h1>Approval Queue</h1>

<%% form_for(:approval, :url => approvals_path, :html => {:method => :get}) do |f| %>
  <%% unless @conditions[:state].is_a?(Array) # History page shouldn't allow selecting different states %>
    <%%= f.label(:state) %>
    <%%= f.select(:state, options_for_select(Approval.options_for_state, @conditions[:state])) %>
  <%% end %>
<% if owner? %>  <%%= f.label(:owner_id) %>
  <%%= f.select(:owner_id, options_for_select(Approval.options_for_assigned_owners, @conditions[:owner_id]), :prompt => 'All Users') %>
<% end %>  <%%= f.label(:item_type) %>
  <%%= f.select(:item_type, options_for_select(Approval.options_for_type, @conditions[:item_type]), :prompt => 'All Types') %>
  <%%= f.submit('Filter') %>
<%% end %>

<%%= render :partial => @table_partial %>
<% if scripts? %>
<%%= javascript_include_tag 'jquery.form.js', 'approvals.js' %><% end %>

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
acts-as-approvable-0.6.8.1 generators/acts_as_approvable/templates/views/erb/index.html.erb
acts-as-approvable-0.6.8.1 lib/generators/erb/templates/index.html.erb
acts-as-approvable-0.6.7 generators/acts_as_approvable/templates/views/erb/index.html.erb
acts-as-approvable-0.6.7 lib/generators/erb/templates/index.html.erb
acts-as-approvable-0.6.6 generators/acts_as_approvable/templates/views/erb/index.html.erb
acts-as-approvable-0.6.6 lib/generators/erb/templates/index.html.erb
acts-as-approvable-0.6.5 generators/acts_as_approvable/templates/views/erb/index.html.erb
acts-as-approvable-0.6.5 lib/generators/erb/templates/index.html.erb