/** * @return string */ function Field($properties = array()) { //Requirements::javascript($this->jquery_UI_JS_location); //Requirements::css($this->jquery_UI_CSS_location); Requirements::javascript('ecommerce/javascript/EcomBuyableSelectField.js'); Requirements::customScript($this->getJavascript(), "BuyableSelectField" . $this->id()); Requirements::themedCSS("BuyableSelectField", 'ecommerce'); return "<div class=\"fieldgroup\">" . "<div class=\"findBuyable fieldGroupInner\">" . $this->fieldFindBuyable->SmallFieldHolder() . "</div>" . "<div class=\"selectedBuyable fieldGroupInner\">" . $this->fieldSelectedBuyable->SmallFieldHolder() . "</div>" . "</div>"; }
/** * @return string */ function Field() { if (!$this->form->dataFieldByName("Version")) { user_error("You must have a Version field in your form"); } if (!$this->form->dataFieldByName("BuyableClassName")) { user_error("You must have a BuyableClassName field in your form"); } if (!$this->form->dataFieldByName("BuyableID")) { user_error("You must have a BuyableID field in your form."); } Requirements::javascript($this->jquery_UI_JS_location); Requirements::css($this->jquery_UI_CSS_location); Requirements::javascript('ecommerce/javascript/EcomBuyableSelectField.js'); Requirements::customScript($this->getJavascript(), "BuyableSelectField" . $this->id()); Requirements::themedCSS("BuyableSelectField"); return "<div class=\"fieldgroup\">" . "<div class=\"findBuyable fieldGroupInner\">" . $this->fieldFindBuyable->SmallFieldHolder() . "</div>" . "<div class=\"selectedBuyable fieldGroupInner\">" . $this->fieldSelectedBuyable->SmallFieldHolder() . "</div>" . "</div>"; }
/** * @param array * @return HTMLText */ public function Field($properties = array()) { return DBField::create_field('HTMLText', "<div class=\"fieldgroup\">" . "<div class=\"fieldgroup-field\">" . $this->fieldCurrency->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroup-field\">" . $this->fieldAmount->SmallFieldHolder() . "</div>" . "</div>"); }
/** * @return string */ public function Field($properties = array()) { return "<div class=\"fieldgroup\">" . "<div class=\"fieldgroupField\">" . $this->fieldCurrency->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroupField\">" . $this->fieldAmount->SmallFieldHolder() . "</div>" . "</div>"; }
/** * @return string */ function Field() { return "<div class=\"fieldgroup\">" . "<div class=\"fieldgroupField\">" . $this->fieldCurrency->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroupField\">" . $this->fieldAmount->SmallFieldHolder() . "</div>" . "</div>"; }
/** * Generates the small field holder for the field * @param {array} $properties Properties to add to the field holder * @return {string} */ public function SmallFieldHolder($properties = null) { if (!empty($this->_link) && !empty($this->_label)) { return parent::SmallFieldHolder($properties); } }
/** * @return string */ public function Field($properties = array()) { Requirements::javascript(self::$module_dir . '/js/LinkFormField.js'); Requirements::css(self::$module_dir . '/css/linkfield.css'); return "<div class=\"fieldgroup LinkFormField \">" . "<div class=\"fieldgroupField LinkFormFieldTitle\">" . $this->fieldTitle->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroupField LinkFormFieldLinkmode\">" . $this->fieldLinkmode->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroupField LinkFormFieldPageID\">" . $this->fieldPageID->SmallFieldHolder() . '<label class="right">(↑ Select internal page to link to (click again to unset))</label>' . "</div>" . "<div class=\"fieldgroupField LinkFormFieldCustomURL\">" . $this->fieldCustomURL->SmallFieldHolder() . '<label class="right">(↑ Enter external URL)</label>' . "</div>" . "</div>"; }
/** * @return string */ public function Field($properties = array()) { Requirements::javascript(self::$module_dir . '/js/LinkFormField.js'); return "<div class=\"fieldgroup LinkFormField \">" . "<div class=\"fieldgroupField LinkFormFieldPageID\">" . $this->fieldPageID->SmallFieldHolder() . "</div>" . "<div class=\"fieldgroupField LinkFormFieldCustomURL\">" . $this->fieldCustomURL->SmallFieldHolder() . "</div>" . "</div>"; }