Sha256: f245505330a2407eb83e36a8be3fd09cee97b3b0a622af2ca57062a4c564646d

Contents?: true

Size: 860 Bytes

Versions: 1

Compression:

Stored size: 860 Bytes

Contents

<%= irelia_page_header(title: t(".title"), subline: t(".description")) %>
<%= irelia_container size: :md do %>
  <%= irelia_html do %>
   <p><%= t(".content") %></p>
   <%= tag.p t(".disable_instructions") if two_factor_enabled? %>
  <% end %>

  <%= irelia_div padding_top: :md do %>
    <% if two_factor_enabled? %>
      <%= irelia_form(model: @user, url: user_settings_two_factor_path, method: :delete) do |form| %>
        <%= form.text_field :otp_attempt, label: t("kiqr.users.settings.two_factor.form.label"), placeholder: t("kiqr.users.settings.two_factor.form.placeholder") %>
        <%= irelia_div padding_top: :sm do %>
          <%= form.submit t(".buttons.disable") %>
        <% end %>
      <% end %>
    <% else %>
      <%= irelia_button(url: new_user_settings_two_factor_path) { t(".buttons.enable") } %>
    <% end %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kiqr-0.1.0.alpha1 lib/kiqr/themes/irelia/views/kiqr/users/settings/two_factor/show.html.erb