Fix user profile page
This commit is contained in:
@@ -1,39 +1,43 @@
|
||||
@extends('layout.dashboard')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<i class="fa fa-user"></i> {{ Lang::get('cachet.dashboard.user') }}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@if($updated = Session::get('updated'))
|
||||
<div class='alert alert-{{ $updated ? "success" : "danger" }}'>
|
||||
@if($updated)
|
||||
<strong>Awesome.</strong> Profile updated.
|
||||
@else
|
||||
<strong>Whoops.</strong> Something went wrong when updating.
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="header">
|
||||
<span class='uppercase'>
|
||||
<i class="fa fa-user"></i> {{ Lang::get('cachet.dashboard.user') }}
|
||||
</span>
|
||||
</div>
|
||||
<div class='content-wrapper'>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@if($updated = Session::get('updated'))
|
||||
<div class='alert alert-{{ $updated ? "success" : "danger" }}'>
|
||||
@if($updated)
|
||||
<strong>Awesome.</strong> Profile updated.
|
||||
@else
|
||||
<strong>Whoops.</strong> Something went wrong when updating.
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form name='UserForm' class='form-vertical' role='form' action='/dashboard/user' method='POST'>
|
||||
<fieldset>
|
||||
<div class='form-group'>
|
||||
<label>Username</label>
|
||||
<input type='text' class='form-control' name='username' value='{{ Auth::user()->username }}' required />
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Email Address</label>
|
||||
<input type='email' class='form-control' name='email' value='{{ Auth::user()->email }}' required />
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Password</label>
|
||||
<input type='password' class='form-control' name='password' value='' />
|
||||
</div>
|
||||
</fieldset>
|
||||
<form name='UserForm' class='form-vertical' role='form' action='/dashboard/user' method='POST'>
|
||||
<fieldset>
|
||||
<div class='form-group'>
|
||||
<label>Username</label>
|
||||
<input type='text' class='form-control' name='username' value='{{ Auth::user()->username }}' required />
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Email Address</label>
|
||||
<input type='email' class='form-control' name='email' value='{{ Auth::user()->email }}' required />
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Password</label>
|
||||
<input type='password' class='form-control' name='password' value='' />
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Update profile</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Update profile</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
Reference in New Issue
Block a user