A free open source IT asset/license management system
Replace Form::text in certain views
Marcus Moore68988524d673
diff --git a/resources/views/settings/saml.blade.php b/resources/views/settings/saml.blade.phpindex 9349023fc8..81c40bb307 100644--- a/resources/views/settings/saml.blade.php+++ b/resources/views/settings/saml.blade.php@@ -70,15 +70,15 @@<!-- SAML SP Details --><!-- SAML SP Entity ID -->{{ Form::label('saml_sp_entitiyid', trans('admin/settings/general.saml_sp_entityid')) }}- {{ Form::text('saml_sp_entitiyid', config('app.url'), ['class' => 'form-control', 'readonly']) }}+ <input class="form-control" readonly="" name="saml_sp_entitiyid" type="text" value="{{ config('app.url') }}" id="saml_sp_entitiyid"><br><!-- SAML SP ACS -->{{ Form::label('saml_sp_acs_url', trans('admin/settings/general.saml_sp_acs_url')) }}- {{ Form::text('saml_sp_acs_url', route('saml.acs'), ['class' => 'form-control', 'readonly']) }}+ <input class="form-control" readonly="" name="saml_sp_acs_url" type="text" value="{{ route('saml.acs') }}" id="saml_sp_acs_url"><br><!-- SAML SP SLS -->{{ Form::label('saml_sp_sls_url', trans('admin/settings/general.saml_sp_sls_url')) }}- {{ Form::text('saml_sp_sls_url', route('saml.sls'), ['class' => 'form-control', 'readonly']) }}+ <input class="form-control" readonly="" name="saml_sp_sls_url" type="text" value="{{ route('saml.sls') }}" id="saml_sp_sls_url"><br><!-- SAML SP Certificate -->@if (!empty($setting->saml_sp_x509cert))@@ -88,7 +88,7 @@@endif<!-- SAML SP Metadata URL -->{{ Form::label('saml_sp_metadata_url', trans('admin/settings/general.saml_sp_metadata_url')) }}- {{ Form::text('saml_sp_metadata_url', route('saml.metadata'), ['class' => 'form-control', 'readonly']) }}+ <input class="form-control" readonly="" name="saml_sp_metadata_url" type="text" value="{{ route('saml.metadata') }}" id="saml_sp_metadata_url"><br><p class="help-block"><a href="{{ route('saml.metadata') }}" target="_blank" class="btn btn-default" style="margin-right: 5px;">{{ trans('admin/settings/general.saml_download') }}</a>@@ -123,7 +123,7 @@{{ Form::label('saml_attr_mapping_username', trans('admin/settings/general.saml_attr_mapping_username')) }}</div><div class="col-md-9">- {{ Form::text('saml_attr_mapping_username', old('saml_attr_mapping_username', $setting->saml_attr_mapping_username), ['class' => 'form-control','placeholder' => '', $setting->demoMode]) }}+ <input class="form-control" name="saml_attr_mapping_username" type="text" id="saml_attr_mapping_username" value="{{ old('saml_attr_mapping_username', $setting->saml_attr_mapping_username) }}"><p class="help-block">{{ trans('admin/settings/general.saml_attr_mapping_username_help') }}</p>{!! $errors->first('saml_attr_mapping_username', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}</div>diff --git a/resources/views/setup/user.blade.php b/resources/views/setup/user.blade.phpindex b35060b01f..3c6e5cd66a 100644--- a/resources/views/setup/user.blade.php+++ b/resources/views/setup/user.blade.php@@ -21,7 +21,7 @@<label for="site_name">{{ trans('general.site_name') }}</label>- {{ Form::text('site_name', old('site_name'), array('class' => 'form-control','placeholder' => 'Snipe-IT Asset Management', 'required' => true)) }}+ <input class="form-control" placeholder="Snipe-IT Asset Management" required="" name="site_name" type="text" value="{{ old('site_name') }}">{!! $errors->first('site_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}</div>@@ -41,7 +41,7 @@<!-- Currency --><div class="form-group col-lg-6{{$errors->has('default_currency') ? ' error' : ''}}">{{ Form::label('default_currency', trans('admin/settings/general.default_currency')) }}- {{ Form::text('default_currency', old('default_currency'), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;')) }}+ <input class="form-control" placeholder="USD" maxlength="3" style="width: 60px;" name="default_currency" type="text" id="default_currency" value="{{ old('default_currency') }}">{!! $errors->first('default_currency', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}</div>@@ -72,14 +72,14 @@<div class="form-group col-lg-6{{ $errors->has('auto_increment_prefix') ? ' error' : '' }}">{{ Form::label('auto_increment_prefix', trans('admin/settings/general.auto_increment_prefix')) }}- {{ Form::text('auto_increment_prefix', old('auto_increment_prefix'), array('class' => 'form-control')) }}+ <input class="form-control" name="auto_increment_prefix" type="text" id="auto_increment_prefix" value="{{ old('auto_increment_prefix') }}">{!! $errors->first('auto_increment_prefix', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}</div><div class="form-group col-lg-6{{ $errors->has('zerofill_count') ? ' error' : '' }}">{{ Form::label('zerofill_count', trans('admin/settings/general.zerofill_count')) }}- {{ Form::text('zerofill_count', old('zerofill_count', 5), array('class' => 'form-control')) }}+ <input class="form-control" name="zerofill_count" type="text" value="{{ old('zerofill_count', 5) }}" id="zerofill_count">{!! $errors->first('zerofill_count', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}</div>@@ -90,7 +90,7 @@<div class="row"><div class="form-group col-lg-6 required {{ $errors->has('email_domain') ? 'error' : '' }}">{{ Form::label('email_domain', trans('general.email_domain')) }}- {{ Form::text('email_domain', old('email_domain'), array('class' => 'form-control','placeholder' => 'example.com','required' => true)) }}+ <input class="form-control" placeholder="example.com" required="" name="email_domain" type="text" id="email_domain" value="{{ old('email_domain') }}"><span class="help-block">{{ trans('general.email_domain_help') }}</span>{!! $errors->first('email_domain', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}@@ -109,14 +109,14 @@<!-- first name --><div class="form-group col-lg-6">{{ Form::label('first_name', trans('general.first_name'), 'required') }}- {{ Form::text('first_name', old('first_name'), array('class' => 'form-control','placeholder' => 'Jane', 'required' => true)) }}+ <input class="form-control" placeholder="Jane" required="" name="first_name" type="text" id="first_name" value="{{ old('first_name') }}">{!! $errors->first('first_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}</div><!-- last name --><div class="form-group col-lg-6 required {{ $errors->has('last_name') ? 'error' : '' }}">{{ Form::label('last_name', trans('general.last_name')) }}- {{ Form::text('last_name', old('last_name'), array('class' => 'form-control','placeholder' => 'Smith', 'required' => true)) }}+ <input class="form-control" placeholder="Smith" required="" name="last_name" type="text" id="last_name" value="{{ old('last_name') }}">{!! $errors->first('last_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}</div></div>@@ -132,7 +132,7 @@<!-- username --><div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'username')) ? ' required' : '' }} {{ $errors->has('username') ? 'error' : '' }}">{{ Form::label('username', trans('admin/users/table.username')) }}- {{ Form::text('username', old('username'), array('class' => 'form-control','placeholder' => 'jsmith', 'required' => true)) }}+ <input class="form-control" placeholder="jsmith" required="" name="username" type="text" id="username" value="{{ old('username') }}">{!! $errors->first('username', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}</div></div>