Better language files for login

This commit is contained in:
James Brooks
2014-12-27 18:17:19 +00:00
parent 001f8d3ca0
commit 63eb30b383
2 changed files with 12 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ return [
],
// Other
'powered_by' => ':app Status Page is powered by <a href="https://cachethq.github.io">Cachet</a>.',
'login' => 'Login',
'logout' => 'Logout',
'logged_in' => 'You\'re logged in.',
'setup' => 'Setup Cachet',
@@ -46,4 +47,9 @@ return [
'search' => 'Search...',
'user' => 'User',
],
// Forms
'forms' => [
'email' => 'Email',
'password' => 'Password',
]
];

View File

@@ -6,27 +6,27 @@
<div class='col-md-6 col-md-offset-3'>
{{ Form::open() }}
<fieldset>
<legend>Login</legend>
<legend>{{ Lang::get('cachet.login') }}</legend>
@if(Session::has('error'))
<span class='text-danger'>{{ Session::get('error') }}</span>
@endif
<div class='form-group'>
<label class='sr-only'>Email</label>
<label class='sr-only'>{{ Lang::get('cachet.forms.email') }}</label>
{{ Form::email('email', Input::old('email'), [
'class' => 'form-control', 'placeholder' => 'Email', 'required' => 'required'
'class' => 'form-control', 'placeholder' => Lang::get('cachet.forms.email'), 'required' => 'required'
]) }}
</div>
<div class='form-group'>
<label class='sr-only'>Password</label>
<label class='sr-only'>{{ Lang::get('cachet.forms.password') }}</label>
{{ Form::password('password', [
'class' => 'form-control', 'placeholder' => 'Password', 'required' => 'required'
'class' => 'form-control', 'placeholder' => Lang::get('cachet.forms.password'), 'required' => 'required'
]) }}
</div>
<hr />
<div class='form-group'>
<button type='submit' class='btn btn-default'>Login</button>
<button type='submit' class='btn btn-default'>{{ Lang::get('cachet.login') }}</button>
</div>
</fieldset>
{{ Form::close() }}