foodsoft/app/views/foodcoop/ordergroups/index.html.haml

27 lines
897 B
Plaintext
Raw Normal View History

%h1 Bestellgruppen der Foodcoop
.left_column{:style => "width:100%"}
.box_title
%h2 Übersicht
.column_content
2011-05-18 11:47:00 +02:00
#filter{:style => "margin-right:2em;"}
= form_tag foodcoop_ordergroups_path, :method => :get, :style=>"display:inline;", :id => 'ordergroup_search', :remote => true do
%label{:for => 'article_name'} Suche nach Name:
2011-05-18 11:47:00 +02:00
= text_field_tag(:query, params[:query], :size => 10 )
%label{:for => 'only_active'} Nur aktive:
= check_box_tag('only_active')
%small (mindestens einmal in den letzten 3 Monaten bestellt)
#ordergroups
2011-05-18 11:47:00 +02:00
= render :partial => "ordergroups"
- content_for :head do
:javascript
$(function() {
$('#query').observe_field(1, function() {
$('#ordergroup_search').submit();
});
$('#only_active').click(function() {
$('#ordergroup_search').submit();
});
});