5 * Copyright 2010 (c) FusionForge Team
6 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
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.
27 // FORM TO DELETE POP-UP CHOICES FOR A BOX
30 Allow deletion of a Choice for a Pop-up Box
32 $boxid = getIntFromRequest('boxid');
33 $ac = new ArtifactExtraField($ath,$boxid);
34 if (!$ac || !is_object($ac)) {
35 exit_error(_('Unable to create ArtifactExtraField Object'),'tracker');
36 } elseif ($ac->isError()) {
37 exit_error($ac->getErrorMessage(),'tracker');
39 $id = getStringFromRequest('id');
40 $ao = new ArtifactExtraFieldElement($ac,$id);
41 if (!$ao || !is_object($ao)) {
42 exit_error(_('Unable to create ArtifactExtraFieldElement Object'),'tracker');
43 } elseif ($ao->isError()) {
44 exit_error($ao->getErrorMessage(),'tracker');
47 $ath->adminHeader(array('title'=>sprintf(_("Delete a custom field element in: %s"), $ath->getName())));
51 <legend><?php echo _("Delete Custom Field Element") ?></legend>
52 <form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&atid='.$ath->getID(); ?>" method="post">
53 <input type="hidden" name="delete_opt" value="y" />
54 <input type="hidden" name="id" value="<?php echo $ao->getID(); ?>" />
55 <input type="hidden" name="boxid" value="<?php echo $boxid; ?>" />
58 <strong><?php echo _("Element") ?>:</strong> <?php echo $ao->getName(); ?></p>
61 <input type="checkbox" name="sure" value="1" /><?php echo _("I'm Sure") ?><br />
64 <input type="submit" name="post_changes" value="<?php echo _('Delete') ?>" /></p>
68 $ath->footer(array());
74 // c-file-style: "bsd"