Sha256: 730a5aa1ccdb48ae5efc84a1195950671a04a4fe1c2c8c08b2e77c676a87a688

Contents?: true

Size: 801 Bytes

Versions: 8

Compression:

Stored size: 801 Bytes

Contents

%h1 Approval Queue

- 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
    = label_tag('state', 'State')
    = select_tag('state', options_for_select(Approval.options_for_state, @conditions[:state]))
<% if owner? %>  = label_tag('owner_id', 'Owner')
  = select('owner_id', options_for_select(Approval.options_for_assigned_owners(true), @conditions[:owner_id]))
<% end %>  = label_tag('item_type', 'Type')
  = select_tag('item_type', options_for_select(Approval.options_for_type(true), @conditions[:item_type]))
  %button{:type => 'Submit'} Filter

= 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/haml/index.html.haml
acts-as-approvable-0.6.8.1 lib/generators/haml/templates/index.html.haml
acts-as-approvable-0.6.7 generators/acts_as_approvable/templates/views/haml/index.html.haml
acts-as-approvable-0.6.7 lib/generators/haml/templates/index.html.haml
acts-as-approvable-0.6.6 generators/acts_as_approvable/templates/views/haml/index.html.haml
acts-as-approvable-0.6.6 lib/generators/haml/templates/index.html.haml
acts-as-approvable-0.6.5 generators/acts_as_approvable/templates/views/haml/index.html.haml
acts-as-approvable-0.6.5 lib/generators/haml/templates/index.html.haml