.search
  =form_tag({:controller=>:accountancy, :action=>:accounts, :prefix=>params[:prefix]}, :method=>:get) do
    %table
      %tr
        %td.crit
          %label=tc("search_account")
          =text_field_tag :key, params[:key]||session[:account_key]
          %label{:for=>"used_accounts"}=tc(:used_accounts)
          =check_box_tag("used_accounts", "1", params[:used_accounts], :onchange=>"toggleInterval();")
        %td.submit{:rowspan=>2}=submit_tag tg("search_go"), :name=>nil
      %tr
        %td.crit#interval
          %label=tg(:from)
          =calendar_field_tag(:started_on, (params[:started_on]||(Date.today-1.year+1.day)))
          %label=tg(:to)
          =calendar_field_tag(:stopped_on, (params[:stopped_on]||Date.today))
  :javascript
    window.toggleInterval=function() { toggleElement('interval', $('used_accounts').checked); }
    toggleInterval();

Add missing view for searching accounts
Add missing view for searching accounts


git-svn-id: f16a2f23d171dee4464daf87d70b3f1ae0981068@1692 67a09383-3dfa-4221-8551-890bac9c277c
