{{ csrf_field() }}
<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title"></h3>
    </div>

    <div class="box-body">
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label for="name">Nome:</label>
                    <input type="text" name="name" class="form-control" value="{{ old('name') }}">
                </div>                
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label for="email">Email:</label>
                    <input type="text" name="email" class="form-control" value="{{ old('email') }}">
                </div>                
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label for="password">Password:</label> (lasciare vuoto per non cambiarla)
                    <input type="text" name="password" class="form-control" value="{{ old('password', '') }}">
                </div>                
            </div>
        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label for="level">Livello:</label>
                    {!! Form::select('level', [0 => 'Amministratore', 1 => 'Autore'] , null, array('class' => 'form-control')) !!}
                </div>                
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label for="disabled">Disabilitato:</label><br>
                    <input type="checkbox" name="disabled" value="on" {{ old('disabled') ? 'checked' : '' }}>
                </div>                
            </div>
        </div>   

    </div>

    <div class="box-footer">
        @if(Auth::user()->only_read == false)
            <button type="submit" class="btn btn-success">{{ $submit_text }}</button>
        @endif
        {!! link_to_route('users.index', 'Annulla', null, array('class' => 'btn btn-info')) !!}
    </div>
</div>