has_accounts_engine 3.0.0.beta5 → 3.0.0.beta6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb734abe68a549c974145506703f6cee9b700124
4
- data.tar.gz: 205fffc13de768c22c9b33f9d07b2a54ba163bc7
3
+ metadata.gz: 55dd3abef7759acba2842d6e3ea4f84d9a75626e
4
+ data.tar.gz: 93781ee13a4dbd617660129e1c6f9abc10a96008
5
5
  SHA512:
6
- metadata.gz: 4467b3ea1b2a9ba4bf27e733fe9dc7409fe7b51781cfd857ad5e2f3afd937bc435e83040f593a5f7f4d1968c2508cf4cfc512801e46f77b4b0793ff0e97a1cab
7
- data.tar.gz: 657493303886374ae00572325190fac170b687ffc3c210996418c118eaef13a21b2fc4f513f6fd0818e23f8955ae33fb0b2ac979e3398148b4ffda5d09ac9c53
6
+ metadata.gz: 8d49141e17eadd475cffbc7a6fa720ac4360f15e33ecc704911b63bf7a57913209ecf6ea385f9cf86c19e71d674cd3d4cb059d19d3156d936524db2a1245dbbd
7
+ data.tar.gz: 1d4fea76a1ffbb6594306fb8dc2d711aeb845907ec2b51244dffa6ba70ac5788fb161d098be784ad218f4f01fa96b712303712c8f8fa7f5efae7f47f99230c25
@@ -32,7 +32,8 @@ ul.overview-list.level-1
32
32
  padding-top: 0.8em
33
33
  padding-bottom: 0.8em
34
34
  width: 20%
35
- ul // Level > 1
35
+ ul
36
+ // Level > 1
36
37
  margin-top: 5px
37
38
  li
38
39
  display: block
@@ -2,6 +2,8 @@ class BookingsController < HasAccountsController
2
2
  # Scopes
3
3
  has_scope :by_value_period, :using => [:from, :to], :default => proc { |c| c.session[:has_scope] }
4
4
  has_scope :by_text
5
+ has_scope :by_amount, :using => [:from, :to]
6
+ has_scope :by_date, :using => [:from, :to]
5
7
 
6
8
  # Actions
7
9
  def index
@@ -0,0 +1,18 @@
1
+ = contextual_links
2
+
3
+ = boot_page_title
4
+
5
+ = simple_form_for '', :method => :get, remote: true do |f|
6
+ .row-fluid
7
+ .span6= f.input :by_text, label: t(:by_text, scope: 'bookings.search'), required: false
8
+ .row-fluid
9
+ .span3= f.input 'by_amount[from]', label: t(:by_amount_from, scope: 'bookings.search'), required: false
10
+ .span3= f.input 'by_amount[to]', label: t(:by_amount_to, scope: 'bookings.search'), required: false
11
+ .span3= f.input 'by_date[from]', label: t(:by_date_from, scope: 'bookings.search'), required: false
12
+ .span3= f.input 'by_date[to]', label: t(:by_date_to, scope: 'bookings.search'), required: false
13
+
14
+ .form-actions
15
+ = f.button :submit, t_action(:search)
16
+
17
+ = paginate collection if defined?(paginate)
18
+ = render 'list'
@@ -0,0 +1,2 @@
1
+ $('.collection').html('<%=escape_javascript render collection %>');
2
+ initializeBehaviours();
@@ -61,6 +61,12 @@ de:
61
61
  title: Buchungsjournal
62
62
  copy:
63
63
  title: Buchung kopieren
64
+ search:
65
+ by_text: Inhalt
66
+ by_amount_from: Betrag von
67
+ by_amount_to: Betrag bis
68
+ by_date_from: Datum von
69
+ by_date_to: Datum bis
64
70
 
65
71
  crud:
66
72
  action:
@@ -1,3 +1,3 @@
1
1
  module HasAccountsEngine
2
- VERSION = "3.0.0.beta5"
2
+ VERSION = "3.0.0.beta6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_accounts_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta5
4
+ version: 3.0.0.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Hürlimann (CyT)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.1'
33
+ version: 3.0.0.beta0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.1'
40
+ version: 3.0.0.beta0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: has_vcards
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -298,6 +298,8 @@ files:
298
298
  - app/views/bookings/_new_form.html.haml
299
299
  - app/views/bookings/_sidebar.html.haml
300
300
  - app/views/bookings/_simple_form.html.haml
301
+ - app/views/bookings/index.html.haml
302
+ - app/views/bookings/index.js.erb
301
303
  - app/views/bookings/new.html.haml
302
304
  - app/views/bookings/select.html.haml
303
305
  - app/views/bookings/show.html.haml
@@ -354,3 +356,4 @@ signing_key:
354
356
  specification_version: 4
355
357
  summary: HasAccountsEngine provides controllers, views for has_accounts.
356
358
  test_files: []
359
+ has_rdoc: