mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Merge pull request #12250 from akemidx/grey_out_pw_reset_button
Fixed: Grey out pw reset button for consistency
This commit is contained in:
commit
3e7975b2c3
|
@ -203,12 +203,16 @@
|
||||||
@endcan
|
@endcan
|
||||||
|
|
||||||
@can('update', $user)
|
@can('update', $user)
|
||||||
@if (($user->activated == '1') && ($user->email != '') && ($user->ldap_import == '0'))
|
@if (($user->activated == '1') && ($user->ldap_import == '0'))
|
||||||
<div class="col-md-12" style="padding-top: 5px;">
|
<div class="col-md-12" style="padding-top: 5px;">
|
||||||
|
@if($user->email != '')
|
||||||
<form action="{{ route('users.password',['userId'=> $user->id]) }}" method="POST">
|
<form action="{{ route('users.password',['userId'=> $user->id]) }}" method="POST">
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
<button style="width: 100%;" class="btn btn-sm btn-primary hidden-print">{{ trans('button.send_password_link') }}</button>
|
<button style="width: 100%;" class="btn btn-sm btn-primary hidden-print">{{ trans('button.send_password_link') }}</button>
|
||||||
</form>
|
</form>
|
||||||
|
@else
|
||||||
|
<button style="width: 100%;" class="btn btn-sm btn-primary hidden-print" rel="noopener" disabled title="{{ trans('admin/users/message.user_has_no_email') }}">{{ trans('button.send_password_link') }}</button>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@endcan
|
@endcan
|
||||||
|
|
Loading…
Reference in a new issue