mishina2228/youtube-api-trial

View on GitHub
app/views/devise/unlocks/new.html.erb

Summary

Maintainability
Test Coverage
<% title = t('.resend_unlock_instructions') %>
<% content_for(:html_title) {title} %>

<h2><%= title %></h2>

<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: {method: :post}) do |f| %>
  <%= render 'devise/shared/error_messages', resource: resource %>

  <div class="field">
    <%= f.label :email %><br>
    <%= f.email_field :email, autofocus: true, autocomplete: 'email', class: 'form-control' %>
  </div>

  <div class="actions">
    <%= f.submit t('.resend_unlock_instructions'), class: 'btn btn-primary' %>
  </div>
<% end %>

<%= render 'devise/shared/links' %>