3 * FusionForge Artifact update Form
5 * Copyright 2010, FusionForge Team
6 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
8 * This file is part of FusionForge. FusionForge is free software;
9 * you can redistribute it and/or modify it under the terms of the
10 * GNU General Public License as published by the Free Software
11 * Foundation; either version 2 of the Licence, or (at your option)
14 * FusionForge is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 $ath->adminHeader(array('title'=>_('Customize Browse List'),'pagename'=>'tracker_admin_customize_liste','titlevals'=>array($ath->getName())));
27 List of possible user built Selection Boxes for an ArtifactType
29 $efarr = $ath->getExtraFields();
31 $browse_fields = explode(',',$ath->getBrowseList());
34 <form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&atid='.$ath->getID(); ?>" method="post">
35 <input type="hidden" name="customize_list" value="y" />
37 <?php echo _('Set order of the fields that will be displayed on the browse view of your tracker:') ?>
41 // Display regular fields.
43 'summary' => _('Summary'),
44 'open_date' => _('Open Date'),
45 'status_id' => _('State'),
46 'priority' => _('Priority'),
47 'assigned_to' => _('Assigned To'),
48 'submitted_by' => _('Submitted By'),
49 'close_date' => _('Close Date'),
50 'details' => _('Detailed description'),
51 'related_tasks' => _('Related tasks'),
52 'last_modified_date' => _('Last Modified Date')
55 if(count($ath->getExtraFields(array(ARTIFACT_EXTRAFIELDTYPE_STATUS))) > 0) {
56 unset($fields['status_id']);
60 foreach ($efarr as $f) {
61 $fields[$f[0]] = $f['field_name'];
67 foreach ($fields as $f => $name) {
68 $pos = array_search($f, $browse_fields);
69 echo "<input type=\"text\" name=\"browse_fields[$f]\" value=\"" .
70 (($pos !== false) ? $pos + 1 : '') .
71 "\" size=\"3\" maxlength=\"3\" /> " .
76 $keys=array_keys($efarr);
79 for ($k=0; $k < $rows; $k++) {
81 $pos = array_search($i, $browse_fields);
82 echo "<input type=\"text\" name=\"browse_fields[$i]\" value=\"" .
83 (($pos !== false) ? $pos + 1 : '') .
84 "\" size=\"3\" maxlength=\"3\" /> " .
85 $efarr[$i]['field_name'] .
92 <input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" /></p>
96 $ath->footer(array());