Files
cachet-docker/app/views/dashboard/team/edit.blade.php
James Brooks b6596e722d Team members
Signed-off-by: Graham Campbell <graham@mineuk.com>
2015-01-04 19:06:08 +00:00

47 lines
2.0 KiB
PHP

@extends('layout.dashboard')
@section('content')
<div class="header">
<span class='uppercase'>
<i class="ion ion-person"></i> {{ trans('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/team/{{ $user->id }}' method='POST'>
<fieldset>
<div class='form-group'>
<label>Username</label>
<input type='text' class='form-control' name='username' value='{{ $user->username }}' required />
</div>
<div class='form-group'>
<label>Email Address</label>
<input type='email' class='form-control' name='email' value='{{ $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-success">Update profile</button>
@if(Auth::user()->isAdmin)
<a class='btn btn-danger' href='/dashboard/user/{{ $user->id }}/api/regen'>Revoke API Key</a>
@endif
</form>
</div>
</div>
</div>
@stop