foodcoop-adam/foodsoft

View on GitHub
app/views/finance/ordergroups/index.html.haml

Summary

Maintainability
Test Coverage
- title t('.title')

- content_for :actionbar do
  = link_to t('.show_all'), finance_transactions_path, class: 'btn'
  - if FoodsoftConfig[:use_paymanual]
    = link_to t('.new_transaction'), finance_new_transaction_collection_path, class: 'btn btn-primary'

.well.well-small
  = form_tag finance_ordergroups_path, :method => :get, :remote => true,
    'data-submit-onchange' => true, class: 'form-search' do
    = text_field_tag :query, params[:query], class: 'input-medium search-query',
      placeholder: t('.search_placeholder')

#ordergroupsTable
  = render :partial => "ordergroups"