bookyt_projects 0.19.20 → 0.19.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  = simple_form_for @activity do |f|
2
2
  .row-fluid
3
- .span6= f.input :person, :as => :combobox
4
- .span6= f.input :project, :as => :combobox
3
+ .span6= f.association :person, :as => :combobox
4
+ .span6= f.association :project, :as => :combobox
5
5
  .row-fluid
6
6
  .span6= f.input :date, :as => :date_field
7
7
  .span6= f.input :duration, :as => :string
@@ -1 +1,7 @@
1
- = render 'activities/list', :collection => resource.activities
1
+ - @activities = resource.activities
2
+ - if @activities.empty?
3
+ = boot_alert(t('activities.alerts.empty'))
4
+ .activities.collection
5
+
6
+ - else
7
+ = render 'activities/list', :collection => resource.activities unless @activities.empty?
@@ -3,7 +3,7 @@
3
3
  .span6
4
4
  = f.input :name, :input_html => {'data-autofocus' => 'true'}
5
5
  = f.input :duration_from, :as => :date_field
6
- = f.input :client, :as => :combobox
6
+ = f.association :client, :as => :combobox
7
7
  .span6
8
8
  = f.input :project_state
9
9
  = f.input :duration_to, :as => :date_field
@@ -1,5 +1,10 @@
1
+ - @activities = resource.activities
2
+ - if @activities.empty?
3
+ = boot_alert(t('activities.alerts.empty'))
4
+ .activities.collection
5
+
6
+ - else
7
+ = render 'activities/list', :collection => @project.activities unless @activities.empty?
8
+
1
9
  .contextual
2
10
  = icon_link_to :new, new_project_activity_path(resource)
3
- = boot_page_title :index, Activity
4
-
5
- = render 'activities/list', :collection => @project.activities
@@ -1,3 +1,3 @@
1
1
  module BookytPos
2
- VERSION = '0.19.20'
2
+ VERSION = '0.19.21'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookyt_projects
3
3
  version: !ruby/object:Gem::Version
4
- hash: 123
4
+ hash: 121
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 19
9
- - 20
10
- version: 0.19.20
9
+ - 21
10
+ version: 0.19.21
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek (CyT)
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-04-03 00:00:00 Z
19
+ date: 2012-04-04 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rails