5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
7 * Copyright 2012, Franck Villaume - TrivialDev
8 * http://fusionforge.org/
10 * This file is part of FusionForge. FusionForge is free software;
11 * you can redistribute it and/or modify it under the terms of the
12 * GNU General Public License as published by the Free Software
13 * Foundation; either version 2 of the Licence, or (at your option)
16 * FusionForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License along
22 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 use_javascript('/tabber/tabber.js');
35 html_use_coolfieldset();
36 $ath->header(array ('title'=> $ah->getStringID().' '. $ah->getSummary(), 'atid'=>$ath->getID()));
41 <h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
43 <form id="trackermodlimitedform" action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
44 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
45 <input type="hidden" name="func" value="postmod" />
46 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
47 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
51 if (session_loggedin()) {
55 if ($ah->isMonitoring()) {
58 $text=_('Stop Monitoring');
65 <a id="tracker-monitor" href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor" title="'.util_html_secure(html_get_tooltip_description('monitor')).'"><strong>'.
66 html_image('ic/'.$img.'','20','20').' '.$text.'</strong></a>';
70 if ($group->usesPM()) {
72 <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
73 html_image('ic/taskman20w.png','20','20').'<strong>'._('Build Task Relation').'</strong></a>';
78 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
86 <td><strong><?php echo _('Submitted by')._(':'); ?></strong><br />
88 echo $ah->getSubmittedRealName();
89 if($ah->getSubmittedBy() != 100) {
90 $submittedUnixName = $ah->getSubmittedUnixName();
91 $submittedBy = $ah->getSubmittedBy();
93 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
96 <td><strong><?php echo _('Date Submitted')._(':'); ?></strong><br />
98 echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
100 $close_date = $ah->getCloseDate();
101 if ($ah->getStatusID()==2 && $close_date > 1) {
102 echo '<br /><strong>'._('Date Closed')._(':').'</strong><br />'
103 .date(_('Y-m-d H:i'), $close_date);
110 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any',array(),false,'UPDATE');
114 <td><strong><?php echo _('Assigned to')._(':'); ?></strong><br />
115 <span id="tracker-assigned_to" title="<?php echo html_get_tooltip_description('assigned_to') ?>">
116 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)
119 <strong><?php echo _('Priority')._(':'); ?></strong><br />
120 <span id="tracker-priority" title="<?php echo html_get_tooltip_description('priority') ?>">
121 <?php echo $ah->getPriority(); ?>
125 <?php if (!$ath->usesCustomStatuses()) { ?>
128 <strong><?php echo _('State')._(':'); ?></strong><br />
129 <span id="tracker-status_id" title="<?php echo util_html_secure(html_get_tooltip_description('status_id')) ?>">
130 <?php echo $ath->statusBox ('status_id', $ah->getStatusID() ); ?>
138 $ath->renderRelatedTasks($group, $ah);
139 $ath->renderFiles($group_id, $ah);
142 <td colspan="2"><strong><?php echo _('Summary')._(':'); ?><?php echo utils_requiredField(); ?></strong><br />
143 <span id="tracker-summary" title="<?php echo html_get_tooltip_description('summary') ?>">
144 <?php echo $ah->getSummary(); ?>
150 <?php $ah->showDetails(); ?>
153 <div id="tabber" class="tabber">
155 $count=db_numrows($ah->getMessages());
156 $nb = $count? ' ('.$count.')' : '';
158 <div class="tabbertab" title="<?php echo _('Comments').$nb; ?>">
161 <br /><strong><?php echo _('Add A Comment') ?>: <?php echo notepad_button('document.forms.trackermodlimitedform.details') ?></strong><br />
162 <textarea id="tracker-comment" name="details" rows="7" cols="60" title="<?php echo util_html_secure(html_get_tooltip_description('comment')) ?>"></textarea>
164 <h2><?php echo _('Comments')._(': ');
173 $file_list = $ah->getFiles();
174 $count=count($file_list);
175 $nb = $count? ' ('.$count.')' : '';
177 <div class="tabbertab" title="<?php echo _('Attachments').$nb; ?>">
178 <h2><?php echo _('Existing Files')._(':'); ?></h2>
181 <?php echo _('Attach Files')._(':'); ?> <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?><br />
182 <input type="file" name="input_file0" size="30" /><br />
183 <input type="file" name="input_file1" size="30" /><br />
184 <input type="file" name="input_file2" size="30" /><br />
185 <input type="file" name="input_file3" size="30" /><br />
186 <input type="file" name="input_file4" size="30" />
188 <h2><?php echo _('Attached Files')._(':'); ?></h2>
191 // print a list of files attached to this Artifact
193 $ath->renderFiles($group_id, $ah);
198 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
200 <tr><td colspan="2"><!-- dummy in case the hook is empty --></td></tr>
202 $hookParams['artifact_id'] = $aid;
203 $hookParams['group_id'] = $group_id;
204 plugin_hook("artifact_extra_detail",$hookParams);
208 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
209 <h2><?php echo _('Changes') ?></h2>
210 <?php $ah->showHistory(); ?>
212 <?php $ah->showRelations(); ?>
217 $ath->footer(array());
221 // c-file-style: "bsd"