| @@ 1793-1802 (lines=10) @@ | ||
| 1790 | * @param string $url |
|
| 1791 | * @return FormValidator |
|
| 1792 | */ |
|
| 1793 | public static function getCategoryForm($url, $projectId) |
|
| 1794 | { |
|
| 1795 | $form = new FormValidator('category', 'post', $url); |
|
| 1796 | $form->addText('name', get_lang('Name')); |
|
| 1797 | $form->addHtmlEditor('description', get_lang('Description')); |
|
| 1798 | $form->addHidden('project_id', $projectId); |
|
| 1799 | $form->addButtonUpdate(get_lang('Save')); |
|
| 1800 | ||
| 1801 | return $form; |
|
| 1802 | } |
|
| 1803 | ||
| 1804 | /** |
|
| 1805 | * @return array |
|
| @@ 1984-1992 (lines=9) @@ | ||
| 1981 | * @param string $url |
|
| 1982 | * @return FormValidator |
|
| 1983 | */ |
|
| 1984 | public static function getProjectForm($url) |
|
| 1985 | { |
|
| 1986 | $form = new FormValidator('project', 'post', $url); |
|
| 1987 | $form->addText('name', get_lang('Name')); |
|
| 1988 | $form->addHtmlEditor('description', get_lang('Description')); |
|
| 1989 | $form->addButtonUpdate(get_lang('Save')); |
|
| 1990 | ||
| 1991 | return $form; |
|
| 1992 | } |
|
| 1993 | ||
| 1994 | /** |
|
| 1995 | * @return array |
|
| @@ 2104-2112 (lines=9) @@ | ||
| 2101 | * @param string $url |
|
| 2102 | * @return FormValidator |
|
| 2103 | */ |
|
| 2104 | public static function getStatusForm($url) |
|
| 2105 | { |
|
| 2106 | $form = new FormValidator('status', 'post', $url); |
|
| 2107 | $form->addText('name', get_lang('Name')); |
|
| 2108 | $form->addHtmlEditor('description', get_lang('Description')); |
|
| 2109 | $form->addButtonUpdate(get_lang('Save')); |
|
| 2110 | ||
| 2111 | return $form; |
|
| 2112 | } |
|
| 2113 | ||
| 2114 | /** |
|
| 2115 | * @return array |
|
| @@ 2229-2237 (lines=9) @@ | ||
| 2226 | * @param string $url |
|
| 2227 | * @return FormValidator |
|
| 2228 | */ |
|
| 2229 | public static function getPriorityForm($url) |
|
| 2230 | { |
|
| 2231 | $form = new FormValidator('priority', 'post', $url); |
|
| 2232 | $form->addText('name', get_lang('Name')); |
|
| 2233 | $form->addHtmlEditor('description', get_lang('Description')); |
|
| 2234 | $form->addButtonUpdate(get_lang('Save')); |
|
| 2235 | ||
| 2236 | return $form; |
|
| 2237 | } |
|
| 2238 | ||
| 2239 | /** |
|
| 2240 | * @return string |
|