55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the 2amigos/yii2-usuario project.
|
|
*
|
|
* (c) 2amigOS! <http://2amigos.us/>
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
use yii\bootstrap\ActiveForm;
|
|
use yii\helpers\Html;
|
|
|
|
/*
|
|
* @var yii\web\View $this
|
|
* @var \Da\User\Model\User $user
|
|
* @var \Da\User\Model\Profile $profile
|
|
*/
|
|
|
|
?>
|
|
|
|
<?php $this->beginContent('@Da/User/resources/views/admin/update.php', ['user' => $user]) ?>
|
|
|
|
<?php $form = ActiveForm::begin(
|
|
[
|
|
'layout' => 'horizontal',
|
|
'enableAjaxValidation' => true,
|
|
'enableClientValidation' => false,
|
|
'fieldConfig' => [
|
|
'horizontalCssClasses' => [
|
|
'wrapper' => 'col-sm-9',
|
|
],
|
|
],
|
|
]
|
|
); ?>
|
|
|
|
<?= $form->field($profile, 'name') ?>
|
|
<?= $form->field($profile, 'public_email') ?>
|
|
<?= $form->field($profile, 'website') ?>
|
|
<?= $form->field($profile, 'location') ?>
|
|
<?= $form->field($profile, 'gravatar_email') ?>
|
|
<?= $form->field($profile, 'bio')->textarea() ?>
|
|
|
|
|
|
<div class="form-group">
|
|
<div class="col-lg-offset-3 col-lg-9">
|
|
<?= Html::submitButton(Yii::t('user', 'Update'), ['class' => 'btn btn-block btn-success']) ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
<?php $this->endContent() ?>
|