3 // FORM TO UPDATE POP-UP CHOICES FOR A BOX
6 Allow modification of a Choice for a Pop-up Box
8 $boxid = getIntFromRequest('boxid');
9 $ac = new ArtifactExtraField($ath,$boxid);
10 if (!$ac || !is_object($ac)) {
11 exit_error('Error','Unable to create ArtifactExtraField Object');
12 } elseif ($ac->isError()) {
13 exit_error('Error',$ac->getErrorMessage());
15 $id = getStringFromRequest('id');
16 $ao = new ArtifactExtraFieldElement($ac,$id);
17 if (!$ao || !is_object($ao)) {
18 exit_error('Error','Unable to create ArtifactExtraFieldElement Object');
19 } elseif ($ao->isError()) {
20 exit_error('Error',$ao->getErrorMessage());
23 $ath->adminHeader(array('title'=>$Language->getText('tracker_admin_build_boxes','opt_update_title',$ath->getName())));
26 <h2>'.$Language->getText('tracker_admin_build_boxes','opt_update_title',$ath->getName()).'</h2>';
30 <form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&atid='.$ath->getID(); ?>" method="post">
31 <input type="hidden" name="update_opt" value="y" />
32 <input type="hidden" name="id" value="<?php echo $ao->getID(); ?>" />
33 <input type="hidden" name="boxid" value="<?php echo $boxid; ?>" />
36 <strong><?php echo _('Element') ?>:</strong><br />
37 <input type="text" name="name" value="<?php echo $ao->getName(); ?>" /></p>
39 Show a pop-up box to choose the possible statuses that this element will map to
41 <?php if ($ac->getType() == ARTIFACT_EXTRAFIELDTYPE_STATUS) { ?>
42 <strong><?php echo _('Status'); ?>:</strong><br />
43 <?php echo $ath->statusBox('status_id',$ao->getStatusID(),false,false); ?>
47 <span class="warning"><?php echo _('It is not recommended that you change the custom field name because other things are dependent upon it. When you change the custom field name, all related items will be changed to the new name') ?>
50 <input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" /></p>
53 $ath->footer(array());