Sha256: bf48e7bccce5f5bb8cc29a404f0bc176cc6f876275211207d7ab750f7598cd39

Contents?: true

Size: 1.31 KB

Versions: 3

Compression:

Stored size: 1.31 KB

Contents

<%- content_for(:javascript_includes) do -%>
  <%= javascript_include_tag "alchemy_crm/scripts.js" %>
<%- end -%>

<%- content_for(:stylesheets) do -%>
  <%= stylesheet_link_tag('alchemy_crm/styles') %>
<%- end -%>

<% if @valid_contacts.present? -%>
<div class="flash notice" style="margin: 8px 0">
  <%= render_icon('true') %>
  <%= alchemy_crm_t('%{count} contacts imported successfully') % {:count => @valid_contacts.length} %>
</div>
<% end -%>

<h1><%= alchemy_crm_t(:errors_while_importing_contacts) %></h1>

<div class="info">
  <%= render_icon('info') %>
  <p><%= alchemy_crm_t(:contacts_imported_with_errors_notice) %></p>
</div>

<table class="list" style="margin-bottom: 1em">
  <tr>
    <th><%= translate_model_attribute(:contact, :name).gsub(/\*$/, '') %></th>
    <th><%= translate_model_attribute(:contact, :email).gsub(/\*$/, '') %></th>
    <th><%= alchemy_crm_t(:errors) %></th>
  </tr>
  <% @csv_import_errors.each do |error| -%>
  <tr class="<%= cycle("even", "odd") -%>">
    <td><%= error.first.fullname -%></td>
    <td><%= error.first.email -%></td>
    <td>
      <% error[1].full_messages.each do |message| -%>
      <p><%= message -%></p>
      <% end -%>
    </td>
  </tr>
  <% end -%>
</table>

<p style="margin: 8px 0; height: 25px">
  <%= link_to t(:continue), admin_contacts_path, :class => 'button' %>
</p>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alchemy_crm-2.0.5 app/views/csv_magic/import_errors.html.erb
alchemy_crm-2.0.4.1 app/views/csv_magic/import_errors.html.erb
alchemy_crm-2.1.0a app/views/csv_magic/import_errors.html.erb