| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * Author: lf
- * Blog: https://blog.feehi.com
- * Email: job@feehi.com
- * Created at: 2016-03-21 14:35
- */
- /**
- * @var $this yii\web\View
- * @var $model common\models\FriendlyLink
- */
- use backend\widgets\ActiveForm;
- use common\libs\Constants;
- $this->title = "Friendly Links";
- ?>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox">
- <?= $this->render('/widgets/_ibox-title') ?>
- <div class="ibox-content">
- <?php $form = ActiveForm::begin([
- 'options' => [
- 'enctype' => 'multipart/form-data',
- 'class' => 'form-horizontal'
- ]
- ]); ?>
- <div class="hr-line-dashed"></div>
- <?= $form->field($model, 'name')->textInput(['maxlength' => 64]) ?>
- <div class="hr-line-dashed"></div>
- <?= $form->field($model, 'image')->imgInput(['style' => "max-width:200px;max-height:200px"]) ?>
- <div class="hr-line-dashed"></div>
- <?= $form->field($model, 'url')->textInput(['maxlength' => 512]) ?>
- <div class="hr-line-dashed"></div>
- <?= $form->field($model, 'sort')->textInput(['maxlength' => 64]) ?>
- <div class="hr-line-dashed"></div>
- <?= $form->field($model, 'target')->radioList(Constants::getTargetOpenMethod()) ?>
- <div class="hr-line-dashed"></div>
- <?= $form->field($model, 'status')->radioList(Constants::getYesNoItems()) ?>
- <?= $form->defaultButtons() ?>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
- </div>
- </div>
|