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.
Files changed (28) hide show
  1. data/README.md +136 -1
  2. data/Rakefile +3 -17
  3. data/app/assets/javascripts/task-manager/{application.js → extjs.js} +3 -9
  4. data/app/assets/javascripts/task-manager/extjs/app/controller/Plans.js +29 -264
  5. data/app/assets/javascripts/task-manager/extjs/app/helper/{application_helper.js → ApplicationHelper.js} +0 -0
  6. data/app/assets/javascripts/task-manager/extjs/app/model/Assignee.js +16 -0
  7. data/app/assets/javascripts/task-manager/extjs/app/model/Plan.js +18 -156
  8. data/app/assets/javascripts/task-manager/extjs/app/store/Assignees.js +37 -30
  9. data/app/assets/javascripts/task-manager/extjs/app/view/assignee/TreeCombo.js +48 -0
  10. data/app/assets/javascripts/task-manager/extjs/app/view/plan/Form.js +290 -0
  11. data/app/assets/javascripts/task-manager/extjs/app/view/plan/{Window.js → FormWindow.js} +7 -5
  12. data/app/assets/javascripts/task-manager/extjs/lib/ux/Model.js +14 -0
  13. data/app/assets/javascripts/task-manager/extjs/lib/ux/TreeCombo.js +276 -0
  14. data/app/controllers/task_manager/api/v1/plans_controller.rb +3 -3
  15. data/app/controllers/task_manager/api/v1/tasks_controller.rb +1 -1
  16. data/app/models/task_manager/plan.rb +48 -37
  17. data/lib/task-manager/deadline_validator.rb +23 -14
  18. data/lib/task-manager/version.rb +1 -1
  19. metadata +27 -16
  20. data/app/assets/javascripts/task-manager/extjs/app/store/AssigneesTree.js +0 -3
  21. data/app/assets/javascripts/task-manager/extjs/app/view/plan/AssignablesWindow.js +0 -23
  22. data/app/assets/javascripts/task-manager/extjs/app/view/plan/Edit.js +0 -189
  23. data/app/assets/javascripts/task-manager/extjs/app/view/plan/EditWindow.js +0 -21
  24. data/app/assets/javascripts/task-manager/extjs/app/view/plan/New.js +0 -190
  25. data/app/assets/javascripts/task-manager/extjs/app/view/plan/SelectAssignables.js +0 -22
  26. data/app/assets/javascripts/task-manager/extjs/app/view/plan/SelectAssignablesGrid.js +0 -22
  27. data/app/assets/javascripts/task-manager/extjs/app/view/plan/SelectAssignablesTree.js +0 -9
  28. 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,9 +0,0 @@
1
- Ext.define('TM.view.plan.SelectAssignablesTree', {
2
- extend: 'Ext.tree.Panel',
3
- xtype: 'plan_selectassignablestree',
4
-
5
- store: 'TM.store.AssigneesTree',
6
- height: 490,
7
- rootVisible: false,
8
- border: 0
9
- });
@@ -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
- */