diff --git a/resources/lang/en/general.php b/resources/lang/en/general.php index 0676cf9e99..ee7287515f 100644 --- a/resources/lang/en/general.php +++ b/resources/lang/en/general.php @@ -136,7 +136,7 @@ 'licenses' => 'Licenses', 'list_all' => 'List All', 'loading' => 'Loading', - 'lock_passwords' => 'This field cannot be edited in this installation.', + 'lock_passwords' => 'This field value will not be saved in a demo installation.', 'feature_disabled' => 'This feature has been disabled for the demo installation.', 'location' => 'Location', 'locations' => 'Locations', diff --git a/resources/views/partials/forms/edit/uploadLogo.blade.php b/resources/views/partials/forms/edit/uploadLogo.blade.php index 2a9c7dce01..633c1efd37 100644 --- a/resources/views/partials/forms/edit/uploadLogo.blade.php +++ b/resources/views/partials/forms/edit/uploadLogo.blade.php @@ -14,6 +14,10 @@
{{ $helpBlock }}
+ + @if (config('app.lock_passwords')===true) +{{ trans('general.feature_disabled') }}
+ @endif {!! $errors->first($logoVariable, ':message') !!} diff --git a/resources/views/settings/branding.blade.php b/resources/views/settings/branding.blade.php index 15fa1266dc..b739e3049b 100644 --- a/resources/views/settings/branding.blade.php +++ b/resources/views/settings/branding.blade.php @@ -49,6 +49,7 @@{{ trans('general.feature_disabled') }}
@else {{ Form::text('site_name', Request::old('site_name', $setting->site_name), array('class' => 'form-control','placeholder' => 'Snipe-IT Asset Management', 'data-validation' => 'required')) }} @@ -170,7 +171,7 @@ @if (config('app.lock_passwords')===true) {{ Form::textarea('custom_css', old('custom_css', $setting->custom_css), array('class' => 'form-control','placeholder' => 'Add your custom CSS','disabled'=>'disabled', 'aria-label'=>'custom_css')) }} {!! $errors->first('custom_css', ' ') !!} -{{ trans('general.lock_passwords') }}
+{{ trans('general.feature_disabled') }}
@else {{ Form::textarea('custom_css', old('custom_css', $setting->custom_css), array('class' => 'form-control','placeholder' => 'Add your custom CSS', 'aria-label'=>'custom_css')) }} {!! $errors->first('custom_css', ' ') !!} @@ -188,6 +189,7 @@{{ trans('general.feature_disabled') }}
@else {!! Form::select('support_footer', array('on'=>'Enabled','off'=>'Disabled','admin'=>'Superadmin Only'), Request::old('support_footer', $setting->support_footer), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!} @endif @@ -206,6 +208,7 @@{{ trans('general.feature_disabled') }}
@else {!! Form::select('version_footer', array('on'=>'Enabled','off'=>'Disabled','admin'=>'Superadmin Only'), Request::old('version_footer', $setting->version_footer), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!} @endif @@ -223,7 +226,7 @@{{ trans('general.lock_passwords') }}
+{{ trans('general.feature_disabled') }}
@else {{ Form::textarea('footer_text', Request::old('footer_text', $setting->footer_text), array('class' => 'form-control','rows' => '4','placeholder' => 'Optional footer text')) }} @endif