/** * Returns the fields for the member form - used in the registration/profile module. * It should return fields that are editable by the admin and the logged-in user. * * @return FieldSet Returns a {@link FieldSet} containing the fields for * the member form. */ public function getMemberFormFields() { $fields = parent::getFrontendFields(); $fields->replaceField('Password', $password = new ConfirmedPasswordField('Password', $this->fieldLabel('Password'), null, null, (bool) $this->ID)); $password->setCanBeEmpty(true); $fields->replaceField('Locale', new DropdownField('Locale', $this->fieldLabel('Locale'), i18n::get_existing_translations())); $fields->removeByName('RememberLoginToken'); $fields->removeByName('NumVisit'); $fields->removeByName('LastVisited'); $fields->removeByName('Bounced'); $fields->removeByName('AutoLoginHash'); $fields->removeByName('AutoLoginExpired'); $fields->removeByName('PasswordEncryption'); $fields->removeByName('Salt'); $fields->removeByName('PasswordExpiry'); $fields->removeByName('FailedLoginCount'); $fields->removeByName('LastViewed'); $fields->removeByName('LockedOutUntil'); $this->extend('updateMemberFormFields', $fields); return $fields; }
function getFrontendFields($param = null) { $fields = parent::getFrontendFields($param); $fields->replaceField("Method", new DropdownField("Method", _t("Shop.Shipping.Method", "%ShippingMethod%"), $this->methodFields(), $this->Method)); return $fields; }
/** * Returns the fields for the member form - used in the registration/profile module. * It should return fields that are editable by the admin and the logged-in user. * * @return FieldList Returns a {@link FieldList} containing the fields for * the member form. */ public function getMemberFormFields() { $fields = parent::getFrontendFields(); $fields->replaceField('Password', $password = new ConfirmedPasswordField('Password', $this->fieldLabel('Password'), null, null, (bool) $this->ID)); $password->setCanBeEmpty(true); $fields->replaceField('Locale', new DropdownField('Locale', $this->fieldLabel('Locale'), i18n::get_existing_translations())); $fields->removeByName(static::config()->hidden_fields); $fields->removeByName('FailedLoginCount'); $this->extend('updateMemberFormFields', $fields); return $fields; }
function getFrontendFields() { $fields = parent::getFrontendFields(); $fields->removeByName('AuthorID'); return $fields; }
/** * Returns the fields for the member form - used in the registration/profile module. * It should return fields that are editable by the admin and the logged-in user. * * @return FieldList Returns a {@link FieldList} containing the fields for * the member form. */ public function getMemberFormFields() { $fields = parent::getFrontendFields(); $fields->replaceField('Password', $this->getMemberPasswordField()); $fields->replaceField('Locale', new DropdownField('Locale', $this->fieldLabel('Locale'), i18n::get_existing_translations())); $fields->removeByName(static::config()->hidden_fields); $fields->removeByName('LastVisited'); $fields->removeByName('FailedLoginCount'); $this->extend('updateMemberFormFields', $fields); return $fields; }