has_accounts_engine 3.0.0.beta3 → 3.0.0.beta4

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: e68304337e2479be1cd71263624049110e17b334
4
- data.tar.gz: c9009aa698548115c66ab31cbce21420fcd479fb
3
+ metadata.gz: 16a643d041409d4a941d5ad0168c995a56f7e9b0
4
+ data.tar.gz: 2dd367868688df3b31ccd294ea0dcc3a989590f1
5
5
  SHA512:
6
- metadata.gz: a210303720c7017efb7f275e7318d2744372b8ed35ab1add1d80dceb7e457a1e47b01e6272c96be2de6e8cf267e36f2964fffd8002119b2ac1541b52d28c9e36
7
- data.tar.gz: c4467c36797c20f4ffeace0afe48975125da1e961367a237da66fb0325bd04d80eebcd7a7ee383d4439192365fe91458ffe1571bc2523b7b952dab208498af32
6
+ metadata.gz: 3f31408cea07df179d10f73c0dd603ed23bcb77e58e1d33ea7843a004e8de65ebc9eeb8f3f62e8b6efd55281078140ad036f02bca5fd8e86664c6e499b1504b6
7
+ data.tar.gz: 3aad2d3aad3cea07e708eadee02b15460b6a9fc3232b61bf1fc519039e7a43d3cc77e4b71dddc54d13393f655b9aa42a5723b76062ff29573670b17d2a2d3023
@@ -1,30 +1,5 @@
1
1
  = simple_form_for @booking do |f|
2
- .row-fluid
3
- .span6
4
- = f.input :title, :input_html => {"data-autofocus" => true}
5
- .span6
6
- = f.input :value_date, :as => :date_field
7
- .row-fluid
8
- .span6
9
- = f.input :amount, :as => :string
10
- - if @booking.respond_to? :code
11
- .span6
12
- = f.input :code
13
-
14
- .row-fluid
15
- .span6
16
- = f.association :debit_account, :collection => accounts_as_collection(Account.all), :as => :combobox
17
- .span6
18
- = f.association :credit_account, :collection => accounts_as_collection(Account.all), :as => :combobox
19
-
20
- .row-fluid
21
- .span12
22
- = f.input :comments, :input_html => {:rows => 4, :class => 'span12'}
23
-
24
- .row-fluid
25
- .span12
26
- = f.input :reference_type, :as => :hidden, :input_html => {:value => 'Invoice'}
27
- = f.association :reference, :collection => suggested_invoices_for_booking(@booking, :include_all => true), :as => :combobox, :include_blank => true
2
+ = render 'form_fields', resource: @booking, f: f
28
3
 
29
4
  .form-actions
30
5
  = f.button :submit
@@ -0,0 +1,27 @@
1
+ .row-fluid
2
+ .span6
3
+ = f.input :title, :input_html => {"data-autofocus" => true}
4
+ .span6
5
+ = f.input :value_date, :as => :date_field
6
+ .row-fluid
7
+ .span6
8
+ = f.input :amount, :as => :string
9
+ - if resource.respond_to? :code
10
+ .span6
11
+ = f.input :code
12
+
13
+ .row-fluid
14
+ .span6
15
+ = f.association :debit_account, :collection => accounts_as_collection(Account.all), :as => :combobox
16
+ .span6
17
+ = f.association :credit_account, :collection => accounts_as_collection(Account.all), :as => :combobox
18
+
19
+ .row-fluid
20
+ .span12
21
+ = f.input :comments, :input_html => {:rows => 4, :class => 'span12'}
22
+
23
+ .row-fluid
24
+ .span12
25
+ = f.input :reference_type, :as => :hidden, :input_html => {:value => 'Invoice'}
26
+ = f.association :reference, :collection => suggested_invoices_for_booking(resource, :include_all => true), :as => :combobox, :include_blank => true
27
+
@@ -1,18 +1,2 @@
1
1
  = simple_form_for @booking, :url => invoice_simple_bookings_path do |f|
2
- = f.input :debit_account_id, :as => :hidden
3
- = f.input :credit_account_id, :as => :hidden
4
- = f.input :reference_id, :as => :hidden
5
- = f.input :reference_type, :as => :hidden
6
-
7
- .row-fluid
8
- .span6
9
- = f.input :title, :input_html => {"data-autofocus" => true}
10
- .span6
11
- = f.input :value_date, :as => :date_field
12
- .row-fluid
13
- .span6
14
- = f.input :amount, :as => :string
15
-
16
- .row-fluid
17
- .span12
18
- = f.input :comments, :input_html => {:rows => 4, :class => 'span12'}
2
+ = render 'bookings/form_fields', resource: @booking, f: f
@@ -1,3 +1,3 @@
1
1
  module HasAccountsEngine
2
- VERSION = "3.0.0.beta3"
2
+ VERSION = "3.0.0.beta4"
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.beta3
4
+ version: 3.0.0.beta4
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-16 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.1'
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: has_accounts
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.2
33
+ version: '2.1'
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: 1.0.2
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: has_vcards
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -293,6 +293,7 @@ files:
293
293
  - app/views/bookings/_booking.html.haml
294
294
  - app/views/bookings/_booking_form.html.haml
295
295
  - app/views/bookings/_form.html.haml
296
+ - app/views/bookings/_form_fields.html.haml
296
297
  - app/views/bookings/_list.html.haml
297
298
  - app/views/bookings/_new_form.html.haml
298
299
  - app/views/bookings/_sidebar.html.haml
@@ -348,9 +349,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
348
349
  version: 1.3.1
349
350
  requirements: []
350
351
  rubyforge_project:
351
- rubygems_version: 2.4.5
352
+ rubygems_version: 2.2.2
352
353
  signing_key:
353
354
  specification_version: 4
354
355
  summary: HasAccountsEngine provides controllers, views for has_accounts.
355
356
  test_files: []
356
- has_rdoc: