3 * FusionForge Project Management Facility
5 * Copyright 1999-2000, Tim Perdue/Sourceforge
6 * Copyright 2002, Tim Perdue/GForge, LLC
7 * http://fusionforge.org
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the Licence, or (at your option)
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 require_once $gfwww.'include/note.php';
27 $related_artifact_id = getIntFromRequest('related_artifact_id');
28 $related_artifact_summary = getStringFromRequest('related_artifact_summary');
30 pm_header(array('title'=>_('Add a new Task'),'group_project_id'=>$group_project_id));
33 $params['name'] = 'details';
35 $params['height'] = "500";
36 $params['width'] = "100%";
37 $params['content'] = '<textarea required="required" name="details" rows="5" cols="80"></textarea>';
38 plugin_hook_by_reference("text_editor", $params);
42 <form id="addtaskform" action="<?php echo getStringFromServer('PHP_SELF')."?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
43 <input type="hidden" name="func" value="postaddtask" />
44 <input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>" />
46 <table class="fullwidth">
50 <strong><?php echo _('Category') ?></strong><br />
52 echo $pg->categoryBox('category_id');
53 echo util_make_link ('/pm/admin/?group_id='.$group_id.'&add_cat=1&group_project_id='.$group_project_id,'('._('admin').')');
57 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
63 <strong><?php echo _('Percent Complete') ?>:</strong><br />
64 <?php echo $pg->percentCompleteBox(); ?>
67 <strong><?php echo _('Priority') ?>:</strong><br />
68 <?php echo build_priority_select_box(); ?>
74 <strong><?php echo _('Task Summary') ?>:</strong><?php echo utils_requiredField(); ?><br />
75 <input required="required" type="text" name="summary" size="65" maxlength="65" value="<?php echo $related_artifact_summary; ?>" />
81 <strong><?php echo _('Task Details') ?>:</strong><?php echo notepad_button('document.forms.addtaskform.details') ?> <?php echo utils_requiredField(); ?><br />
82 <?php echo $params['content']; ?>
88 <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
89 <input required="required" type="text" name="hours" size="5" value="1" />
95 <strong><?php echo _('Start Date') ?>:</strong><br />
97 echo $pg->showMonthBox ('start_month',date('m', time()));
98 echo $pg->showDayBox ('start_day',date('d', time()));
99 echo $pg->showYearBox ('start_year',date('Y', time()));
100 echo $pg->showHourBox ('start_hour',date('G', time()));
101 echo $pg->showMinuteBox ('start_minute', date('i', 15*(time()%15)));
102 ?><br /><?php echo _('The system will modify your start/end dates if you attempt to create a start date earlier than the end date of any tasks you depend on.') ?>
103 <br /><a href="calendar.php?group_id=<?php echo $group_id; ?>&group_project_id=<?php echo $group_project_id; ?>" target="_blank"><?php echo _('View Calendar') ?></a>
110 <strong><?php echo _('End Date') ?>:</strong><br />
112 echo $pg->showMonthBox ('end_month',date('m', (time()+604800)));
113 echo $pg->showDayBox ('end_day',date('d', (time()+604800)));
114 echo $pg->showYearBox ('end_year',date('Y', (time()+604800)));
115 echo $pg->showHourBox ('end_hour',date('G', (time()+604800)));
116 echo $pg->showMinuteBox ('end_minute', date('i', 15*((time()+604800)%15)));
124 <strong><?php echo _('Assigned to') ?>:</strong><br />
126 echo $pt->multipleAssignedBox();
130 <strong><?php echo _('Dependent on task') ?>:</strong><br />
132 echo $pt->multipleDependBox();
134 <?php echo _('Dependent note') ?>
140 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
141 <input type="hidden" name="duration" value="0" />
142 <input type="hidden" name="parent_id" value="0" />
146 will add duration and parent_id choices at some point
149 <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
150 <input required="required" type="text" name="hours" size="5" />
154 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
167 // c-file-style: "bsd"