/**
  * Renders the setting as a radio list.
  * @return A string containing the element's content.
  */
 protected function renderThemeContent()
 {
     $gameLevel = GameLevel::resolveByTypeAndPerson(GameLevel::TYPE_GENERAL, Yii::app()->user->userModel);
     $content = ZurmoHtml::tag('h3', array(), Zurmo::t('Core', 'Theme'));
     $content .= ZurmoHtml::radioButtonList($this->getEditableInputName(KanbanBoard::SELECTED_THEME), $this->model->getKanbanBoard()->getSelectedTheme(), $this->resolveThemeColorNamesAndLabelsForLocking($gameLevel), $this->getEditableThemeHtmlOptions(), array(), $this->resolveDataHtmlOptions($gameLevel));
     return $content;
 }
 /**
  * Renders the setting as a radio list.  The second radio option also has a dropdown of available groups
  * as part of the label.
  * @return A string containing the element's content.
  */
 protected function renderControlEditable()
 {
     $this->assertModelIsValid();
     list($attributeName, $relationAttributeName) = $this->resolveAttributeNameAndRelatedAttributes();
     list($data, $dataSelectOption) = $this->resolveData();
     $content = ZurmoHtml::radioButtonList($this->getEditableInputName($attributeName, $relationAttributeName), $this->resolveSelectedType(), $data, $this->getEditableHtmlOptions(), $dataSelectOption);
     return $content;
 }
Ejemplo n.º 3
0
 /**
  * Renders the setting as a radio list.
  * @return A string containing the element's content.
  */
 protected function renderThemeContent()
 {
     $content = ZurmoHtml::tag('h3', array(), Zurmo::t('Core', 'Theme'));
     $content .= ZurmoHtml::radioButtonList($this->getEditableInputName(KanbanBoard::SELECTED_THEME), $this->model->getKanbanBoard()->getSelectedTheme(), $this->model->getKanbanBoard()->getThemeNamesAndLabels(), $this->getEditableThemeHtmlOptions());
     return $content;
 }
 public static function renderStatusButtonsContent(RedBeanModel $model)
 {
     $content = ZurmoHtml::radioButtonList(static::getRadioButtonListName($model->id), static::resolveSelectedRadioButtonListOption($model), static::getDropDownArray(), static::getRadioButtonListHtmlOptions($model));
     return ZurmoHtml::tag('div', array('class' => 'switch'), $content);
 }