summaryrefslogtreecommitdiffstats
path: root/app/views/twofa/select_scheme.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/twofa/select_scheme.html.erb')
-rw-r--r--app/views/twofa/select_scheme.html.erb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/twofa/select_scheme.html.erb b/app/views/twofa/select_scheme.html.erb
new file mode 100644
index 000000000..cbc7c3506
--- /dev/null
+++ b/app/views/twofa/select_scheme.html.erb
@@ -0,0 +1,19 @@
+<%= title l('twofa_label_setup') %>
+
+<%= form_tag({ controller: 'twofa', action: 'activate_init' }, method: :post) do %>
+ <div class="box">
+ <p><%=l 'twofa_notice_select' -%></p>
+ <p>
+ <% Redmine::Twofa.available_schemes.each_with_index do |s, idx| %>
+ <label style="display:block;"><%= radio_button_tag 'scheme', s, idx == 0 -%> <%=l "twofa__#{s}__name" -%></label>
+ <% end %>
+ </p>
+ </div>
+ <p><%= submit_tag l(:label_next).html_safe + " &#187;".html_safe -%></p>
+<% end %>
+
+<% unless @user.must_activate_twofa? %>
+<% content_for :sidebar do %>
+<%= render partial: 'my/sidebar' %>
+<% end %>
+<% end %>