diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index 7daaca4219..fc2f201995 100755 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -104,6 +104,7 @@
+
@if ($user->ldap_import!='1' || str_contains(Route::currentRouteName(), 'clone')) id)) ? ' disabled' : '') }} > - @if (config('app.lock_passwords') && ($user->id)) -

{{ trans('admin/users/table.lock_passwords') }}

- @endif - @else - {{ trans('general.managed_ldap') }} - + @else + + {{ trans('general.managed_ldap') }} + + @endif +
+ + + @if (config('app.lock_passwords') && ($user->id)) + +
+

{{ trans('general.feature_disabled') }}

+
+ @endif + + @if ($errors->first('username')) +
+ {!! $errors->first('username', '') !!} +
@endif - {!! $errors->first('username', '') !!} -
@@ -191,14 +203,15 @@ @endif - +
+ @if (config('app.lock_passwords')) @@ -207,6 +220,7 @@ @elseif ($user->id === Auth::user()->id) @@ -602,6 +616,7 @@ $(document).ready(function() { $('#email_user_checkbox').prop("disabled", true); + $('#activated').on('ifChecked', function(event){ console.log('user activated is checked'); $("#email_user_row").show(); @@ -614,12 +629,14 @@ $(document).ready(function() { $('#email').on('keyup',function(){ event.preventDefault(); + @if (!config('app.lock_passwords')) if(this.value.length > 5){ $('#email_user_checkbox').prop("disabled", false); $("#email_user_checkbox").parent().removeClass("form-control--disabled"); } else { $('#email_user_checkbox').prop("disabled", true); } + @endif });