Sha256: adcb8c9b9c859e55d496413b25344c8d948563d760e0a4516e4562ad41e49996

Contents?: true

Size: 757 Bytes

Versions: 6

Compression:

Stored size: 757 Bytes

Contents

<h2><%= I18n.t('title', {:scope => 'devise.otp.tokens'}) %></h2>
<p><%= I18n.t('explain', {:scope => 'devise.otp.tokens'}) %></p>

<%= form_for(resource, :as => resource_name, :url => [resource_name, :otp_token], :html => { :method => :put }) do |f| %>

	<%= devise_error_messages! %>

	<h3><%= I18n.t('enable_request', {:scope => 'devise.otp.tokens'}) %></h3>

	<p><%= f.label :otp_enabled, I18n.t('status', {:scope => 'devise.otp.tokens'}) %><br />
	<%= f.check_box :otp_enabled %></p>

	<p><%= f.submit I18n.t('submit', {:scope => 'devise.otp.tokens'}) %></p>
<% end %>

<%- if resource.otp_enabled? %>
  <%= render :partial => 'token_secret' if resource.otp_enabled? %>
  <%= render :partial => 'trusted_devices' if trusted_devices_enabled? %>
<% end %>

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
devise-otp2-0.2.6 app/views/devise_otp/tokens/show.html.erb
devise-otp2-0.2.5 app/views/devise_otp/tokens/show.html.erb
devise-otp2-0.2.4 app/views/devise_otp/tokens/show.html.erb
devise-otp-rails5-0.2.4 app/views/devise_otp/tokens/show.html.erb
devise-otp-0.2.3 app/views/devise_otp/tokens/show.html.erb
devise-otp-0.2.2 app/views/devise_otp/tokens/show.html.erb