mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Show permissions if not enabled
This commit is contained in:
parent
5e4fab9f5b
commit
c55d6510bf
@ -1311,7 +1311,8 @@ $LANG = array(
|
|||||||
'new_start_date' => 'New start date',
|
'new_start_date' => 'New start date',
|
||||||
'security' => 'Security',
|
'security' => 'Security',
|
||||||
'see_whats_new' => 'See what\'s new in v:version',
|
'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.'
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@extends('header')
|
@extends('header')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
@parent
|
@parent
|
||||||
@include('accounts.nav', ['selected' => ACCOUNT_USER_MANAGEMENT])
|
@include('accounts.nav', ['selected' => ACCOUNT_USER_MANAGEMENT])
|
||||||
|
|
||||||
@ -31,13 +31,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (Utils::hasFeature(FEATURE_USER_PERMISSIONS))
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! trans('texts.permissions') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.permissions') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body form-padding-right">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
|
@if ( ! Utils::hasFeature(FEATURE_USER_PERMISSIONS))
|
||||||
|
<div class="alert alert-warning">{{ trans('texts.upgrade_for_permissions') }}</div>
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$('input[type=checkbox]').prop('disabled', true);
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
|
||||||
{!! Former::checkbox('is_admin')
|
{!! Former::checkbox('is_admin')
|
||||||
->label(' ')
|
->label(' ')
|
||||||
@ -61,12 +68,11 @@
|
|||||||
->id('permissions_edit_all')
|
->id('permissions_edit_all')
|
||||||
->text(trans('texts.user_edit_all'))
|
->text(trans('texts.user_edit_all'))
|
||||||
->help(trans('texts.edit_all_help')) !!}
|
->help(trans('texts.edit_all_help')) !!}
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{!! Former::actions(
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{!! Former::actions(
|
||||||
Button::normal(trans('texts.cancel'))->asLinkTo(URL::to('/settings/user_management'))->appendIcon(Icon::create('remove-circle'))->large(),
|
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'))
|
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)
|
if(!viewChecked)$('#permissions_edit_all').prop('checked',false)
|
||||||
}
|
}
|
||||||
fixCheckboxes();
|
fixCheckboxes();
|
||||||
@stop
|
@stop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user