Commit 7b797699 authored by Nicolas Widart's avatar Nicolas Widart

Translating the role index

parent 6938950c
<?php <?php
return [ return [
'button' => [
'new-role'=> 'New role'
],
'title' => [
'roles' => 'Roles'
],
'breadcrumb' => [
'roles' => 'Roles'
],
'table' => [
'name' => 'Name'
],
'tabs' => [],
'form' => [],
]; ];
<?php <?php
return [ return [
'button' => [
'new-role'=> 'Nouveau rôle'
],
'title' => [
'roles' => 'Rôles',
],
'breadcrumb' => [
'roles' => 'Rôles'
],
'table' => [
'name' => 'Nom'
],
'tabs' => [],
'form' => [],
]; ];
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
@section('content-header') @section('content-header')
<h1> <h1>
Roles {{ trans('user::roles.title.roles') }}
</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">Roles</li> <li class="active">{{ trans('user::roles.breadcrumb.roles') }}</li>
</ol> </ol>
@stop @stop
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
@include('flash::message') @include('flash::message')
<div class="btn-group pull-right" style="margin: 0 15px 15px 0;"> <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;"> <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> </a>
</div> </div>
</div> </div>
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
<table class="data-table table table-bordered table-hover"> <table class="data-table table table-bordered table-hover">
<thead> <thead>
<tr> <tr>
<th>Created at</th> <th>{{ trans('user::users.table.created-at') }}</th>
<th>Name</th> <th>{{ trans('user::roles.table.name') }}</th>
<th>Actions</th> <th>Actions</th>
</tr> </tr>
</thead> </thead>
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<th>Created at</th> <th>{{ trans('user::users.table.created-at') }}</th>
<th>Name</th> <th>{{ trans('user::roles.table.name') }}</th>
<th>Actions</th> <th>Actions</th>
</tr> </tr>
</tfoot> </tfoot>
...@@ -85,12 +85,12 @@ ...@@ -85,12 +85,12 @@
<h4 class="modal-title" id="myModalLabel">Confirmation</h4> <h4 class="modal-title" id="myModalLabel">Confirmation</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
Are you sure you want to delete this record? {{ trans('user::users.modal.confirmation-message') }}
</div> </div>
<div class="modal-footer"> <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']) !!} {!! 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() !!} {!! Form::close() !!}
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment