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 +4 -4
- data/app/assets/stylesheets/has_accounts_engine/partials/content/_overview.sass +2 -1
- data/app/controllers/bookings_controller.rb +2 -0
- data/app/views/bookings/index.html.haml +18 -0
- data/app/views/bookings/index.js.erb +2 -0
- data/config/locales/de.yml +6 -0
- data/lib/has_accounts_engine/version.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55dd3abef7759acba2842d6e3ea4f84d9a75626e
|
4
|
+
data.tar.gz: 93781ee13a4dbd617660129e1c6f9abc10a96008
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d49141e17eadd475cffbc7a6fa720ac4360f15e33ecc704911b63bf7a57913209ecf6ea385f9cf86c19e71d674cd3d4cb059d19d3156d936524db2a1245dbbd
|
7
|
+
data.tar.gz: 1d4fea76a1ffbb6594306fb8dc2d711aeb845907ec2b51244dffa6ba70ac5788fb161d098be784ad218f4f01fa96b712303712c8f8fa7f5efae7f47f99230c25
|
@@ -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'
|
data/config/locales/de.yml
CHANGED
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.
|
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-
|
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:
|
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:
|
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:
|