5 * Copyright 2010 (c) FusionForge Team
6 * http://fusionforge.org
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 $name = getStringFromRequest('name', $ath->getName());
25 $description = getStringFromRequest('description', $ath->getDescription());
26 $email_address = getStringFromRequest('email_address', $ath->getEmailAddress());
27 $email_all = getStringFromRequest('email_all', $ath->emailAll());
28 $due_period = getStringFromRequest('due_period', $ath->getDuePeriod() / 86400);
29 $status_timeout = getStringFromRequest('status_timeout', $ath->getStatusTimeout() / 86400);
30 $submit_instructions = getStringFromRequest('submit_instructions', $ath->getSubmitInstructions());
31 $browse_instructions = getStringFromRequest('browse_instructions', $ath->getBrowseInstructions());
34 // FORM TO UPDATE ARTIFACT TYPES
36 $ath->adminHeader(array('title'=>sprintf(_('Update settings for %s'),$ath->getName())));
38 <form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&atid='.$ath->getID(); ?>" method="post">
40 <input type="hidden" name="update_type" value="y" />
41 <?php echo _('<strong>Name:</strong> (examples: meeting minutes, test results, RFP Docs)') ?><br />
42 <?php if ($ath->getDataType()) {
46 <input type="text" name="name" value="<?php echo $ath->getName(); ?>" />
52 <strong><?php echo _('Description') ?>:</strong><br />
53 <?php if ($ath->getDataType()) {
54 echo $ath->getDescription();
57 <input type="text" name="description" value="<?php echo $ath->getDescription(); ?>" size="50" />
63 <strong><?php echo _('Send email on new submission to address') ?>:</strong><br />
64 <input type="text" name="email_address" value="<?php echo $email_address; ?>" /></p>
66 <input type="checkbox" name="email_all" value="1" <?php echo (($email_all)?'checked="checked"':''); ?> /> <strong><?php echo _('Send email on all changes') ?></strong></p>
68 <strong><?php echo _('Days till considered overdue') ?>:</strong><br />
69 <input type="text" name="due_period" value="<?php echo $due_period; ?>" /></p>
71 <strong><?php echo _('Days till pending tracker items time out') ?>:</strong><br />
72 <input type="text" name="status_timeout" value="<?php echo $status_timeout; ?>" /></p>
74 <strong><?php echo _('Free form text for the "submit new item" page') ?>:</strong><br />
75 <textarea name="submit_instructions" rows="10" cols="55"><?php echo $submit_instructions; ?></textarea></p>
77 <strong><?php echo _('Free form text for the "browse items" page') ?>:</strong><br />
78 <textarea name="browse_instructions" rows="10" cols="55"><?php echo $browse_instructions; ?></textarea></p>
80 <input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" /></p>
84 $ath->footer(array());
88 // c-file-style: "bsd"