Sha256: 101021393d41f58561424af01f53bb064a70072c114f942ecaa483fd93594da5

Contents?: true

Size: 763 Bytes

Versions: 5

Compression:

Stored size: 763 Bytes

Contents

%form.friendly{:action => search_posts_url}
  %h2 
    Forum Search

  %p
    %label{:for => "q"}
      Look for this text
    = text_field_tag "q", params[:q], :class => 'standard'

  %p
    %label{:for => "forum_id"}
      In this discussion category
    %select{:name => "forum_id"}
      %option{:value => ""}
        anywhere
      = options_from_collection_for_select(Forum.find(:all), "id", "name", params[:forum_id].to_i)

  -if Radiant::Config['forum.search_by_reader']
    %p
      %label{:for => "reader_id"}
        From this person
      %select{:name => "reader_id"}
        %option{:value => ""}
          anyone
        = options_from_collection_for_select(Reader.find(:all), "id", "name", params[:reader_id].to_i)

  %p
    = submit_tag "search"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
radiant-forum-extension-1.1.2 app/views/posts/_search.html.haml
radiant-forum-extension-1.1.1 app/views/posts/_search.html.haml
radiant-forum-extension-1.1.0 app/views/posts/_search.html.haml
radiant-forum-extension-0.6.1 app/views/posts/_search.html.haml
radiant-forum-extension-0.6.0 app/views/posts/_search.html.haml