Skip to content
Snippets Groups Projects
Commit dbfed202 authored by Jared Hancock's avatar Jared Hancock
Browse files

Choices edit field should not be HTML

parent b881e18c
Branches
Tags
No related merge requests found
...@@ -606,7 +606,12 @@ class ChoiceField extends FormField { ...@@ -606,7 +606,12 @@ class ChoiceField extends FormField {
function getConfigurationOptions() { function getConfigurationOptions() {
return array( return array(
'choices' => new TextareaField(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)
)),
); );
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
else if ($f->get('default')) else if ($f->get('default'))
$f->value = $f->get('default'); $f->value = $f->get('default');
?> ?>
<tr><td> <tr><td class="multi-line">
<label for="<?php echo $f->getWidget()->name; ?>" <label for="<?php echo $f->getWidget()->name; ?>"
style="vertical-align:top;padding-top:0.2em"> style="vertical-align:top;padding-top:0.2em">
<?php echo Format::htmlchars($f->get('label')); ?>:</label> <?php echo Format::htmlchars($f->get('label')); ?>:</label>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
} }
?> ?>
<tr><td colspan="2"><hr/></td></tr> <tr><td colspan="2"><hr/></td></tr>
<tr><td> <tr><td class="multi-line">
<label for="hint" <label for="hint"
style="vertical-align:top;padding-top:0.2em">Help Text:</label> style="vertical-align:top;padding-top:0.2em">Help Text:</label>
</td><td> </td><td>
......
...@@ -541,7 +541,7 @@ a.print { ...@@ -541,7 +541,7 @@ a.print {
} }
.form_table td.multi-line { td.multi-line {
vertical-align:top; vertical-align:top;
padding-top: 0.4em; padding-top: 0.4em;
padding-bottom: 0.4em; padding-bottom: 0.4em;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment