Permalink
Browse files

Removed extra files and protected sync and delete actions

  • Loading branch information...
1 parent 5ebd1a0 commit a58d7f007706e7852c33d3cf2c8a14936443c553 @chetan1 committed Aug 8, 2012
Showing with 2 additions and 100 deletions.
  1. +2 −2 protected/controllers/SiteController.php
  2. +0 −55 protected/views/site/login.php
  3. +0 −43 protected/views/site/password.php
@@ -81,12 +81,12 @@ public function actionContact()
$this->render('contact',array('model'=>$model));
}
- public function actionSync()
+ protected function actionSync()
{
Prs::sync();
}
- public function actionEmpty()
+ protected function actionEmpty()
{
$popit = Prs::init();
$popit->emptyInstance();
@@ -1,55 +0,0 @@
-<?php
-$this->pageTitle = Yii::app()->name . ' - Login';
-$this->breadcrumbs = array(
- 'Login',
-);
-?>
-
-<h1>Login</h1><br />
-
-<p>Please fill out the following form with your login credentials:</p><br />
-<? if($error): ?>
- <div class="alert alert-error">
- Please check your email and password.
- </div>
-<? endif; ?>
-<div class="form">
- <?php
- $form = $this->beginWidget('bootstrap.widgets.BootActiveForm', array(
- 'id' => 'login-form',
- 'type' => 'horizontal',
- 'htmlOptions' => array('class' => 'well'),
- 'enableClientValidation' => true,
- 'clientOptions' => array(
- 'validateOnSubmit' => true,
- ),
- ));
- ?>
-
- <p class="note">Fields with <span class="required">*</span> are required.</p>
-
- <?php echo $form->textFieldRow($model, 'email', array('prepend'=>'@')); ?>
- <?php echo $form->passwordFieldRow($model, 'password'); ?>
- <?php echo $form->checkBoxRow($model, 'rememberMe'); ?>
- <?php echo CHtml::htmlButton('<i class="icon-ok icon-white"></i> Login', array('class' => 'btn btn-primary', 'type' => 'submit')); ?>
-
- <?php $this->endWidget(); ?>
-</div><!-- form -->
-<?php
- Yii::app()->clientScript->registerScript('forgot-password', "
- $('#forgotPassword').click(function(){
- var email = $('#LoginForm_email').val();
- if(email == '')
- {
- alert('Please enter your email id')
- $('#LoginForm_email').focus();
- }
- else
- {
- var url = '" . $this->createAbsoluteUrl('site/login', array('forgot' => 1, 'email' => '')) . "' + email;
- document.location = url;
- }
- });
-
-", CClientScript::POS_READY);
-?>
@@ -1,43 +0,0 @@
-<?php
-$this->pageTitle = Yii::app()->name . ' - Change Password';
-$this->breadcrumbs = array(
- 'Change Password',
-);
-?>
-
-<h1>Change Password</h1><br />
-<form class="well form-horizontal span6" method="post">
- <p>Please fill out the following form with your old password and new password:</p>
- <? if(count($error)): ?>
- <div class="alert alert-error">
- <? foreach($error as $e): ?>
- <li><?= $e ?></li>
- <? endforeach; ?>
- </div>
- <? elseif(count($_POST)>0): ?>
- <div class="alert alert-success">
- Success. Your password has been changed.
- </div>
- <? endif; ?><br />
- <div class="control-group">
- <label class="control-label">Old Password</label>
- <div class="controls">
- <input type="password" class="input-xlarge" name="old">
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">New Password</label>
- <div class="controls">
- <input type="password" class="input-xlarge" name="new">
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">Confirm Password</label>
- <div class="controls">
- <input type="password" class="input-xlarge" name="confirm">
- </div>
- </div><br />
- <div class="offset1">
- <button type="submit" class="btn btn-inverse"><i class="icon-ok icon-white"></i> Change Password</button>
- </div><br />
-</form>

0 comments on commit a58d7f0

Please sign in to comment.