bookyt_projects 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- %table.list
1
+ %table.list#activities_list
2
2
  %tr
3
3
  - [:person, :when, :duration].each do |attr|
4
4
  %th= t_attr(attr, Activity)
@@ -0,0 +1,10 @@
1
+ $('#new_<%= resource.class.name.underscore %>').remove();
2
+ var form = '<div id="new_activity_dialog"><%=j render "form" %></div>';
3
+ $('#<%= resource.class.name.tableize %>_list').before(form);
4
+ $('#new_activity_dialog').dialog({
5
+ modal: true,
6
+ minWidth: 580,
7
+ title: '<%=j t_title :edit, Activity %>'
8
+ });
9
+
10
+ initializeBehaviours();
@@ -2,7 +2,7 @@
2
2
  = render 'form'
3
3
 
4
4
  .contextual
5
- = icon_link_to :new, new_project_activity_path(resource)
5
+ = icon_link_to :new, new_project_activity_path(resource), :remote => true
6
6
  %h2= t_title :index, Activity
7
7
 
8
8
  = render 'activities/list', :collection => @project.activities
@@ -4,6 +4,7 @@ de:
4
4
  project: Projekt
5
5
  project_state: Projektstatus
6
6
  activity: Aktivität
7
+ timesheet: Stundenrapport
7
8
  attributes:
8
9
  project:
9
10
  name: Bezeichnung
@@ -33,3 +34,8 @@ de:
33
34
  bookyt:
34
35
  projects:
35
36
  minutes: "%{duration} Minuten"
37
+
38
+ # Titles
39
+ timesheets:
40
+ index:
41
+ title: Stundenrapport
data/config/routes.rb CHANGED
@@ -4,4 +4,8 @@ Rails.application.routes.draw do
4
4
  end
5
5
  resources :project_states
6
6
  resources :activities
7
+
8
+ resources :employees do
9
+ resources :timesheets
10
+ end
7
11
  end
@@ -1,3 +1,3 @@
1
1
  module BookytPos
2
- VERSION = '0.8.0'
2
+ VERSION = '0.9.0'
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: 63
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 8
8
+ - 9
9
9
  - 0
10
- version: 0.8.0
10
+ version: 0.9.0
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: 2011-10-22 00:00:00 +02:00
19
+ date: 2011-10-24 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -36,7 +36,7 @@ dependencies:
36
36
  type: :runtime
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
39
- name: shoulda
39
+ name: recurrence
40
40
  prerelease: false
41
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
42
  none: false
@@ -47,10 +47,10 @@ dependencies:
47
47
  segments:
48
48
  - 0
49
49
  version: "0"
50
- type: :development
50
+ type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
53
- name: rcov
53
+ name: shoulda
54
54
  prerelease: false
55
55
  requirement: &id003 !ruby/object:Gem::Requirement
56
56
  none: false
@@ -64,7 +64,7 @@ dependencies:
64
64
  type: :development
65
65
  version_requirements: *id003
66
66
  - !ruby/object:Gem::Dependency
67
- name: rspec-rails
67
+ name: rcov
68
68
  prerelease: false
69
69
  requirement: &id004 !ruby/object:Gem::Requirement
70
70
  none: false
@@ -77,6 +77,20 @@ dependencies:
77
77
  version: "0"
78
78
  type: :development
79
79
  version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec-rails
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ type: :development
93
+ version_requirements: *id005
80
94
  description: This plugin extends bookyt with project management functionality.
81
95
  email:
82
96
  - roman.simecek@cyt.ch
@@ -98,6 +112,7 @@ files:
98
112
  - app/models/project_state.rb
99
113
  - app/views/activities/_form.html.haml
100
114
  - app/views/activities/_list.html.haml
115
+ - app/views/activities/new.js.erb
101
116
  - app/views/project_states/_form.html.haml
102
117
  - app/views/projects/_form.html.haml
103
118
  - app/views/projects/_list.html.haml