|
@@ 151-161 (lines=11) @@
|
| 148 |
|
* @package multiform |
| 149 |
|
* @subpackage tests |
| 150 |
|
*/ |
| 151 |
|
class MultiFormTest_StepTwo extends MultiFormStep implements TestOnly { |
| 152 |
|
|
| 153 |
|
public static $next_steps = 'MultiFormTest_StepThree'; |
| 154 |
|
|
| 155 |
|
public function getFields() { |
| 156 |
|
$class = (class_exists('FieldList')) ? 'FieldList' : 'FieldSet'; |
| 157 |
|
return new $class( |
| 158 |
|
new TextareaField('Comments', 'Tell us a bit about yourself...') |
| 159 |
|
); |
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
/** |
| 164 |
|
* @package multiform |
|
@@ 167-178 (lines=12) @@
|
| 164 |
|
* @package multiform |
| 165 |
|
* @subpackage tests |
| 166 |
|
*/ |
| 167 |
|
class MultiFormTest_StepThree extends MultiFormStep implements TestOnly { |
| 168 |
|
|
| 169 |
|
public static $is_final_step = true; |
| 170 |
|
|
| 171 |
|
public function getFields() { |
| 172 |
|
$class = (class_exists('FieldList')) ? 'FieldList' : 'FieldSet'; |
| 173 |
|
return new $class( |
| 174 |
|
new TextField('Test', 'Anything else you\'d like to tell us?') |
| 175 |
|
); |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
} |
| 179 |
|
|