Exemplo n.º 1
0
echo Html::activeHiddenInput($model, 'parent');
?>
    <?php 
echo $form->field($model, 'cm_id')->dropDownList(ArrayHelper::map(Cm::find()->all(), 'id', 'name'), ['prompt' => Yii::t('app', 'Please select content model')])->hint(Yii::t('app', 'When selected ,can not modify'));
?>

    <?php 
echo $form->field($model, 'parent_txt')->textInput(['placeHolder' => Yii::t('app', 'Please input Node id or Node name to select') . Yii::t('app', 'When selected ,can not modify')]);
?>

    <?php 
echo $form->field($model, 'slug')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'workflow')->dropDownList(ArrayHelper::map(Workflow::find()->all(), 'id', 'name'), ['prompt' => Yii::t('app', 'Please select workflow')]);
?>

    <?php 
echo $form->field($model, 'tpl_index')->textInput(['maxlength' => true])->hint(Yii::t('app', 'Please fill the template name relative the site template,no need file extension'));
?>

    <?php 
echo $form->field($model, 'tpl_detail')->textInput(['maxlength' => true])->hint(Yii::t('app', 'Please fill the template name relative the site template,no need file extension'));
?>

    <?php 
//$form->field($model, 'status')->textInput()
?>

    <?php 
Exemplo n.º 2
0
 /**
  * Lists all Workflow models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => Workflow::find()]);
     $dataProvider2 = new ActiveDataProvider(['query' => WorkflowState::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider, 'dataProvider2' => $dataProvider2]);
 }