Commit 48669d39 authored by Nicolas Widart's avatar Nicolas Widart

Translating the user create

parent ed66b315
...@@ -5,6 +5,26 @@ return [ ...@@ -5,6 +5,26 @@ return [
'new-user' => 'New User', 'new-user' => 'New User',
'cancel' => 'Cancel', 'cancel' => 'Cancel',
'delete' => 'Delete', 'delete' => 'Delete',
'create' => 'Create',
],
'title' => [
'new-user' => 'New user',
],
'breadcrumb' => [
'users' => 'Users',
'new' => 'New',
],
'tabs' => [
'data' => 'Data',
'roles' => 'Roles',
'permissions' => 'Permissions',
],
'form' => [
'first-name' => 'First name',
'last-name' => 'Last name',
'email' => 'Email',
'password' => 'Password',
'password-confirmation' => 'Password confirmation',
], ],
'table' => [ 'table' => [
'created-at' => 'Created At', 'created-at' => 'Created At',
......
...@@ -5,6 +5,26 @@ return [ ...@@ -5,6 +5,26 @@ return [
'new-user' => 'Nouvel utilisateur', 'new-user' => 'Nouvel utilisateur',
'cancel' => 'Annuler', 'cancel' => 'Annuler',
'delete' => 'Suprimmer', 'delete' => 'Suprimmer',
'create' => 'Créer',
],
'title' => [
'new-user' => 'Nouvel utilisateur',
],
'breadcrumb' => [
'users' => 'Utilisateurs',
'new' => 'Nouveau',
],
'tabs' => [
'data' => 'Données',
'roles' => 'Rôles',
'permissions' => 'Permissions',
],
'form' => [
'first-name' => 'Prénom',
'last-name' => 'Nom de famille',
'email' => 'Adresse email',
'password' => 'Mot de passe',
'password-confirmation' => 'Confirmation de mot de passe',
], ],
'table' => [ 'table' => [
'created-at' => 'Crée à', 'created-at' => 'Crée à',
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
@section('content-header') @section('content-header')
<h1> <h1>
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> 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">New</li> <li class="active">{{ trans('user::users.breadcrumb.new') }}</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'), ['class' => 'form-control', 'placeholder' => 'First name']) !!} {!! Form::text('first_name', Input::old('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'), ['class' => 'form-control', 'placeholder' => 'Last name']) !!} {!! Form::text('last_name', Input::old('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'), ['class' => 'form-control', 'placeholder' => 'Email address']) !!} {!! Form::email('email', Input::old('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>
...@@ -57,14 +57,14 @@ ...@@ -57,14 +57,14 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}"> <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
{!! Form::label('password', 'Password:') !!} {!! Form::label('password', trans('user::users.form.password')) !!}
{!! Form::password('password', ['class' => 'form-control']) !!} {!! Form::password('password', ['class' => 'form-control']) !!}
{!! $errors->first('password', '<span class="help-block">:message</span>') !!} {!! $errors->first('password', '<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('password_confirmation') ? ' has-error' : '' }}"> <div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
{!! Form::label('password_confirmation', 'Password confirmation:') !!} {!! Form::label('password_confirmation', trans('user::users.form.password-confirmation')) !!}
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!} {!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
{!! $errors->first('password_confirmation', '<span class="help-block">:message</span>') !!} {!! $errors->first('password_confirmation', '<span class="help-block">:message</span>') !!}
</div> </div>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,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 }}">{{ $role->name }}</option> <option value="{{ $role->id }}">{{ $role->name }}</option>
...@@ -94,8 +94,8 @@ ...@@ -94,8 +94,8 @@
</div> </div>
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">Create</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('user::users.button.create') }}</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>
......
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