scinote-web/app/views/users/registrations/_2fa_modal_apps_tab.html.erb

72 lines
3.3 KiB
Text
Raw Normal View History

2020-07-07 19:17:17 +08:00
<div role="tabpanel" class="tab-pane active" id="2fa-step-1">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
2020-07-07 21:59:02 +08:00
<h2 class="modal-title"><%= t("users.registrations.edit.2fa_modal.step_1.title") %></h2>
2020-07-07 19:17:17 +08:00
</div>
<div class="modal-body">
2020-07-07 21:59:02 +08:00
<p><%= t("users.registrations.edit.2fa_modal.step_1.description") %></p>
2020-07-07 19:17:17 +08:00
<div class="two-factor-apps">
<div class="apps-list">
<div class="app">
<div class="app-logo">
<%= image_tag('2fa/google_authenticator.png', class: 'logo-image') %>
</div>
<div class="app-information">
2020-07-07 21:59:02 +08:00
<p class="app-name"><%= t("users.registrations.edit.2fa_modal.step_1.google_auth") %></p>
2020-07-07 19:17:17 +08:00
<div class="app-store">
2020-07-07 21:59:02 +08:00
<a href="<%= Constants::TWO_FACTOR_URL[:google][:android] %>" class="store" target="_blank">
2020-07-07 19:17:17 +08:00
<i class="fab fa-android"></i>
2020-07-07 21:59:02 +08:00
<%= t("users.registrations.edit.2fa_modal.step_1.android") %>
2020-07-07 19:17:17 +08:00
</a>
2020-07-07 21:59:02 +08:00
<a href="<%= Constants::TWO_FACTOR_URL[:google][:ios] %>" class="store" target="_blank">
2020-07-07 19:17:17 +08:00
<i class="fab fa-apple"></i>
2020-07-07 21:59:02 +08:00
<%= t("users.registrations.edit.2fa_modal.step_1.ios") %>
2020-07-07 19:17:17 +08:00
</a>
</div>
</div>
</div>
<div class="app">
<div class="app-logo">
<%= image_tag('2fa/ms_authenticator.png', class: 'logo-image') %>
</div>
<div class="app-information">
2020-07-07 21:59:02 +08:00
<p class="app-name"><%= t("users.registrations.edit.2fa_modal.step_1.microsoft_auth") %></p>
2020-07-07 19:17:17 +08:00
<div class="app-store">
2020-07-07 21:59:02 +08:00
<a href="<%= Constants::TWO_FACTOR_URL[:microsoft][:android] %>" class="store" target="_blank">
2020-07-07 19:17:17 +08:00
<i class="fab fa-android"></i>
2020-07-07 21:59:02 +08:00
<%= t("users.registrations.edit.2fa_modal.step_1.android") %>
2020-07-07 19:17:17 +08:00
</a>
2020-07-07 21:59:02 +08:00
<a href="<%= Constants::TWO_FACTOR_URL[:microsoft][:ios] %>" class="store" target="_blank">
2020-07-07 19:17:17 +08:00
<i class="fab fa-apple"></i>
2020-07-07 21:59:02 +08:00
<%= t("users.registrations.edit.2fa_modal.step_1.ios") %>
2020-07-07 19:17:17 +08:00
</a>
</div>
</div>
</div>
<div class="app">
<div class="app-logo">
<%= image_tag('2fa/2fa_authenticator.png', class: 'logo-image') %>
</div>
<div class="app-information">
2020-07-07 21:59:02 +08:00
<p class="app-name"><%= t("users.registrations.edit.2fa_modal.step_1.2fa_auth") %></p>
2020-07-07 19:17:17 +08:00
<div class="app-store">
2020-07-07 21:59:02 +08:00
<a href="<%= Constants::TWO_FACTOR_URL[:two_fa][:android] %>" class="store" target="_blank">
2020-07-07 19:17:17 +08:00
<i class="fab fa-android"></i>
2020-07-07 21:59:02 +08:00
<%= t("users.registrations.edit.2fa_modal.step_1.android") %>
2020-07-07 19:17:17 +08:00
</a>
2020-07-07 21:59:02 +08:00
<a href="<%= Constants::TWO_FACTOR_URL[:two_fa][:ios] %>" class="store" target="_blank">
2020-07-07 19:17:17 +08:00
<i class="fab fa-apple"></i>
2020-07-07 21:59:02 +08:00
<%= t("users.registrations.edit.2fa_modal.step_1.ios") %>
2020-07-07 19:17:17 +08:00
</a>
</div>
</div>
</div>
</div>
<%= image_tag('2fa/install_mobile.png', class: 'install-mobile') %>
</div>
</div>
<div class="modal-footer">
2020-07-09 23:01:00 +08:00
<button class="btn btn-primary btn-next-step" data-step="#2fa-step-2"><%= t("users.registrations.edit.2fa_modal.step_1.start") %></button>
2020-07-07 19:17:17 +08:00
</div>
</div>