2009-04-11 19:39:01 +02:00
|
|
|
%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
|
2009-04-11 19:39:01 +02:00
|
|
|
%label{:for => 'article_name'} Suche nach Name:
|
2011-05-18 11:47:00 +02:00
|
|
|
= text_field_tag(:query, params[:query], :size => 10 )
|
2009-04-18 15:35:29 +02:00
|
|
|
%label{:for => 'only_active'} Nur aktive:
|
|
|
|
= check_box_tag('only_active')
|
2009-04-20 14:33:24 +02:00
|
|
|
%small (mindestens einmal in den letzten 3 Monaten bestellt)
|
2009-04-11 19:39:01 +02:00
|
|
|
|
2009-05-04 17:06:08 +02:00
|
|
|
#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();
|
|
|
|
});
|
|
|
|
});
|