FEATURE: #1425: add user log actions

This commit is contained in:
Michal Kváček
2016-02-08 21:53:30 +01:00
parent 39591c11c3
commit 9de95c24c8
5 changed files with 105 additions and 27 deletions
+14 -19
View File
@@ -1,23 +1,18 @@
<?php
return [
'login' => 'Logged in',
'logout' => 'Logged out',
'selfUserEdit' => 'Updated self user',
'userEdit' => 'Updated someone\'s profile',
'changePassword' => 'Changed password',
'newCustomField' => 'Added new custom field',
'editCustomField' => 'Edited custom field',
'deleteCustomField' => 'Deleted custom field',
'changeSettings' => 'Changes settings',
'login' => 'Logged in',
'logout' => 'Logged out',
'userEdit' => 'Updated user :name (:email)',
'newCustomField' => 'Added new custom field with ID #:id and name ":name"',
'editCustomField' => 'Edited custom field with ID #:id and name ":name"',
'deleteCustomField' => 'Deleted custom field ID #:id and name ":name"',
'changeSettings' => 'Changes settings',
// list of names
'nameLogin' => 'Logged in',
'nameLogout' => 'Logged out',
'nameSelfUserEdit' => 'Updated self user',
'nameUserEdit' => 'Updated someone\'s profile',
'nameChangePassword' => 'Changed password',
'nameNewCustomField' => 'Added new custom field',
'nameEditCustomField' => 'Edited custom field',
'nameDeleteCustomField' => 'Deleted custom field',
'nameChangeSettings' => 'Changes settings',
'nameLogin' => 'Login',
'nameLogout' => 'Log out',
'nameUserEdit' => 'Edit user',
'nameNewCustomField' => 'New custom field',
'nameEditCustomField' => 'Edit custom field',
'nameDeleteCustomField' => 'Delete custom field',
'nameChangeSettings' => 'Change settings',
];
+1 -1
View File
@@ -25,5 +25,5 @@ return [
'update' => 'Update informations',
'passwordLeaveEmpty' => 'Leave empty, if you do not want to change it.',
'userSuccessfullyEdited' => 'User successfully edited.',
'noActions' => 'There are no actions yet.',
];
@@ -25,7 +25,21 @@
<div class="callout">
<h3>@lang('admin/userManagement.usersActions')</h3>
<em>comming soon</em>
@if (!empty($actions))
<ul class="accordion" data-accordion>
@foreach($actions as $action)
<li class="accordion-item" data-accordion-item>
<a class="accordion-title">{{$action->name}}</a>
<div class="accordion-content" data-tab-content>
{{date('d.m.Y G:i', strtotime($action->created_at))}} <br />
{{$action->value}}
</div>
</li>
@endforeach
</ul>
@else
<em>@lang('admin/userManagement.noActions')</em>
@endif
</div>
</div>
@@ -49,5 +63,4 @@
</div>
</div>
</div>
@stop