mint

login.php

Jun 23rd, 2012
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $this->pageTitle=Yii::app()->name . ' - Login';
  3. $this->breadcrumbs=array(
  4.     'Login',
  5. );
  6. ?>
  7.  
  8. <h1>Login</h1>
  9.  
  10. <p>Please fill out the following form with your login credentials:</p>
  11.  
  12. <div class="form">
  13. <?php $form=$this->beginWidget('CActiveForm', array(
  14.     'id'=>'login-form',
  15.     'enableClientValidation'=>true,
  16.     'clientOptions'=>array(
  17.         'validateOnSubmit'=>true,
  18.     ),
  19. )); ?>
  20.  
  21.     <p class="note">Fields with <span class="required">*</span> are required.</p>
  22.  
  23.     <div class="row">
  24.         <?php echo $form->labelEx($model,'username'); ?>
  25.         <?php echo $form->textField($model,'username'); ?>
  26.         <?php echo $form->error($model,'username'); ?>
  27.     </div>
  28.  
  29.     <div class="row">
  30.         <?php echo $form->labelEx($model,'password'); ?>
  31.         <?php echo $form->passwordField($model,'password'); ?>
  32.         <?php echo $form->error($model,'password'); ?>
  33.        
  34.        
  35.     </div>
  36.  
  37.     <div class="row rememberMe">
  38.         <?php echo $form->checkBox($model,'rememberMe'); ?>
  39.         <?php echo $form->label($model,'rememberMe'); ?>
  40.         <?php echo $form->error($model,'rememberMe'); ?>
  41.     </div>
  42.  
  43.     <div class="row buttons">
  44.         <?php echo CHtml::submitButton('Login'); ?>
  45.     </div>
  46.  
  47. <?php $this->endWidget(); ?>
  48. </div><!-- form -->
RAW Paste Data