<h2><%= t('omniauth.finish_signup.title') %></h2>

<%= form_for current_user, as: :user, url: do_finish_signup_path, html: { role: 'form'} do |f| %>
  <%= render 'shared/errors', resource: current_user %>

  <div class='callout primary'>
    <%= t("omniauth.finish_signup.username_warning") %>
  </div>

  <% if current_user.errors.include? :username %>
    <%= f.text_field :username, placeholder: t("devise_views.users.registrations.new.username_label") %>
  <% else %>
    <%= f.hidden_field :username %>
  <% end %>

  <% if current_user.errors.include? :email %>
    <%= f.email_field :email, placeholder: t("devise_views.users.registrations.new.email_label") %>
  <% else %>
    <%= f.hidden_field :email %>
  <% end %>

  <%= f.submit t("devise_views.users.registrations.new.submit"), class: 'button expanded' %>
  <div class="text-center">
    <%= link_to t("devise_views.users.registrations.new.cancel"), destroy_user_session_path, class: 'delete', method: :delete %>
  </div>
<% end %>
