Edit Server
{!! Form::model($server, ['method' => 'PATCH', 'route' => ['servers.update', $server->slug]]) !!}
{!! Form::text('name', null, ['placeholder' => 'Name', 'class' => 'form-control', 'id' => 'name']) !!} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::text('host', null, ['placeholder' => '192.168.88.1', 'class' => 'form-control', 'id' => 'host']) !!} @if ($errors->has('host')) {{ $errors->first('host') }} @endif
{!! Form::text('username', null, ['placeholder' => 'admin', 'class' => 'form-control', 'id' => 'username']) !!} @if ($errors->has('username')) {{ $errors->first('username') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
{!! Form::text('port', null, ['placeholder' => 'Default (8728)', 'class' => 'form-control', 'id' => 'port']) !!} @if ($errors->has('port')) {{ $errors->first('port') }} @endif
@if ($server->ros_version_id)
@if ($server->ros_version_id == 1) {{ __('autoisolir.placeholder.select-version-67') }} @elseif ($server->ros_version_id == 2) {{ __('autoisolir.placeholder.select-version-710') }} @endif
@else
@if ($errors->has('ros_version_id')) {{ $errors->first('ros_version_id') }} @endif
@endif
{!! Form::close() !!}
@section('custom_scripts') @endsection