5 * Copyright 2010, FusionForge Team
6 * Copyright 2012, Franck Villaume - TrivialDev
7 * Copyright 2017, Stéphane-Eymeric Bredthauer - 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.
30 // SHOW LINKS TO FUNCTIONS
32 $ath->header(array ('title'=>_('Administration of tracker')._(': ').$ath->getName(),
36 echo util_make_link('/tracker/admin/?group_id='.$group_id, '<strong>'._('New Tracker').'</strong>');
38 echo _('Create a new tracker.');
42 echo util_make_link('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID().'&update_type=1', '<strong>'._('Update Settings').'</strong>');
44 echo _('Set up preferences like expiration times, email addresses.');
48 echo util_make_link('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID().'&effort_units=1', '<strong>'._('Manage Effort Units').'</strong>');
50 echo _('Manage Effort Units for Effort custom extra field.');
54 echo util_make_link('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID().'&add_extrafield=1', '<strong>'._('Manage Custom Fields').'</strong>');
56 echo _('Add new boxes like Phases, Quality Metrics, Components, etc. Once added they can be used with other selection boxes (for example, Categories or Groups) to describe and browse bugs or other artifact types.');
60 echo util_make_link('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID().'&workflow=1', '<strong>'._('Manage Workflow').'</strong>');
62 echo _('Edit tracker workflow.');
66 echo util_make_link('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID().'&customize_list=1', '<strong>'._('Customize List').'</strong>');
68 echo _('Customize display for the tracker.');
72 echo util_make_link('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID().'&add_canned=1', '<strong>'._('Manage Canned Responses').'</strong>');
74 echo _('Create/change generic response messages for the tracker.');
78 echo util_make_link('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID().'&clone_tracker=1', '<strong>'._('Apply Template Tracker').'</strong>');
80 echo _('Duplicate parameters and fields from a template trackers in this one.');
83 echo '<p>'.util_make_link('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID().'&delete=1', '<strong>'._('Delete').'</strong>');
85 echo _('Permanently delete this tracker.');
88 $hook_params = array('group_id' => $group_id, 'atid' => $ath->getID());
89 plugin_hook_by_reference("admin_tracker_add_actions", $hook_params);
90 if (isset($hook_params['result'])) {
91 foreach($hook_params['result'] as $action => $values) {
92 echo '<p>'.util_make_link('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID()."&$action=1", '<strong>'.$values['text'].'</strong>');
94 echo $values['description'];