Translated stuff. #219

This commit is contained in:
James Cole
2016-03-19 16:25:16 +01:00
parent 2de713c946
commit ce45f21dba
2 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex, nofolllow, noarchive, noodp, NoImageIndex, noydir">
<title>Firefly III</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<base href="{{ route('index') }}/">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css" media="all"/>
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css" media="all"/>
<link href="dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css"/>
<link href="css/firefly.css" rel="stylesheet" type="text/css"/>
<!-- favicons -->
{% include('partials/favicons.twig') %}
</head>
<body class="ff-error-page">
<div class="ff-error-box">
<div class="login-logo">
<a href="{{ route('index') }}"><b>Firefly</b>III</a>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<h3 class="text-info">{{ 'two_factor_lost_header'|_ }}</h3>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<p>
{{ 'two_factor_lost_intro'|_ }}
</p>
<ul>
<li>
{{ 'two_factor_lost_fix_self'|_ }}
</li>
<li>
{{ trans('firefly.two_factor_lost_fix_owner', {site_owner: siteOwner})|raw }}
</li>
</ul>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,40 @@
{% extends "./layout/guest.twig" %}
{% block content %}
{% if errors.has('code') %}
<div class="row">
<div class="col-lg-12">
<div class="alert alert-danger alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">{{ 'close'|_ }}</span>
</button>
<strong>{{ 'flash_error'|_ }}</strong> {{ errors.get('code')[0] }}
</div>
</div>
</div>
{% endif %}
<div class="login-box-body">
<p class="login-box-msg">{{ trans('firefly.two_factor_welcome', {user: user.email}) }}</p>
<p class="login-box-msg">{{ 'two_factor_enter_code'|_ }}</p>
<form action="{{ route('two-factor-post') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
<div class="form-group has-feedback">
<input type="text" name="code" class="form-control" placeholder="{{ 'two_factor_code_here'|_ }}"/>
</div>
<div class="row">
<!-- /.col -->
<div class="col-xs-6 col-xs-offset-6">
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ 'authenticate'|_ }}</button>
</div>
<!-- /.col -->
</div>
</form>
<a href="{{ route('lost-two-factor') }}">{{ 'two_factor_forgot'|_ }}</a>
</div>
<!-- /.login-box-body -->
{% endblock %}