@extends('settings/settings')

@section('settings_content')
<h1>Benutzer</h1>
@if (Auth::user()->isAdmin())
<a class="btn btn-default"
   type="button"
   href="{!! route('settings.users/create') !!}">
    <span class="glyphicon glyphicon-plus"></span>
   Benutzer hinzuf&uuml;gen
</a>
@endif
<div class="table-responsive">
    <table class="table table-striped table-condensed">
        <thead>
            <tr>
                <th>Benutzername</th>
                <th>Administrator</th>
                <th>Aktionen</th>
            </tr>
        </thead>
        <tbody>
            @foreach ($users as $u)
            <tr>
                <td>
                    {!! link_to_route('settings.user/show', $u->username, array('user' => $u->username)) !!}
                </td>
                <td>
                    @if ($u->isAdmin())
                    <span class="glyphicon glyphicon-ok"></span>
                    @else
                    -
                    @endif
                </td>
                <td>
                    {!! link_to_route('settings.users/edit', 'bearbeiten', 
                                array('username' => $u->username)) !!}
                    @if($u->username != Auth::user()->username)
                        | {!! link_to_route('settings.users/delete', 'l&ouml;schen', array('user' => $u->username)) !!}
                    @endif
                </td>
            </tr>
            @endforeach
        </tbody>
    </table>
</div>
<!-- /.table-responsive -->
@stop
@extends('settings/settings')

@section('settings_content')
<h1>Benutzer</h1>
@if (Auth::user()->isAdmin())
<a class="btn btn-default"
   type="button"
   href="{!! route('settings.users/create') !!}">
    <span class="glyphicon glyphicon-plus"></span>
   Benutzer hinzuf&uuml;gen
</a>
@endif
<div class="table-responsive">
    <table class="table table-striped table-condensed">
        <thead>
            <tr>
                <th>Benutzername</th>
                <th>Administrator</th>
                <th>Aktionen</th>
            </tr>
        </thead>
        <tbody>
            @foreach ($users as $u)
            <tr>
                <td>
                    {!! link_to_route('settings.user/show', $u->username, array('user' => $u->username)) !!}
                </td>
                <td>
                    @if ($u->isAdmin())
                    <span class="glyphicon glyphicon-ok"></span>
                    @else
                    -
                    @endif
                </td>
                <td>
                    {!! link_to_route('settings.users/edit', 'bearbeiten',
                                array('user' => $u)) !!}
                    @if($u->username != Auth::user()->username)
                        | {!! link_to_route('settings.users/delete', 'l&ouml;schen', array('user' => $u->username)) !!}
                    @endif
                </td>
            </tr>
            @endforeach
        </tbody>
    </table>
</div>
<!-- /.table-responsive -->
@stop

Fix edit user route param
Fix edit user route param

Signed-off-by: Christoph Wurst <7abde52c298496fa169fb750f91f213a282142af@winzerhof-wurst.at>
