Index: trunk/extensions/SemanticForms/specials/SF_CreateForm.php |
— | — | @@ -86,9 +86,12 @@ |
87 | 87 | $new_label = $wgRequest->getVal("label_" . $old_i . "_" . $j); |
88 | 88 | if ($new_label) |
89 | 89 | $field->template_field->label = $new_label; |
90 | | - if ($wgRequest->getVal("hidefield_" . $old_i . "_" . $j) == "hidden") { |
| 90 | + if ($wgRequest->getVal("hidden_" . $old_i . "_" . $j) == "hidden") { |
91 | 91 | $field->is_hidden = true; |
92 | 92 | } |
| 93 | + if ($wgRequest->getVal("restricted_" . $old_i . "_" . $j) == "restricted") { |
| 94 | + $field->is_restricted = true; |
| 95 | + } |
93 | 96 | if ($wgRequest->getVal("mandatory_" . $old_i . "_" . $j) == "mandatory") { |
94 | 97 | $field->is_mandatory = true; |
95 | 98 | } |
— | — | @@ -123,15 +126,8 @@ |
124 | 127 | // set 'title' field, in case there's no URL niceness |
125 | 128 | $text .= ' <input type="hidden" name="title" value="Special:CreateForm">' . "\n"; |
126 | 129 | $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"; |
130 | 131 | |
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 | | - |
136 | 132 | $text .= $form->creationHTML(); |
137 | 133 | |
138 | 134 | $text .= ' <p>' . wfMsg('sf_createform_addtemplate') . "\n"; |