mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 12:54:31 -04:00
Added permissions settings help
This commit is contained in:
parent
56ad438dd3
commit
c9e0119bc2
@ -77,7 +77,6 @@ class UserController extends BaseController
|
|||||||
'user' => $user,
|
'user' => $user,
|
||||||
'method' => 'PUT',
|
'method' => 'PUT',
|
||||||
'url' => 'users/'.$publicId,
|
'url' => 'users/'.$publicId,
|
||||||
'title' => trans('texts.edit_user'),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
return View::make('users.edit', $data);
|
return View::make('users.edit', $data);
|
||||||
@ -120,7 +119,6 @@ class UserController extends BaseController
|
|||||||
'user' => null,
|
'user' => null,
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'url' => 'users',
|
'url' => 'users',
|
||||||
'title' => trans('texts.add_user'),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
return View::make('users.edit', $data);
|
return View::make('users.edit', $data);
|
||||||
|
@ -1068,7 +1068,7 @@ $LANG = array(
|
|||||||
// User Permissions
|
// User Permissions
|
||||||
'owner' => 'Owner',
|
'owner' => 'Owner',
|
||||||
'administrator' => 'Administrator',
|
'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_create_all' => 'Create clients, invoices, etc.',
|
||||||
'user_view_all' => 'View all clients, invoices, etc.',
|
'user_view_all' => 'View all clients, invoices, etc.',
|
||||||
'user_edit_all' => 'Edit all clients, invoices, etc.',
|
'user_edit_all' => 'Edit all clients, invoices, etc.',
|
||||||
@ -1078,6 +1078,11 @@ $LANG = array(
|
|||||||
'restore_vendor' => 'Restore Vendor',
|
'restore_vendor' => 'Restore Vendor',
|
||||||
'restored_vendor' => 'Successfully restored vendor',
|
'restored_vendor' => 'Successfully restored vendor',
|
||||||
'restored_expense' => 'Successfully restored expense',
|
'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 panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">{!! $title !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.user_details') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body form-padding-right">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
{!! Former::text('first_name') !!}
|
{!! Former::text('first_name') !!}
|
||||||
{!! Former::text('last_name') !!}
|
{!! Former::text('last_name') !!}
|
||||||
{!! Former::text('email') !!}
|
{!! 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')
|
{!! Former::checkbox('is_admin')
|
||||||
->label(' ')
|
->label(' ')
|
||||||
->text(trans('texts.administrator'))
|
->text(trans('texts.administrator'))
|
||||||
@ -31,17 +42,20 @@
|
|||||||
->value('create_all')
|
->value('create_all')
|
||||||
->label(' ')
|
->label(' ')
|
||||||
->id('permissions_create_all')
|
->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]')
|
{!! Former::checkbox('permissions[view_all]')
|
||||||
->value('view_all')
|
->value('view_all')
|
||||||
->label(' ')
|
->label(' ')
|
||||||
->id('permissions_view_all')
|
->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]')
|
{!! Former::checkbox('permissions[edit_all]')
|
||||||
->value('edit_all')
|
->value('edit_all')
|
||||||
->label(' ')
|
->label(' ')
|
||||||
->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')) !!}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user