<% provide(:head_title, t("users.invitations.edit.head_title")) %>

<%= t 'devise.invitations.edit.header' %>

<%= form_for (resource or :user), :as => resource_name, :url => invitation_path(resource_name), :html => { :method => :put } do |f| %> <%= f.hidden_field :invitation_token %>
<%= f.label :password %> <% if @minimum_password_length %> (<%= @minimum_password_length %> characters minimum) <% end %> <%= f.password_field :password, autofocus: true, autocomplete: "off", class: "form-control" %>
<%= f.label :password_confirmation %> <%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
<%= label :organization, :name, t('users.invitations.edit.name_label') %> <% if @org %> <%= text_field :organization, :name, class: "form-control", value: @org.name %> <% else %> <%= text_field :organization, :name, class: "form-control" %> <% end %> <%= t 'users.invitations.edit.name_help' %>
<%= f.submit "Sign Up", class: "btn btn-primary" %>
<% end %>
<% if resource and not resource.errors.empty? %> <% end %> <% if @org and not @org.errors.empty? %> <% end %>