Files
cachet-docker/app/views/dashboard/team/edit.blade.php
2015-01-05 02:23:59 -06:00

50 lines
2.1 KiB
PHP

@extends('layout.dashboard')
@section('content')
<div class="header">
<div class="sidebar-toggler visible-xs">
<i class="icon ion-navicon"></i>
</div>
<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