@extends('layout')

@section('title')
<title>Welcome to openstackId - Server Admin - Users</title>
@stop

@section('content')
@include('menu',array('is_oauth2_admin' => $is_oauth2_admin, 'is_openstackid_admin' => $is_openstackid_admin))
<legend>Locked Users</legend>
<div class="row">
    <div class="col-md-12">
        <table id="users-table" class="table table-hover table-condensed">
            <thead>
            <tr>
                <th>User</th>
                <th>Email</th>
                <th>&nbsp;</th>
            </tr>
            </thead>
            <tbody id="body-locked-users">
            @foreach($users as $user)
            <tr id="{{$user->id}}">
                <td>
                    <div style="min-width: 400px">
                        {{ $user->getFullName() }}
                    </div>
                </td>
                <td>
                    <div style="min-width: 100px">
                        {{ $user->getEmail() }}
                    </div>
                </td>
                <td>
                    {{ HTML::link(URL::action("UserApiController@unlock", array("id"=>$user->id)),'Unlock',array('data-user-id'=>$user->id,'class'=>'btn btn-default btn-md active  unlock-user','title'=>'Unlocks given user')) }}
                </td>
            </tr>
            @endforeach
            </tbody>
        </table>
        <span id="users-info" class="label label-info">** There are not any locked Users.</span>
    </div>
</div>
@stop
@section('scripts')
{{ HTML::script('assets/js/admin/users.js') }}
@append