Sha256: 6a1235f76a1199a20637d5c7705b86f844c003bd2756257ead74f4680892dd5b

Contents?: true

Size: 827 Bytes

Versions: 1

Compression:

Stored size: 827 Bytes

Contents

:javascript
  function set_pathname() {
    document.searchform.pathname.value = location.pathname;
  }
%form(name="searchform" action="/search" method="post")
  %p
    %input#query(name="query" size="70" type="text"){:value => params[:query]}
    %input#search(type="submit" name="search" value="検索" onclick="set_pathname()")
    %input#clear(type="submit" name="clear" value="クリア" onclick="set_pathname()")
    %br
    %label
      = create_radio('all', params[:shead])
      全て
    %label
      = create_radio('package', params[:shead])
      パッケージ(おすすめ)
    %label
      = create_radio('directory', params[:shead])
      ディレクトリ
    %label
      = create_checkbox('onematch', params[:onematch])
      = '1ファイル1マッチ'
    %input(name="pathname" type="hidden" value="")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
milkode-0.5.2 lib/milkode/cdweb/views/search_form.haml