Index: trunk/extensions/SemanticForms/includes/SF_FormField.php |
— | — | @@ -152,11 +152,17 @@ |
153 | 153 | } |
154 | 154 | // If it's not a semantic field - don't add any text. |
155 | 155 | $form_label_text = wfMsg( 'sf_createform_formlabel' ); |
156 | | - $field_label = $template_field->label; |
| 156 | + $form_label_input = Xml::element( 'input', |
| 157 | + array( |
| 158 | + 'type' => 'text', |
| 159 | + 'name' => 'label_' . $field_form_text, |
| 160 | + 'size' => 20, |
| 161 | + 'value' => $template_field->label, |
| 162 | + ), null ); |
157 | 163 | $input_type_text = wfMsg( 'sf_createform_inputtype' ); |
158 | 164 | $text .= <<<END |
159 | 165 | <div class="formField"> |
160 | | - <p>$form_label_text <input type="text" name="label_$field_form_text" size=20 value="$field_label" /> |
| 166 | + <p>$form_label_text $form_label_input |
161 | 167 |   $input_type_text |
162 | 168 | |
163 | 169 | END; |