fitness-web/frontend/views/account/select.php
2015-10-30 09:28:58 +01:00

26 lines
642 B
PHP

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use frontend\components\HtmlHelper;
/* @var $this yii\web\View */
/* @var $model common\models\Account */
/* @var $form yii\widgets\ActiveForm */
?>
<h1><?php echo Yii::t('frontend/account','Select account!')?></h1>
<div class="account-form">
<?php $form = ActiveForm::begin(); ?>
<?php echo $form->field($model, 'id_account')->dropDownList(HtmlHelper::mkAccountOptions($accounts)) ?>
<div class="form-group">
<?= Html::submitButton( Yii::t('frontend/account', 'Update'), ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>