fieldElements() public static méthode

public static fieldElements ( )
Exemple #1
1
 /**
  * @return string
  */
 public function renderConfigForm(ActiveForm $activeForm)
 {
     echo $activeForm->fieldSelect($this, 'fieldElement', \skeeks\cms\relatedProperties\propertyTypes\PropertyTypeList::fieldElements());
     echo \skeeks\cms\modules\admin\widgets\RelatedModelsGrid::widget(['label' => \Yii::t('skeeks/cms', "Values for list"), 'hint' => \Yii::t('skeeks/cms', "You can snap to the element number of properties, and set the value to them"), 'parentModel' => $this->property, 'relation' => ['property_id' => 'id'], 'controllerRoute' => $this->enumRoute, 'gridViewOptions' => ['sortable' => true, 'columns' => [['attribute' => 'id', 'enableSorting' => false], ['attribute' => 'code', 'enableSorting' => false], ['attribute' => 'value', 'enableSorting' => false], ['attribute' => 'priority', 'enableSorting' => false], ['class' => \skeeks\cms\grid\BooleanColumn::className(), 'attribute' => 'def', 'enableSorting' => false]]]]);
 }
<?php

/**
 * @author Semenov Alexander <*****@*****.**>
 * @link http://skeeks.com/
 * @copyright 2010 SkeekS (СкикС)
 * @date 09.06.2015
 */
use skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab as ActiveForm;
$form = ActiveForm::begin();
?>
    <?php 
echo $form->fieldSelect($model, 'fieldElement', \skeeks\cms\relatedProperties\propertyTypes\PropertyTypeList::fieldElements());
?>
    <?php 
echo $form->buttonsStandart($model);
ActiveForm::end();