2011-03-27 20:53:06 +02:00
|
|
|
<h1><%=t :add_multiple_contacts %></h1>
|
|
|
|
<% if flash["errors"] and not flash["errors"].empty?%>
|
|
|
|
<%= t(:errors)%>
|
2009-01-07 20:27:12 +01:00
|
|
|
<ul>
|
2011-03-27 20:53:06 +02:00
|
|
|
<% flash["errors"].each do |message| %>
|
2009-01-07 20:27:12 +01:00
|
|
|
<li><%= message %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<form action="<%=link_import_preview%>" enctype="multipart/form-data" method="post">
|
2011-03-27 20:53:06 +02:00
|
|
|
<%= radio_button("contact", "file_type", "1")%> <%= t(:csv_file)%>
|
|
|
|
<%= radio_button("contact", "file_type", "2")%> <%= t(:tab_file)%>
|
2009-01-07 20:27:12 +01:00
|
|
|
<table>
|
|
|
|
<tr>
|
2011-03-27 20:53:06 +02:00
|
|
|
<th><label for="contact[data]"><%=t(:select_file)%></label></th>
|
2009-01-07 20:27:12 +01:00
|
|
|
<td><input type="file" name="contact[data]"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan=2>
|
2011-03-27 20:53:06 +02:00
|
|
|
<input type="submit" value="<%= t(:import)%>"/>
|
|
|
|
<input type="button" value="<%= t(:back_to_contacts)%>" onclick="window.location='<%=contacts_url%>'">
|
|
|
|
<input type="button" value="<%= t(:back_to_folders)%>" onclick="window.location='<%=url_for(:controller => :webmail)%>'">
|
2009-01-07 20:27:12 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-03-27 20:53:06 +02:00
|
|
|
</form>
|