mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Added permissions settings help
This commit is contained in:
parent
56ad438dd3
commit
c9e0119bc2
@ -77,7 +77,6 @@ class UserController extends BaseController
|
||||
'user' => $user,
|
||||
'method' => 'PUT',
|
||||
'url' => 'users/'.$publicId,
|
||||
'title' => trans('texts.edit_user'),
|
||||
];
|
||||
|
||||
return View::make('users.edit', $data);
|
||||
@ -120,7 +119,6 @@ class UserController extends BaseController
|
||||
'user' => null,
|
||||
'method' => 'POST',
|
||||
'url' => 'users',
|
||||
'title' => trans('texts.add_user'),
|
||||
];
|
||||
|
||||
return View::make('users.edit', $data);
|
||||
|
@ -1068,7 +1068,7 @@ $LANG = array(
|
||||
// User Permissions
|
||||
'owner' => 'Owner',
|
||||
'administrator' => 'Administrator',
|
||||
'administrator_help' => 'Allow user to manage users, change settings, and view and modify all data',
|
||||
'administrator_help' => 'Allow user to manage users, change settings and modify all records',
|
||||
'user_create_all' => 'Create clients, invoices, etc.',
|
||||
'user_view_all' => 'View all clients, invoices, etc.',
|
||||
'user_edit_all' => 'Edit all clients, invoices, etc.',
|
||||
@ -1078,6 +1078,11 @@ $LANG = array(
|
||||
'restore_vendor' => 'Restore Vendor',
|
||||
'restored_vendor' => 'Successfully restored vendor',
|
||||
'restored_expense' => 'Successfully restored expense',
|
||||
'permissions' => 'Permissions',
|
||||
'create_all_help' => 'Allow user to create and modify records',
|
||||
'view_all_help' => 'Allow user to view records they didn\'t create',
|
||||
'edit_all_help' => 'Allow user to modify records they didn\'t create',
|
||||
|
||||
|
||||
);
|
||||
|
||||
|
@ -16,13 +16,24 @@
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{!! $title !!}</h3>
|
||||
<h3 class="panel-title">{!! trans('texts.user_details') !!}</h3>
|
||||
</div>
|
||||
<div class="panel-body form-padding-right">
|
||||
|
||||
{!! Former::text('first_name') !!}
|
||||
{!! Former::text('last_name') !!}
|
||||
{!! Former::text('email') !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{!! trans('texts.permissions') !!}</h3>
|
||||
</div>
|
||||
<div class="panel-body form-padding-right">
|
||||
|
||||
|
||||
{!! Former::checkbox('is_admin')
|
||||
->label(' ')
|
||||
->text(trans('texts.administrator'))
|
||||
@ -31,17 +42,20 @@
|
||||
->value('create_all')
|
||||
->label(' ')
|
||||
->id('permissions_create_all')
|
||||
->text(trans('texts.user_create_all')) !!}
|
||||
->text(trans('texts.user_create_all'))
|
||||
->help(trans('texts.create_all_help')) !!}
|
||||
{!! Former::checkbox('permissions[view_all]')
|
||||
->value('view_all')
|
||||
->label(' ')
|
||||
->id('permissions_view_all')
|
||||
->text(trans('texts.user_view_all')) !!}
|
||||
->text(trans('texts.user_view_all'))
|
||||
->help(trans('texts.view_all_help')) !!}
|
||||
{!! Former::checkbox('permissions[edit_all]')
|
||||
->value('edit_all')
|
||||
->label(' ')
|
||||
->id('permissions_edit_all')
|
||||
->text(trans('texts.user_edit_all')) !!}
|
||||
->text(trans('texts.user_edit_all'))
|
||||
->help(trans('texts.edit_all_help')) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user