diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 481de829b6..e702501306 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -1311,7 +1311,8 @@ $LANG = array( 'new_start_date' => 'New start date', 'security' => 'Security', 'see_whats_new' => 'See what\'s new in v:version', - 'wait_for_upload' => 'Please wait for the document upload to complete.' + 'wait_for_upload' => 'Please wait for the document upload to complete.', + 'upgrade_for_permissions' => 'Upgrade to our Enterprise plan to enable permissions.' ); diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index 94b74664a7..0a572fd9ec 100644 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -1,6 +1,6 @@ @extends('header') -@section('content') +@section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_USER_MANAGEMENT]) @@ -31,13 +31,20 @@ -@if (Utils::hasFeature(FEATURE_USER_PERMISSIONS))

{!! trans('texts.permissions') !!}

+ @if ( ! Utils::hasFeature(FEATURE_USER_PERMISSIONS)) +
{{ trans('texts.upgrade_for_permissions') }}
+ + @endif {!! Former::checkbox('is_admin') ->label(' ') @@ -61,12 +68,11 @@ ->id('permissions_edit_all') ->text(trans('texts.user_edit_all')) ->help(trans('texts.edit_all_help')) !!} - -
-
-@endif - {!! Former::actions( + + + + {!! Former::actions( Button::normal(trans('texts.cancel'))->asLinkTo(URL::to('/settings/user_management'))->appendIcon(Icon::create('remove-circle'))->large(), Button::success(trans($user && $user->confirmed ? 'texts.save' : 'texts.send_invite'))->submit()->large()->appendIcon(Icon::create($user && $user->confirmed ? 'floppy-disk' : 'send')) )!!} @@ -88,4 +94,4 @@ if(!viewChecked)$('#permissions_edit_all').prop('checked',false) } fixCheckboxes(); -@stop \ No newline at end of file +@stop