index.php 789 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $searchModel app\models\ProfileSearch */
  6. /* @var $dataProvider yii\data\ActiveDataProvider */
  7. $this->title = Yii::t('app', 'Profile');
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="profile-index well">
  11. <h1><?= Html::encode($this->title) ?></h1>
  12. <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  13. <?php $form = ActiveForm::begin(); ?>
  14. <?= $form->field($model, 'name') ?>
  15. <div class="form-group">
  16. <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  17. </div>
  18. <?php ActiveForm::end(); ?>
  19. </div>