Sha256: c33494f14f66e15ffe13749f2c8f12a830fc161f60cf7222ad0b1ab845538fbc

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

- @condition_is = Hash["Is", "=="]
- @conditions =  Hash["Is not", "!=","Equals or greater than",">=","Equals or less than","<=", "Greater than", ">", "Less than","<"]

%h1
  = I18n.t('user', :count => 2).capitalize
- form_tag :controller => 'admin/users', :action => 'filter' do
  %p
    %b
      = label_tag 'filter', I18n.t('filter').capitalize
      \:
    %p
      = label_tag 'filter[gender]', I18n.t('gender').capitalize
      \:
      - genders = []
      - genders << [I18n.t('all').capitalize, [0,1,2]]
      - genders << [I18n.t('woman', :count => 2).capitalize, [1,2]]
      - genders << [I18n.t('man', :count => 2).capitalize, [0]]
      = select 'filter', 'gender', genders, :selected => @gender
      = label_tag 'filter[country]', I18n.t('country').capitalize
      \:
      = collection_select 'filter', 'country', Country.find(:all, :order => "name"), :id, :printable_name, :selected => @country.to_i, :prompt => I18n.t('please_select')
      %br
      = label_tag 'filter[age]', I18n.t('age').capitalize
      \:
      = select_tag 'filter[age][conds]', options_for_select(@condition_is.collect{|c| [c[0], c[1]] } + @conditions.collect{|c| [c[0], c[1]] }, :selected => @c_age)
      = text_field_tag 'filter[age][values]', @v_age

      = submit_tag I18n.t('search').capitalize
      = submit_tag I18n.t('export').capitalize
#users
  = render :partial => 'list', :locals => { :users => @users }

- content_for :tools, link_to(I18n.t('newsletter.export').capitalize, [forgeos_core, :admin, :users], :class => 'report_seo' )

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 app/views/admin/users/index2.html.haml
forgeos_commerce-1.9.0 app/views/admin/users/index2.html.haml