Sha256: 14aaab6a3da9b78a2d9bcc10c8e5040f7491ccba18b427886179f9b86047986a

Contents?: true

Size: 805 Bytes

Versions: 6

Compression:

Stored size: 805 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_tag('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

6 entries across 3 versions & 2 rubygems

Version Path
acts_as_approvable-0.7.0 generators/acts_as_approvable/templates/views/haml/index.html.haml
acts_as_approvable-0.7.0 lib/generators/haml/templates/index.html.haml
acts-as-approvable-0.6.9.1 generators/acts_as_approvable/templates/views/haml/index.html.haml
acts-as-approvable-0.6.9.1 lib/generators/haml/templates/index.html.haml
acts-as-approvable-0.6.9 generators/acts_as_approvable/templates/views/haml/index.html.haml
acts-as-approvable-0.6.9 lib/generators/haml/templates/index.html.haml