form.php 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. $config->todo->create->form = array();
  3. $config->todo->create->form['type'] = array('required' => true, 'type' => 'string');
  4. $config->todo->create->form['name'] = array('required' => true, 'type' => 'string', 'default' => '');
  5. $config->todo->create->form['story'] = array('required' => false, 'type' => 'string', 'default' => 0);
  6. $config->todo->create->form['epic'] = array('required' => false, 'type' => 'string', 'default' => 0);
  7. $config->todo->create->form['requirement'] = array('required' => false, 'type' => 'string', 'default' => 0);
  8. $config->todo->create->form['task'] = array('required' => false, 'type' => 'string', 'default' => 0);
  9. $config->todo->create->form['bug'] = array('required' => false, 'type' => 'string', 'default' => 0);
  10. $config->todo->create->form['status'] = array('required' => true, 'type' => 'string');
  11. $config->todo->create->form['pri'] = array('required' => true, 'type' => 'int');
  12. $config->todo->create->form['date'] = array('required' => false, 'type' => 'string', 'default' => helper::today());
  13. $config->todo->create->form['begin'] = array('required' => false, 'type' => 'string', 'default' => '2400');
  14. $config->todo->create->form['end'] = array('required' => false, 'type' => 'string', 'default' => '2400');
  15. $config->todo->create->form['private'] = array('required' => false, 'type' => 'string', 'default' => '0');
  16. $config->todo->create->form['assignedDate'] = array('required' => false, 'type' => 'string', 'default' => helper::now());
  17. $config->todo->create->form['assignedTo'] = array('required' => false, 'type' => 'string', 'default' => '');
  18. $config->todo->create->form['assignedBy'] = array('required' => false, 'type' => 'string', 'default' => '');
  19. $config->todo->create->form['vision'] = array('required' => false, 'type' => 'string', 'default' => $this->config->vision);
  20. $config->todo->create->form['objectID'] = array('required' => false, 'type' => 'int', 'default' => 0);
  21. $config->todo->create->form['desc'] = array('required' => false, 'type' => 'string', 'default' => '');
  22. $config->todo->create->form['cycle'] = array('required' => false, 'type' => 'int', 'default' => 0);
  23. $config->todo->create->form['config'] = array('required' => false, 'type' => 'array', 'default' => array());
  24. $config->todo->batchCreate = new stdclass();
  25. $config->todo->batchCreate->form = array();
  26. $config->todo->batchCreate->form['type'] = array('required' => false, 'type' => 'string');
  27. $config->todo->batchCreate->form['pri'] = array('required' => false, 'type' => 'int');
  28. $config->todo->batchCreate->form['name'] = array('required' => false, 'type' => 'string', 'base' => true);
  29. $config->todo->batchCreate->form['desc'] = array('required' => false, 'type' => 'string');
  30. $config->todo->batchCreate->form['assignedTo'] = array('required' => false, 'type' => 'string');
  31. $config->todo->batchCreate->form['begin'] = array('required' => false, 'type' => 'string', 'default' => '2400');
  32. $config->todo->batchCreate->form['end'] = array('required' => false, 'type' => 'string', 'default' => '2400');
  33. $config->todo->batchCreate->form['switchTime'] = array('required' => false, 'type' => 'string', 'default' => '');
  34. $config->todo->batchCreate->form['vision'] = array('required' => false, 'type' => 'string', 'default' => $this->config->vision);
  35. $config->todo->edit->form = array();
  36. $config->todo->edit->form['name'] = array('required' => true, 'type' => 'string', 'default' => '');
  37. $config->todo->edit->form['status'] = array('required' => true, 'type' => 'string');
  38. $config->todo->edit->form['pri'] = array('required' => true, 'type' => 'int');
  39. $config->todo->edit->form['type'] = array('required' => false, 'type' => 'string', 'default' => '');
  40. $config->todo->edit->form['date'] = array('required' => false, 'type' => 'string', 'default' => helper::today());
  41. $config->todo->edit->form['begin'] = array('required' => false, 'type' => 'string', 'default' => '2400');
  42. $config->todo->edit->form['end'] = array('required' => false, 'type' => 'string', 'default' => '2400');
  43. $config->todo->edit->form['private'] = array('required' => false, 'type' => 'string', 'default' => '0');
  44. $config->todo->edit->form['assignedTo'] = array('required' => false, 'type' => 'string', 'default' => '');
  45. $config->todo->edit->form['objectID'] = array('required' => false, 'type' => 'int', 'default' => 0);
  46. $config->todo->edit->form['desc'] = array('required' => false, 'type' => 'string', 'default' => '', 'control' => 'editor');
  47. $config->todo->edit->form['config'] = array('required' => false, 'type' => 'array', 'default' => array());
  48. $config->todo->assignTo = new stdclass();
  49. $config->todo->assignTo->form = array();
  50. $config->todo->assignTo->form['assignedBy'] = array('required' => false, 'type' => 'string', 'default' => '');
  51. $config->todo->assignTo->form['assignedDate'] = array('required' => false, 'type' => 'string', 'default' => helper::now());
  52. $config->todo->assignTo->form['date'] = array('required' => false, 'type' => 'string', 'default' => '');
  53. $config->todo->assignTo->form['begin'] = array('required' => false, 'type' => 'string', 'default' => '');
  54. $config->todo->assignTo->form['end'] = array('required' => false, 'type' => 'string', 'default' => '');
  55. $config->todo->assignTo->form['assignedTo'] = array('required' => true, 'type' => 'string');
  56. $config->todo->batchClose = new stdclass();
  57. $config->todo->batchClose->form = array();
  58. $config->todo->batchClose->form['todoIdList'] = array('required' => true, 'type' => 'array');
  59. $config->todo->batchEdit = new stdclass();
  60. $config->todo->batchEdit->form = array();
  61. $config->todo->batchEdit->form['id'] = array('required' => true, 'type' => 'int', 'base' => true);
  62. $config->todo->batchEdit->form['date'] = array('required' => true, 'type' => 'date');
  63. $config->todo->batchEdit->form['type'] = array('required' => true, 'type' => 'string');
  64. $config->todo->batchEdit->form['pri'] = array('required' => true, 'type' => 'int');
  65. $config->todo->batchEdit->form['name'] = array('required' => false, 'type' => 'string', 'default' => '');
  66. $config->todo->batchEdit->form['assignedTo'] = array('required' => false, 'type' => 'string', 'default' => '');
  67. $config->todo->batchEdit->form['begin'] = array('required' => false, 'type' => 'string', 'default' => '');
  68. $config->todo->batchEdit->form['end'] = array('required' => false, 'type' => 'string', 'default' => '');
  69. $config->todo->batchEdit->form['status'] = array('required' => true, 'type' => 'string');
  70. $config->todo->batchEdit->form['story'] = array('required' => false, 'type' => 'string', 'default' => 0);
  71. $config->todo->batchEdit->form['epic'] = array('required' => false, 'type' => 'string', 'default' => 0);
  72. $config->todo->batchEdit->form['requirement'] = array('required' => false, 'type' => 'string', 'default' => 0);
  73. $config->todo->batchEdit->form['task'] = array('required' => false, 'type' => 'string', 'default' => 0);
  74. $config->todo->batchEdit->form['bug'] = array('required' => false, 'type' => 'string', 'default' => 0);
  75. $config->todo->batchEdit->form['testtask'] = array('required' => false, 'type' => 'string', 'default' => 0);
  76. if($config->edition != 'open') $config->todo->batchEdit->form['feedback'] = array('required' => false, 'type' => 'string', 'default' => 0);
  77. if(in_array($config->edition, array('max', 'ipd')))
  78. {
  79. $config->todo->batchEdit->form['issue'] = array('required' => false, 'type' => 'string', 'default' => 0);
  80. $config->todo->batchEdit->form['risk'] = array('required' => false, 'type' => 'string', 'default' => 0);
  81. $config->todo->batchEdit->form['opportunity'] = array('required' => false, 'type' => 'string', 'default' => 0);
  82. $config->todo->batchEdit->form['review'] = array('required' => false, 'type' => 'string', 'default' => 0);
  83. }
  84. $config->todo->batchFinish = new stdclass();
  85. $config->todo->batchFinish->form = array();
  86. $config->todo->batchFinish->form['todoIdList'] = array('required' => true, 'type' => 'array');
  87. $config->todo->editDate = new stdclass();
  88. $config->todo->editDate->form = array();
  89. $config->todo->editDate->form['date'] = array('required' => true, 'type' => 'string');
  90. $config->todo->editDate->form['todoIdList'] = array('required' => true, 'type' => 'array');
  91. $config->todo->export = new stdclass();
  92. $config->todo->export->form = array();
  93. $config->todo->export->form['exportType'] = array('required' => true, 'type' => 'string');