<?php
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use home\models\UserPortlet;
use home\models\Portlet;

$attrLabels = $model->attributeLabels();
/* @var $this yii\web\View */
?>

<?php $form = ActiveForm::begin([
    'id' => 'main-form',
    'options' => ['class' => 'informationform f14'],
    'action' => $action,
    'fieldConfig' => [
        'options' => ['tag' => 'td'],
        'template' => "{input}{hint}{error}",
        'errorOptions' => ["class" => "error" ]
    ]
]); ?>
    <table cellpadding="0" cellspacing="10" width="100%">
        <tbody>

            <tr>
                <td align="right" width="80"><?= $model->getAttributeLabel('title') ?>：</td>
                <?= $form->field($model, 'title')->textInput(['class' => 'form-control']) ?>
                <td><span class="redstar">*</span></td>
            </tr>
            <tr>
                <td align="right" width="80"><?= $model->getAttributeLabel('portlet') ?>：</td>
                <?= $form->field($model, 'portlet')->dropDownList(Portlet::getDropDownList(), ['options' => Portlet::getDropDownOptionDesc()]) ?>
                <td><span class="redstar">*</span></td>
            </tr>
            <tr>
                <td align="right" width="80">描述：</td>
                <td id="portlet-desc">
                </td>
                <td></td>
            </tr>

        </tbody>
    </table>
<?php ActiveForm::end(); ?>
