<div id="invite-contacts">
<%= render :partial => 'shared/flash_messages'%>
<div class="input-form">
<div style="font-weight: bold;">Input contacts from <%= image_tag("networking/#{params[:type]}.jpg") -%></div><br>
<div id="contact-results">
Securely import your address book. I will not share your login info or password. You will be able to review and select which contacts to invite.<br>
<% if ["hotmail", "gmail", "yahoo", "aol"].include?(params[:type]) -%>
<% form_remote_tag(:url => {:controller => 'importer', :action => 'invite}) do %>
<ul>
<li><label>Email</label><br>
<%= text_field_tag "username", '' -%> @<%= params[:type] -%>.com
</li>
<li><label>Password</label><br>
<%= password_field_tag "password", '' -%>
</li>
</ul>
<%= hidden_field_tag "contact_type", params[:type] -%>
<div class="buttons" id="action-buttons0" style="text-align:left;padding-top: 15px;">
<%= submit_tag 'Import contacts' -%> OR <%= link_to 'Cancel', { :controller => "home" } -%>
</div>
<% end -%>
<% end -%>
</div>
</div>
</div>