r83119 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83118‎ | r83119 | r83120 >
Date:21:29, 2 March 2011
Author:yaron
Status:deferred
Tags:
Comment:
Removed 'mandatory' and 'restricted' inputs - these are now part of the regular set of params
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormField.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormField.php
@@ -169,16 +169,6 @@
170170 $text .= "</fieldset>\n";
171171 $text .= <<<END
172172 </p>
173 - <p>
174 -
175 -END;
176 - $mandatoryCheckboxAtrs = array( 'type' => 'checkbox', 'name' => "mandatory_$field_form_text", 'value' => 'mandatory' );
177 - if ( $this->is_mandatory ) { $mandatoryCheckboxAtrs['checked'] = 'checked'; }
178 - $text .= "\t" . Xml::element( 'input', $mandatoryCheckboxAtrs, wfMsg( 'sf_createform_mandatory' ) ) . "\n";
179 - $restrictedCheckboxAtrs = array( 'type' => 'checkbox', 'name' => "restricted_$field_form_text", 'value' => 'restricted' );
180 - if ( $this->is_restricted ) { $restrictedCheckboxAtrs['checked'] = 'checked'; }
181 - $text .= "\t" . Xml::element( 'input', $restrictedCheckboxAtrs, wfMsg( 'sf_createform_restricted' ) ) . "\n";
182 - $text .= <<<END
183173 </div>
184174 <hr>
185175