task-manager 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +136 -1
- data/Rakefile +3 -17
- data/app/assets/javascripts/task-manager/{application.js → extjs.js} +3 -9
- data/app/assets/javascripts/task-manager/extjs/app/controller/Plans.js +29 -264
- data/app/assets/javascripts/task-manager/extjs/app/helper/{application_helper.js → ApplicationHelper.js} +0 -0
- data/app/assets/javascripts/task-manager/extjs/app/model/Assignee.js +16 -0
- data/app/assets/javascripts/task-manager/extjs/app/model/Plan.js +18 -156
- data/app/assets/javascripts/task-manager/extjs/app/store/Assignees.js +37 -30
- data/app/assets/javascripts/task-manager/extjs/app/view/assignee/TreeCombo.js +48 -0
- data/app/assets/javascripts/task-manager/extjs/app/view/plan/Form.js +290 -0
- data/app/assets/javascripts/task-manager/extjs/app/view/plan/{Window.js → FormWindow.js} +7 -5
- data/app/assets/javascripts/task-manager/extjs/lib/ux/Model.js +14 -0
- data/app/assets/javascripts/task-manager/extjs/lib/ux/TreeCombo.js +276 -0
- data/app/controllers/task_manager/api/v1/plans_controller.rb +3 -3
- data/app/controllers/task_manager/api/v1/tasks_controller.rb +1 -1
- data/app/models/task_manager/plan.rb +48 -37
- data/lib/task-manager/deadline_validator.rb +23 -14
- data/lib/task-manager/version.rb +1 -1
- metadata +27 -16
- data/app/assets/javascripts/task-manager/extjs/app/store/AssigneesTree.js +0 -3
- data/app/assets/javascripts/task-manager/extjs/app/view/plan/AssignablesWindow.js +0 -23
- data/app/assets/javascripts/task-manager/extjs/app/view/plan/Edit.js +0 -189
- data/app/assets/javascripts/task-manager/extjs/app/view/plan/EditWindow.js +0 -21
- data/app/assets/javascripts/task-manager/extjs/app/view/plan/New.js +0 -190
- data/app/assets/javascripts/task-manager/extjs/app/view/plan/SelectAssignables.js +0 -22
- data/app/assets/javascripts/task-manager/extjs/app/view/plan/SelectAssignablesGrid.js +0 -22
- data/app/assets/javascripts/task-manager/extjs/app/view/plan/SelectAssignablesTree.js +0 -9
- data/app/assets/stylesheets/task-manager/application.css.scss +0 -13
@@ -1,22 +0,0 @@
|
|
1
|
-
Ext.define('TM.view.plan.SelectAssignables', {
|
2
|
-
extend: 'Ext.panel.Panel',
|
3
|
-
xtype: 'plan_selectassignables',
|
4
|
-
|
5
|
-
requires: [
|
6
|
-
//'TM.view.plan.SelectAssignablesGrid',
|
7
|
-
'TM.view.plan.SelectAssignablesTree'
|
8
|
-
],
|
9
|
-
|
10
|
-
items: [{
|
11
|
-
xtype: 'plan_selectassignablestree',
|
12
|
-
flex: 1
|
13
|
-
}],
|
14
|
-
|
15
|
-
buttons: [{
|
16
|
-
text: '确定',
|
17
|
-
action: 'save'
|
18
|
-
}, {
|
19
|
-
text: '取消',
|
20
|
-
action: 'cancel'
|
21
|
-
}]
|
22
|
-
});
|
@@ -1,22 +0,0 @@
|
|
1
|
-
Ext.define('TM.view.plan.SelectAssignablesGrid', {
|
2
|
-
extend: 'Ext.grid.Panel',
|
3
|
-
xtype: 'plan_selectassignablesgrid',
|
4
|
-
|
5
|
-
store: 'TM.store.Assignees',
|
6
|
-
height: 490,
|
7
|
-
|
8
|
-
border: 0,
|
9
|
-
|
10
|
-
selType: 'checkboxmodel',
|
11
|
-
selModel: {
|
12
|
-
mode: 'MULTI',
|
13
|
-
allowDeselect: true,
|
14
|
-
checkOnly: true
|
15
|
-
},
|
16
|
-
|
17
|
-
columns: [{
|
18
|
-
text: '名称',
|
19
|
-
flex: 1,
|
20
|
-
dataIndex: 'name'
|
21
|
-
}]
|
22
|
-
});
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require ./extjs
|
13
|
-
*/
|