<h1>New User (under <%= @facility %>)</h1>
<% if @user.errors.any? && @user.errors.messages[:email].include?("has already been taken") %>
<h2>Note: This email address already belongs to an active member. Would you like to invite them to this facility?</h2>
<%= simple_form_for [@facility, @facility.employments.new] do |f| %>
<%= f.input :user_id, :name => "Hello", :as => :hidden %>
<p><%= f.button :submit, :value => "Invite User" %></p>
<% end %>
<% end %>
<%= simple_form_for [@facility, @user] do |f| %>
<%= f.input :email %>
<%= f.input :first_name %>
<%= f.input :last_name %>
<p><%= f.button :submit, "Create User" %> or <%= link_to "Back to dashboard", dashboard_path %></p>
<% end %>