Small layout changes.

This commit is contained in:
Sander Dorigo
2014-10-13 20:47:36 +02:00
parent 733b6d7eb7
commit 073da8fb2a
3 changed files with 45 additions and 40 deletions

View File

@@ -22,9 +22,9 @@ class ProfileController extends BaseController
*/ */
public function index() public function index()
{ {
View::share('title','Profile'); View::share('title', 'Profile');
View::share('subTitle',Auth::user()->email); View::share('subTitle', Auth::user()->email);
View::share('mainTitleIcon','fa-user'); View::share('mainTitleIcon', 'fa-user');
return View::make('profile.index'); return View::make('profile.index');
} }
@@ -33,9 +33,9 @@ class ProfileController extends BaseController
*/ */
public function changePassword() public function changePassword()
{ {
View::share('title',Auth::user()->email); View::share('title', Auth::user()->email);
View::share('subTitle','Change your password'); View::share('subTitle', 'Change your password');
View::share('mainTitleIcon','fa-user'); View::share('mainTitleIcon', 'fa-user');
return View::make('profile.change-password'); return View::make('profile.change-password');
} }

View File

@@ -1,15 +1,12 @@
@extends('layouts.default') @extends('layouts.default')
@section('content') @section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<p class="text-info">
Use this extremely obvious form to change your password.
</p>
</div>
</div>
<div class="row"> <div class="row">
<div class="col-lg-6 col-md-12 col-sm-12"> <div class="col-lg-6 col-md-12 col-sm-12">
<div class="panel panel-primary">
<div class="panel-heading">
Change your password
</div>
<div class="panel-body">
{{Form::open(['class' => 'form-horizontal'])}} {{Form::open(['class' => 'form-horizontal'])}}
<div class="form-group"> <div class="form-group">
<label for="inputOldPassword" class="col-sm-4 control-label">Old password</label> <label for="inputOldPassword" class="col-sm-4 control-label">Old password</label>
@@ -37,7 +34,8 @@
</div> </div>
</div> </div>
{{Form::close()}} {{Form::close()}}
</div>
</div>
</div> </div>
</div> </div>
@stop @stop

View File

@@ -1,8 +1,15 @@
@extends('layouts.default') @extends('layouts.default')
@section('content') @section('content')
<div class="row"> <div class="row">
<div class="col-lg-12 col-md-12 col-sm-12"> <div class="col-lg-6 col-md-12 col-sm-12">
<p class="lead"><a href="{{route('change-password')}}">Change your password</a></p> <div class="panel panel-primary">
<div class="panel-heading">
Options
</div>
<div class="panel-body">
<a href="{{route('change-password')}}">Change your password</a>
</div>
</div>
</div> </div>
</div> </div>
@stop @stop