diff --git a/include/class.forms.php b/include/class.forms.php index 3c583b56b3321c455f501f46ac7130bb67f102b8..f54b52c638836c114e49baa3275fb59e52b66b85 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -606,7 +606,12 @@ class ChoiceField extends FormField { function getConfigurationOptions() { return array( 'choices' => new TextareaField(array( - 'id'=>1, 'label'=>'Choices', 'required'=>false, 'default'=>'')), + 'id'=>1, 'label'=>'Choices', 'required'=>false, 'default'=>'', + 'hint'=>'List choices, one per line. To protect against + spelling changes, specify key:value names to preserve + entries if the list item names change', + 'configuration'=>array('html'=>false) + )), ); } diff --git a/include/staff/templates/dynamic-field-config.tmpl.php b/include/staff/templates/dynamic-field-config.tmpl.php index c4da54f513f4e9d9a1ce962d9adb7086395e94f8..4a0703b308e8b0769be1016e9e565bcc2d331d8d 100644 --- a/include/staff/templates/dynamic-field-config.tmpl.php +++ b/include/staff/templates/dynamic-field-config.tmpl.php @@ -24,7 +24,7 @@ else if ($f->get('default')) $f->value = $f->get('default'); ?> - <tr><td> + <tr><td class="multi-line"> <label for="<?php echo $f->getWidget()->name; ?>" style="vertical-align:top;padding-top:0.2em"> <?php echo Format::htmlchars($f->get('label')); ?>:</label> @@ -53,7 +53,7 @@ } ?> <tr><td colspan="2"><hr/></td></tr> - <tr><td> + <tr><td class="multi-line"> <label for="hint" style="vertical-align:top;padding-top:0.2em">Help Text:</label> </td><td> diff --git a/scp/css/scp.css b/scp/css/scp.css index 79da1d79820235bb3e1d825600d065b8cf36db37..df4635a9fd36952d092208bc15caf7da4eab2ad8 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -541,7 +541,7 @@ a.print { } -.form_table td.multi-line { +td.multi-line { vertical-align:top; padding-top: 0.4em; padding-bottom: 0.4em;