Sha256: f2ca3b6b7efab0c5aa9a0c1b0ce47ffe1ac4edf387829a9ba08d6b1b1feecc97

Contents?: true

Size: 721 Bytes

Versions: 5

Compression:

Stored size: 721 Bytes

Contents

%form.friendly{:action => posts_url}
  %p
    %label{:for => "q"}
      = t('search_form.query_label')
    = text_field_tag "q", params[:q], :class => 'standard'

  %p
    %label{:for => "forum_id"}
      = t('search_form.forum_label')
      
    %select{:name => "forum_id"}
      %option{:value => ""}= t('anywhere')
      = options_from_collection_for_select(Forum.find(:all), "id", "name", params[:forum_id].to_i)

  %p
    %label{:for => "reader_id"}
      = t('search_form.person_label')
    %select{:name => "reader_id"}
      %option{:value => ""}
        =t('anyone')
      = options_from_collection_for_select(Reader.find(:all), "id", "name", params[:reader_id].to_i)

  %p.buttons
    = submit_tag t("search")

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
radiant-forum-extension-2.0.4 app/views/posts/_search_form.html.haml
radiant-forum-extension-2.0.3 app/views/posts/_search_form.html.haml
radiant-forum-extension-2.0.2 app/views/posts/_search_form.html.haml
radiant-forum-extension-2.0.1 app/views/posts/_search_form.html.haml
radiant-forum-extension-2.0.0 app/views/posts/_search_form.html.haml