r24486 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24485‎ | r24486 | r24487 >
Date:13:05, 31 July 2007
Author:yaron
Status:old
Tags:
Comment:
Added 'restricted' option, removed 'page title' block, compacted layout
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateForm.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateForm.php
@@ -86,9 +86,12 @@
8787 $new_label = $wgRequest->getVal("label_" . $old_i . "_" . $j);
8888 if ($new_label)
8989 $field->template_field->label = $new_label;
90 - if ($wgRequest->getVal("hidefield_" . $old_i . "_" . $j) == "hidden") {
 90+ if ($wgRequest->getVal("hidden_" . $old_i . "_" . $j) == "hidden") {
9191 $field->is_hidden = true;
9292 }
 93+ if ($wgRequest->getVal("restricted_" . $old_i . "_" . $j) == "restricted") {
 94+ $field->is_restricted = true;
 95+ }
9396 if ($wgRequest->getVal("mandatory_" . $old_i . "_" . $j) == "mandatory") {
9497 $field->is_mandatory = true;
9598 }
@@ -123,15 +126,8 @@
124127 // set 'title' field, in case there's no URL niceness
125128 $text .= ' <input type="hidden" name="title" value="Special:CreateForm">' . "\n";
126129 $text .= ' <p>' . wfMsg('sf_createform_nameinput') . ' <input size=25 name="form_name" value="' . $form_name . '"> <font color="red">' . $form_name_error_str . '</font></p>' . "\n";
127 - $text .=<<<END
128 - <br />
129 - <div class="template_form">
 130+ $text .= " <br />\n";
130131
131 -END;
132 - $text .= ' <h2>' . wfMsg('sf_createform_titlefield') . "</h2>\n";
133 - $text .= ' <p>' . wfMsg('sf_createform_titledesc') . "</p>\n";
134 - $text .= " </div>\n";
135 -
136132 $text .= $form->creationHTML();
137133
138134 $text .= ' <p>' . wfMsg('sf_createform_addtemplate') . "\n";

Status & tagging log