Improvements to field views and minor updates

This commit is contained in:
Deon George
2016-08-25 23:24:44 +10:00
parent 2b48dde8f7
commit 68d96ca85f
14 changed files with 86 additions and 47 deletions

View File

@@ -1,12 +1,14 @@
<fieldset>
<legend>Reset Password</legend>
<div class="col-md-12">
<div class="row">
<fieldset class="col-md-5">
<legend>Reset Password</legend>
<?php echo Form::input('password','',array('label'=>'Password','divclass'=>'col-md-3','placeholder'=>'Login Password','type'=>'password','required','id'=>'password','data-minlength'=>8)); ?>
<?php echo Form::input('password_confirm','',array('label'=>'Confirm','divclass'=>'col-md-3','placeholder'=>'Confirm Password','type'=>'password','required','data-match'=>'#password','data-match-error'=>'Whoops, these don\'t match!')); ?>
</fieldset>
<div class="row">
<div class="col-md-offset-1">
<button type="submit" class="btn btn-primary">Save changes</button>
<?php
echo View::factory('field/password')->set('data',['field'=>'password','value'=>'','text'=>'Password','class'=>'col-md-9','classlabelnum'=>'3','attr'=>['required'=>'required','data-minlength'=>8]]);
echo View::factory('field/password')->set('data',['field'=>'password_confirm','value'=>'','text'=>'Confirm ','class'=>'col-md-9','classlabelnum'=>'3','attr'=>['required'=>'required','data-match'=>'#password_label','data-match-error'=>'They dont match!']]);
?>
</fieldset>
</div>
<?php echo View::factory('field/submit'); ?>
</div>