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
c3e8df6f
Commit
c3e8df6f
authored
Oct 03, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translating the role edit view
parent
34daad09
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
+18
-14
roles.php
Resources/lang/en/roles.php
+3
-1
roles.php
Resources/lang/fr/roles.php
+2
-0
edit.blade.php
Resources/views/admin/roles/edit.blade.php
+13
-13
No files found.
Resources/lang/en/roles.php
View file @
c3e8df6f
...
@@ -5,11 +5,13 @@ return [
...
@@ -5,11 +5,13 @@ return [
'new-role'
=>
'New role'
'new-role'
=>
'New role'
],
],
'title'
=>
[
'title'
=>
[
'roles'
=>
'Roles'
'roles'
=>
'Roles'
,
'edit'
=>
'Edit role'
,
],
],
'breadcrumb'
=>
[
'breadcrumb'
=>
[
'roles'
=>
'Roles'
,
'roles'
=>
'Roles'
,
'new'
=>
'New'
,
'new'
=>
'New'
,
'edit'
=>
'Edit role'
,
],
],
'table'
=>
[
'table'
=>
[
'name'
=>
'Name'
'name'
=>
'Name'
...
...
Resources/lang/fr/roles.php
View file @
c3e8df6f
...
@@ -6,10 +6,12 @@ return [
...
@@ -6,10 +6,12 @@ return [
],
],
'title'
=>
[
'title'
=>
[
'roles'
=>
'Rôles'
,
'roles'
=>
'Rôles'
,
'edit'
=>
'Editez un rôle'
,
],
],
'breadcrumb'
=>
[
'breadcrumb'
=>
[
'roles'
=>
'Rôles'
,
'roles'
=>
'Rôles'
,
'new'
=>
'Nouveau'
,
'new'
=>
'Nouveau'
,
'edit'
=>
'Editez un rôle'
,
],
],
'table'
=>
[
'table'
=>
[
'name'
=>
'Nom'
'name'
=>
'Nom'
...
...
Resources/views/admin/roles/edit.blade.php
View file @
c3e8df6f
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
@
section
(
'content-header'
)
@
section
(
'content-header'
)
<
h1
>
<
h1
>
Updating
Role
<
small
>
{{
$role
->
name
}}
</
small
>
{{
trans
(
'user::roles.title.edit'
)
}}
<
small
>
{{
$role
->
name
}}
</
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.role.index'
)
}}
">
Roles
</a></li>
<li class=""><a href="
{{
URL
::
route
(
'dashboard.role.index'
)
}}
">
{{ trans('user::roles.breadcrumb.roles') }}
</a></li>
<li class="
active
">
Update
</li>
<li class="
active
">
{{ trans('user::roles.breadcrumb.edit') }}
</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::roles.tabs.data') }}
</a></li>
<
li
class
=""><
a
href
=
"#tab_2-2"
data
-
toggle
=
"tab"
>
Permissions
</
a
></
li
>
<
li
class
=""><
a
href
=
"#tab_2-2"
data
-
toggle
=
"tab"
>
{{
trans
(
'user::roles.tabs.permissions'
)
}}
</
a
></
li
>
<
li
class
=""><
a
href
=
"#tab_3-3"
data
-
toggle
=
"tab"
>
Users
</
a
></
li
>
<
li
class
=""><
a
href
=
"#tab_3-3"
data
-
toggle
=
"tab"
>
{{
trans
(
'user::users.title.users'
)
}}
</
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,15 +34,15 @@
...
@@ -34,15 +34,15 @@
<div class="
row
">
<div class="
row
">
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
{{
$errors
->
has
(
'name'
)
?
' has-error'
:
''
}}
">
<div class="
form
-
group
{{
$errors
->
has
(
'name'
)
?
' has-error'
:
''
}}
">
{!! Form::label('name',
'Role name:'
) !!}
{!! Form::label('name',
trans('user::roles.form.name')
) !!}
{!! Form::text('name', Input::old('name',
$role->name
), ['class' => 'form-control', 'placeholder' =>
'First name'
]) !!}
{!! Form::text('name', Input::old('name',
$role->name
), ['class' => 'form-control', 'placeholder' =>
trans('user::roles.form.name')
]) !!}
{!!
$errors->first
('name', '<span class="
help
-
block
">:message</span>') !!}
{!!
$errors->first
('name', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
{{
$errors
->
has
(
'slug'
)
?
' has-error'
:
''
}}
">
<div class="
form
-
group
{{
$errors
->
has
(
'slug'
)
?
' has-error'
:
''
}}
">
{!! Form::label('slug',
'Role slug:'
) !!}
{!! Form::label('slug',
trans('user::roles.form.slug')
) !!}
{!! Form::text('slug', Input::old('slug',
$role->slug
), ['class' => 'form-control', 'placeholder' =>
'Last name'
]) !!}
{!! Form::text('slug', Input::old('slug',
$role->slug
), ['class' => 'form-control', 'placeholder' =>
trans('user::roles.form.slug')
]) !!}
{!!
$errors->first
('slug', '<span class="
help
-
block
">:message</span>') !!}
{!!
$errors->first
('slug', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
...
@@ -69,8 +69,8 @@
...
@@ -69,8 +69,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::button.update') }}
</button>
<a class="
btn
btn
-
danger
pull
-
right
btn
-
flat
" href="
{{
URL
::
route
(
'dashboard.role.index'
)}}
"><i class="
fa
fa
-
times
"></i>
Cancel
</a>
<a class="
btn
btn
-
danger
pull
-
right
btn
-
flat
" href="
{{
URL
::
route
(
'dashboard.role.index'
)}}
"><i class="
fa
fa
-
times
"></i>
{{ trans('user::button.cancel') }}
</a>
</div>
</div>
</div><!-- /.tab-content -->
</div><!-- /.tab-content -->
</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