has_accounts_engine 1.0.0 → 1.0.1

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.
@@ -1,6 +1,8 @@
1
1
  %tr[account]
2
2
  %td= account.code
3
- %td= link_to account.title, url_for(account), {'data-href-container' => 'tr'}, :by_value_period => params[:by_value_period]
3
+ %td
4
+ = link_to account.title, url_for(account), {'data-href-container' => 'tr'}, :by_value_period => params[:by_value_period]
5
+ .pull-right= account.tags.map{|tag| boot_label(tag.name)}.join(' ').html_safe
4
6
  - if @date
5
7
  %td{:style => "text-align: right"}= currency_fmt(account.saldo(@date))
6
8
  - elsif params[:by_value_period]
@@ -1,7 +1,11 @@
1
1
  = simple_form_for @account do |f|
2
- = f.input :code
3
- = f.input :title
4
- = f.association :account_type, :label_method => :title
2
+ .row-fluid
3
+ .span12= f.input :title
4
+ .row-fluid
5
+ .span6= f.input :code
6
+ .span6= f.association :account_type, :label_method => :title
7
+ .row-fluid
8
+ .span12= f.input :tag_list, :input_html => {:class => 'select2-tags span', 'data-tags' => Account.tag_counts.pluck(:name).to_json}
5
9
 
6
10
  .form-actions
7
11
  = f.button :submit
@@ -1,3 +1,3 @@
1
1
  module HasAccountsEngine
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_accounts_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-18 00:00:00.000000000 Z
12
+ date: 2013-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -75,6 +75,22 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: acts_as_taggable_on
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
78
94
  - !ruby/object:Gem::Dependency
79
95
  name: validates_timeliness
80
96
  requirement: !ruby/object:Gem::Requirement