function getConfigFieldSet() { $FieldSet = new HTMLElement('fieldset', self::CLS_FIELDSET_CONFIG . ' inline', new Attributes('data-' . static::PARAM_PRODUCT_TYPE, $this->getTypeName()), new HTMLElement('legend', 'legend-shipping', "Configure Product"), new HTMLElement('label', 'label-' . self::PARAM_PRODUCT_TITLE, "Product Title<br/>", new HTMLInputField(self::PARAM_PRODUCT_TITLE, $this->title, new Attributes('placeholder', '"My Product - $9.99"'), new RequiredValidation())), "<br/><br/>", new HTMLElement('label', 'label-' . self::PARAM_PRODUCT_TOTAL_COST, "Total Cost<br/>", new HTMLInputField(self::PARAM_PRODUCT_TOTAL_COST, $this->total, new Attributes('placeholder', '"9.99"'), new RequiredValidation())), "<br/><br/>", new HTMLElement('label', null, "Choose Wallet Types(s)<br/>", $SourceSelect = new HTMLSelectField(self::PARAM_PAYMENT_WALLET_TYPES . '[]', new Attributes('multiple', 'multiple')))); foreach (AbstractWallet::loadAllWalletTypes() as $WalletType) { $SourceSelect->addOption($WalletType::ID_FLAG, $WalletType->getDescription()); if ($WalletType::ID_FLAG & $this->wallet_flags) { $SourceSelect->select($WalletType::ID_FLAG); } } return $FieldSet; }