Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
e2db60c6
Commit
e2db60c6
authored
Oct 03, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add localised route
parent
50cfadb2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
routes.php
Http/routes.php
+2
-1
users.php
Resources/lang/en/users.php
+1
-1
users.php
Resources/lang/fr/users.php
+5
-0
index.blade.php
Resources/views/admin/users/index.blade.php
+1
-1
No files found.
Http/routes.php
View file @
e2db60c6
<?php
Route
::
group
([
'prefix'
=>
Config
::
get
(
'core::core.admin-prefix'
),
'namespace'
=>
'Modules\User\Http\Controllers'
],
function
()
$locale
=
LaravelLocalization
::
setLocale
();
Route
::
group
([
'prefix'
=>
$locale
.
'/'
.
Config
::
get
(
'core::core.admin-prefix'
),
'namespace'
=>
'Modules\User\Http\Controllers'
],
function
()
{
Route
::
resource
(
'users'
,
'Admin\UserController'
,
[
'except'
=>
[
'show'
],
'names'
=>
[
'index'
=>
'dashboard.user.index'
,
...
...
Resources/lang/en/users.php
View file @
e2db60c6
<?php
return
[
'new-user'
=>
'New User'
];
\ No newline at end of file
Resources/lang/fr/users.php
0 → 100644
View file @
e2db60c6
<?php
return
[
'new-user'
=>
'Nouvel utilisateur'
];
\ No newline at end of file
Resources/views/admin/users/index.blade.php
View file @
e2db60c6
...
...
@@ -17,7 +17,7 @@
@include('flash::message')
<div
class=
"btn-group pull-right"
style=
"margin: 0 15px 15px 0;"
>
<a
href=
"{{ URL::route('dashboard.user.create') }}"
class=
"btn btn-primary btn-flat"
style=
"padding: 4px 10px;"
>
<i
class=
"fa fa-pencil"
></i>
New User
<i
class=
"fa fa-pencil"
></i>
{{ trans('user::users.new-user') }}
</a>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment