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
b7394847
Commit
b7394847
authored
Oct 03, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translating the user edit page
parent
48669d39
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
19 deletions
+27
-19
users.php
Resources/lang/en/users.php
+4
-0
users.php
Resources/lang/fr/users.php
+4
-0
create.blade.php
Resources/views/admin/users/create.blade.php
+1
-1
edit.blade.php
Resources/views/admin/users/edit.blade.php
+16
-16
index.blade.php
Resources/views/admin/users/index.blade.php
+2
-2
No files found.
Resources/lang/en/users.php
View file @
b7394847
...
@@ -6,13 +6,17 @@ return [
...
@@ -6,13 +6,17 @@ return [
'cancel'
=>
'Cancel'
,
'cancel'
=>
'Cancel'
,
'delete'
=>
'Delete'
,
'delete'
=>
'Delete'
,
'create'
=>
'Create'
,
'create'
=>
'Create'
,
'update'
=>
'Update'
,
],
],
'title'
=>
[
'title'
=>
[
'new-user'
=>
'New user'
,
'new-user'
=>
'New user'
,
'edit-user'
=>
'Edit user'
,
],
],
'breadcrumb'
=>
[
'breadcrumb'
=>
[
'home'
=>
'Home'
,
'users'
=>
'Users'
,
'users'
=>
'Users'
,
'new'
=>
'New'
,
'new'
=>
'New'
,
'edit-user'
=>
'Edit user'
,
],
],
'tabs'
=>
[
'tabs'
=>
[
'data'
=>
'Data'
,
'data'
=>
'Data'
,
...
...
Resources/lang/fr/users.php
View file @
b7394847
...
@@ -6,13 +6,17 @@ return [
...
@@ -6,13 +6,17 @@ return [
'cancel'
=>
'Annuler'
,
'cancel'
=>
'Annuler'
,
'delete'
=>
'Suprimmer'
,
'delete'
=>
'Suprimmer'
,
'create'
=>
'Créer'
,
'create'
=>
'Créer'
,
'update'
=>
'Mise à jour'
,
],
],
'title'
=>
[
'title'
=>
[
'new-user'
=>
'Nouvel utilisateur'
,
'new-user'
=>
'Nouvel utilisateur'
,
'edit-user'
=>
'Edition d\'utilisateur'
,
],
],
'breadcrumb'
=>
[
'breadcrumb'
=>
[
'home'
=>
'Accueil'
,
'users'
=>
'Utilisateurs'
,
'users'
=>
'Utilisateurs'
,
'new'
=>
'Nouveau'
,
'new'
=>
'Nouveau'
,
'edit-user'
=>
'Edition d\'utilisateur'
,
],
],
'tabs'
=>
[
'tabs'
=>
[
'data'
=>
'Données'
,
'data'
=>
'Données'
,
...
...
Resources/views/admin/users/create.blade.php
View file @
b7394847
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
{{
trans
(
'user::users.title.new-user'
)
}}
{{
trans
(
'user::users.title.new-user'
)
}}
</
h1
>
</
h1
>
<
ol
class
="
breadcrumb
">
<
ol
class
="
breadcrumb
">
<li><a href="
{{
URL
::
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i>
Home
</a></li>
<li><a href="
{{
URL
::
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i>
{{ trans('user::users.breadcrumb.home') }}
</a></li>
<li class=""><a href="
{{
URL
::
route
(
'dashboard.user.index'
)
}}
">{{ trans('user::users.breadcrumb.users') }}</a></li>
<li class=""><a href="
{{
URL
::
route
(
'dashboard.user.index'
)
}}
">{{ trans('user::users.breadcrumb.users') }}</a></li>
<li class="
active
">{{ trans('user::users.breadcrumb.new') }}</li>
<li class="
active
">{{ trans('user::users.breadcrumb.new') }}</li>
</ol>
</ol>
...
...
Resources/views/admin/users/edit.blade.php
View file @
b7394847
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
@
section
(
'content-header'
)
@
section
(
'content-header'
)
<
h1
>
<
h1
>
Edit
User
<
small
>
{{
$user
->
present
()
->
fullname
()
}}
</
small
>
{{
trans
(
'user::users.title.edit-user'
)
}}
<
small
>
{{
$user
->
present
()
->
fullname
()
}}
</
small
>
</
h1
>
</
h1
>
<
ol
class
="
breadcrumb
">
<
ol
class
="
breadcrumb
">
<li><a href="
{{
URL
::
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i>
Home
</a></li>
<li><a href="
{{
URL
::
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i>
{{ trans('user::users.breadcrumb.home') }}
</a></li>
<li class=""><a href="
{{
URL
::
route
(
'dashboard.user.index'
)
}}
">
Users
</a></li>
<li class=""><a href="
{{
URL
::
route
(
'dashboard.user.index'
)
}}
">
{{ trans('user::users.breadcrumb.users') }}
</a></li>
<li class="
active
">
Editing user
</li>
<li class="
active
">
{{ trans('user::users.breadcrumb.edit-user') }}
</li>
</ol>
</ol>
@stop
@stop
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
<div class="
col
-
md
-
12
">
<div class="
col
-
md
-
12
">
<div class="
nav
-
tabs
-
custom
">
<div class="
nav
-
tabs
-
custom
">
<ul class="
nav
nav
-
tabs
">
<ul class="
nav
nav
-
tabs
">
<li class="
active
"><a href="
#tab_1-1" data-toggle="tab">
Data
</a></li>
<li class="
active
"><a href="
#tab_1-1" data-toggle="tab">
{{ trans('user::users.tabs.data') }}
</a></li>
<
li
class
=""><
a
href
=
"#tab_2-2"
data
-
toggle
=
"tab"
>
Roles
</
a
></
li
>
<
li
class
=""><
a
href
=
"#tab_2-2"
data
-
toggle
=
"tab"
>
{{
trans
(
'user::users.tabs.roles'
)
}}
</
a
></
li
>
<
li
class
=""><
a
href
=
"#tab_3-3"
data
-
toggle
=
"tab"
>
Permissions
</
a
></
li
>
<
li
class
=""><
a
href
=
"#tab_3-3"
data
-
toggle
=
"tab"
>
{{
trans
(
'user::users.tabs.permissions'
)
}}
</
a
></
li
>
</
ul
>
</
ul
>
<
div
class
="
tab
-
content
">
<
div
class
="
tab
-
content
">
<div class="
tab
-
pane
active
" id="
tab_1
-
1
">
<div class="
tab
-
pane
active
" id="
tab_1
-
1
">
...
@@ -34,22 +34,22 @@
...
@@ -34,22 +34,22 @@
<div class="
row
">
<div class="
row
">
<div class="
col
-
sm
-
4
">
<div class="
col
-
sm
-
4
">
<div class="
form
-
group
{{
$errors
->
has
(
'first_name'
)
?
' has-error'
:
''
}}
">
<div class="
form
-
group
{{
$errors
->
has
(
'first_name'
)
?
' has-error'
:
''
}}
">
{!! Form::label('first_name',
'First name:'
) !!}
{!! Form::label('first_name',
trans('user::users.form.first-name')
) !!}
{!! Form::text('first_name', Input::old('first_name',
$user->first_name
), ['class' => 'form-control', 'placeholder' =>
'First name'
]) !!}
{!! Form::text('first_name', Input::old('first_name',
$user->first_name
), ['class' => 'form-control', 'placeholder' =>
trans('user::users.form.first-name')
]) !!}
{!!
$errors->first
('first_name', '<span class="
help
-
block
">:message</span>') !!}
{!!
$errors->first
('first_name', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
<div class="
col
-
sm
-
4
">
<div class="
col
-
sm
-
4
">
<div class="
form
-
group
{{
$errors
->
has
(
'last_name'
)
?
' has-error'
:
''
}}
">
<div class="
form
-
group
{{
$errors
->
has
(
'last_name'
)
?
' has-error'
:
''
}}
">
{!! Form::label('last_name',
'Last name:'
) !!}
{!! Form::label('last_name',
trans('user::users.form.last-name')
) !!}
{!! Form::text('last_name', Input::old('last_name',
$user->last_name
), ['class' => 'form-control', 'placeholder' =>
'Last name'
]) !!}
{!! Form::text('last_name', Input::old('last_name',
$user->last_name
), ['class' => 'form-control', 'placeholder' =>
trans('user::users.form.last-name')
]) !!}
{!!
$errors->first
('last_name', '<span class="
help
-
block
">:message</span>') !!}
{!!
$errors->first
('last_name', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
<div class="
col
-
sm
-
4
">
<div class="
col
-
sm
-
4
">
<div class="
form
-
group
{{
$errors
->
has
(
'email'
)
?
' has-error'
:
''
}}
">
<div class="
form
-
group
{{
$errors
->
has
(
'email'
)
?
' has-error'
:
''
}}
">
{!! Form::label('email',
'Email:'
) !!}
{!! Form::label('email',
trans('user::users.form.email')
) !!}
{!! Form::email('email', Input::old('email',
$user->email
), ['class' => 'form-control', 'placeholder' =>
'Email address'
]) !!}
{!! Form::email('email', Input::old('email',
$user->email
), ['class' => 'form-control', 'placeholder' =>
trans('user::users.form.email')
]) !!}
{!!
$errors->first
('email', '<span class="
help
-
block
">:message</span>') !!}
{!!
$errors->first
('email', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<div class="
row
">
<div class="
row
">
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
<div class="
form
-
group
">
<div class="
form
-
group
">
<label>
Role(s)
</label>
<label>
{{ trans('user::users.tabs.roles') }}
</label>
<select multiple="" class="
form
-
control
" name="
roles
[]
">
<select multiple="" class="
form
-
control
" name="
roles
[]
">
<?php foreach(
$roles
as
$role
): ?>
<?php foreach(
$roles
as
$role
): ?>
<option value="
{{
$role
->
id
}}
" <?php echo
$user->roles
()->whereId(
$role->id
)->count() >= 1 ? 'selected' : '' ?>>{{
$role->name
}}</option>
<option value="
{{
$role
->
id
}}
" <?php echo
$user->roles
()->whereId(
$role->id
)->count() >= 1 ? 'selected' : '' ?>>{{
$role->name
}}</option>
...
@@ -76,8 +76,8 @@
...
@@ -76,8 +76,8 @@
</div>
</div>
</div>
</div>
<div class="
box
-
footer
">
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
Update
</button>
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
{{ trans('user::users.button.update') }}
</button>
<a class="
btn
btn
-
danger
pull
-
right
btn
-
flat
" href="
{{
URL
::
route
(
'dashboard.user.index'
)}}
"><i class="
fa
fa
-
times
"></i>
Cancel
</a>
<a class="
btn
btn
-
danger
pull
-
right
btn
-
flat
" href="
{{
URL
::
route
(
'dashboard.user.index'
)}}
"><i class="
fa
fa
-
times
"></i>
{{ trans('user::users.button.cancel') }}
</a>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
Resources/views/admin/users/index.blade.php
View file @
b7394847
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
Users
Users
</h1>
</h1>
<ol
class=
"breadcrumb"
>
<ol
class=
"breadcrumb"
>
<li><a
href=
"{{ URL::route('dashboard.index') }}"
><i
class=
"fa fa-dashboard"
></i>
Home
</a></li>
<li><a
href=
"{{ URL::route('dashboard.index') }}"
><i
class=
"fa fa-dashboard"
></i>
{{ trans('user::users.breadcrumb.home') }}
</a></li>
<li
class=
"active"
>
Users
</li>
<li
class=
"active"
>
{{ trans('user::users.breadcrumb.users') }}
</li>
</ol>
</ol>
@stop
@stop
...
...
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