</div> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <?php echo $form = new Form(); ?> <?php echo $form->label('Username or Email')->inputText($model, 'Username'); ?> <?php echo $form->password($model, 'Password'); ?> <?php echo $form->checkBox($model, 'rememberMe'); ?> <p class="text-right"> <?php echo BaseHtml::a('Forgot your password?', ['reset-password']); ?> <br /> <?php echo BaseHtml::a('Have no an account?', ['register']); ?> </p> <?php echo $form->submitButton('Login'); ?> <?php echo $form->end();
<div class="main-title"> <h1><?php echo $this->title; ?> </h1> </div> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <?php echo $form = new Form(); ?> <?php echo $form->inputText($model, 'Username'); ?> <?php echo $form->inputText($model, 'Email'); ?> <?php echo $form->checkBox($model, 'Activated'); ?> <?php echo $form->select($model, 'GroupID', $model->dataRoles); ?> <?php echo $form->submitButton('Update'); ?> </div> </div>