mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 11:20:39 -06:00
61 lines
2.4 KiB
Twig
61 lines
2.4 KiB
Twig
{% extends "./layout/default" %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="POST" action="{{ route('profile.code.store') }}" accept-charset="UTF-8" class="form-horizontal" id="preferences_code">
|
|
<input name="_token" type="hidden" value="{{ csrf_token() }}">
|
|
<div class="row">
|
|
<div class="col-lg-6 col-lg-offset-3 col-md-12 col-sm-12 col-xs-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'pref_two_factor_auth_code'|_ }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<p class="text-info">
|
|
{{ 'pref_two_factor_auth_code_help'|_ }}
|
|
</p>
|
|
<div class="form group">
|
|
<div class="col-sm-8 col-md-offset-4">
|
|
<img src="{{ image }}" alt="" title=""
|
|
style="border:1px #ddd solid;"/>
|
|
</div>
|
|
<p>
|
|
{{ trans('firefly.2fa_use_secret_instead', {secret: secret|escape})|raw }}
|
|
</p>
|
|
<p>
|
|
{{ '2fa_backup_codes'|_ }}
|
|
</p>
|
|
<pre>{{ codes }}</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-6 col-lg-offset-3 col-md-12 col-sm-12 col-xs-12">
|
|
<div class="box">
|
|
<div class="box-body">
|
|
{{ ExpandedForm.text('code', code) }}
|
|
</div>
|
|
<div class="box-footer">
|
|
<button type="submit" class="btn btn-success btn-lg">{{ 'pref_save_settings'|_ }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|
|
{% block scripts %}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
"use strict";
|
|
|
|
// Focus first visible form element.
|
|
$("form#preferences_code input:enabled:visible:first").first().select();
|
|
});
|
|
</script>
|
|
{% endblock %}
|