Skip to content

Instantly share code, notes, and snippets.

@jamband
Last active September 28, 2015 10:38
Show Gist options
  • Save jamband/1426159 to your computer and use it in GitHub Desktop.
Save jamband/1426159 to your computer and use it in GitHub Desktop.
<?php $this->pageTitle = Yii::app()->name . ' - Login'; ?>
<?php $this->breadcrumbs = array('Login'); ?>
<div class="page-header">
<h3>
Login
<small>登録済みの方は、こちらからログインしてください</small>
</h3>
</div><!-- /.page-header -->
<div class="row">
<div class="span11">
<div class="form-stacked">
<?php $form = $this->beginWidget('ext.bootstrap.widgets.BootActiveForm', array(
'id' => 'login-form',
'ebableClientValidation' => true,
'clientOoptions' => array(
'validateOnSubmit' => true,
),
)); ?>
<?php echo $form->textFieldBlock($model, 'username'); ?>
<?php echo $form->passwordFieldBlock($model, 'password'); ?>
<?php echo $form->checkBoxBlock($model, 'remeberMe'); ?>
<div class="actions">
<?php echo CHtml::submitButton('ログイン', array('class' => 'btn primary')); ?>
</div><!-- /.actions -->
<?php $this->endWidget(); ?>
</div><!-- ./form-stacked -->
</div><!-- /.span11 -->
<div class="span5">
<a href="<?php echo $this->createUrl('/user/register'); ?>">新規登録の方はこちら</a><br />
<a href="<?php echo $this->createUrl('/user/forgotPassword'); ?>">パスワードを忘れた場合はこちら</a>
</div><!-- /span5 -->
</div><!-- /.row -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment