finish foodcoop i18n + controller + model

This commit is contained in:
wvengen 2013-02-22 00:19:22 +01:00
parent c69a559dc4
commit 8043fd2164
11 changed files with 76 additions and 42 deletions

View file

@ -5,9 +5,9 @@
%table.table.table-striped
%thead
%tr
%th Name
%th Mitglieder
%th zuletzt bestellt
%th= t '.name'
%th= t '.user'
%th= t '.last_ordered'
%tbody
- for ordergroup in @ordergroups

View file

@ -1,13 +1,13 @@
- title "Bestellgruppen"
- title t('.title')
.well
= form_tag foodcoop_ordergroups_path, :method => :get, :remote => true, 'data-submit-onchange' => true,
class: 'form-search' do
= text_field_tag :name, params[:name], class: 'input-medium search-query', placeholder: 'Name ...'
= text_field_tag :name, params[:name], class: 'input-medium search-query', placeholder: t('.name')
%label{:for => 'only_active'}
= check_box_tag 'only_active', 1, params[:only_active]
Nur aktive
%small (mindestens einmal in den letzten 3 Monaten bestellt)
= t '.only_active'
%small= t '.only_active_desc'
#ordergroups
= render :partial => "ordergroups"
= render :partial => "ordergroups"