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
7b797699
Commit
7b797699
authored
Oct 03, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translating the role index
parent
6938950c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
12 deletions
+39
-12
roles.php
Resources/lang/en/roles.php
+14
-0
roles.php
Resources/lang/fr/roles.php
+14
-1
index.blade.php
Resources/views/admin/roles/index.blade.php
+11
-11
No files found.
Resources/lang/en/roles.php
View file @
7b797699
<?php
return
[
'button'
=>
[
'new-role'
=>
'New role'
],
'title'
=>
[
'roles'
=>
'Roles'
],
'breadcrumb'
=>
[
'roles'
=>
'Roles'
],
'table'
=>
[
'name'
=>
'Name'
],
'tabs'
=>
[],
'form'
=>
[],
];
Resources/lang/fr/roles.php
View file @
7b797699
<?php
return
[
'button'
=>
[
'new-role'
=>
'Nouveau rôle'
],
'title'
=>
[
'roles'
=>
'Rôles'
,
],
'breadcrumb'
=>
[
'roles'
=>
'Rôles'
],
'table'
=>
[
'name'
=>
'Nom'
],
'tabs'
=>
[],
'form'
=>
[],
];
Resources/views/admin/roles/index.blade.php
View file @
7b797699
...
...
@@ -2,11 +2,11 @@
@section('content-header')
<h1>
Roles
{{ trans('user::roles.title.roles') }}
</h1>
<ol
class=
"breadcrumb"
>
<li><a
href=
"{{ URL::route('dashboard.index') }}"
><i
class=
"fa fa-dashboard"
></i>
Home
</a></li>
<li
class=
"active"
>
Roles
</li>
<li><a
href=
"{{ URL::route('dashboard.index') }}"
><i
class=
"fa fa-dashboard"
></i>
{{ trans('user::users.breadcrumb.home') }}
</a></li>
<li
class=
"active"
>
{{ trans('user::roles.breadcrumb.roles') }}
</li>
</ol>
@stop
...
...
@@ -17,7 +17,7 @@
@include('flash::message')
<div
class=
"btn-group pull-right"
style=
"margin: 0 15px 15px 0;"
>
<a
href=
"{{ URL::route('dashboard.role.create') }}"
class=
"btn btn-primary btn-flat"
style=
"padding: 4px 10px;"
>
<i
class=
"fa fa-pencil"
></i>
New Role
<i
class=
"fa fa-pencil"
></i>
{{ trans('user::roles.button.new-role') }}
</a>
</div>
</div>
...
...
@@ -29,8 +29,8 @@
<table
class=
"data-table table table-bordered table-hover"
>
<thead>
<tr>
<th>
Created at
</th>
<th>
Name
</th>
<th>
{{ trans('user::users.table.created-at') }}
</th>
<th>
{{ trans('user::roles.table.name') }}
</th>
<th>
Actions
</th>
</tr>
</thead>
...
...
@@ -60,8 +60,8 @@
</tbody>
<tfoot>
<tr>
<th>
Created at
</th>
<th>
Name
</th>
<th>
{{ trans('user::users.table.created-at') }}
</th>
<th>
{{ trans('user::roles.table.name') }}
</th>
<th>
Actions
</th>
</tr>
</tfoot>
...
...
@@ -85,12 +85,12 @@
<h4
class=
"modal-title"
id=
"myModalLabel"
>
Confirmation
</h4>
</div>
<div
class=
"modal-body"
>
Are you sure you want to delete this record?
{{ trans('user::users.modal.confirmation-message') }}
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
{{ trans('user::button.cancel') }}
</button>
{!! Form::open(['route' => ['dashboard.role.destroy', $role->id], 'method' => 'delete', 'class' => 'pull-left']) !!}
<button
type=
"submit"
class=
"btn btn-danger btn-flat"
><i
class=
"glyphicon glyphicon-trash"
></i>
Delete
</button>
<button
type=
"submit"
class=
"btn btn-danger btn-flat"
><i
class=
"glyphicon glyphicon-trash"
></i>
{{ trans('user::button.delete') }}
</button>
{!! Form::close() !!}
</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