Sha256: 559b222352af28e5c7efcdd55b9803bc5483ad98c48f82141d5026e4d50c5ba3

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 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 -%>

<h1><%= alchemy_crm_t('Import result') %></h1>

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

<% if @errors -%>
<div class="flash error" style="margin: 8px 0">
  <%= render_icon('error') %><%= @errors %>
</div>
<% end -%>

<% if @contacts.any? -%>
<table>
  <tr>
    <th><%= translate_model_attribute(:contact, :name) %></th>
    <th><%= translate_model_attribute(:contact, :email).gsub(/\*$/, '') %></th>
    <th><%= alchemy_crm_t(:import_status) %></th>
  </tr>
  <% @contacts.each do |contact| -%>
  <tr class="<%= cycle("even", "odd") %><%= contact.invalid? ? ' disabled' : nil -%>">
    <td><%= contact.fullname %></td>
    <td><%= contact.email %></td>
    <td>
      <% if contact.valid? -%>
      <%= render_icon(:true) %>
      <% else -%>
      <%= contact.errors.full_messages.join('<br>') %>
      <% end -%>
    </td>
  </tr>
  <% end -%>
</table>
<% else -%>
<p><%= alchemy_crm_t(:no_contacts_imported) %></p>
<% end -%>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alchemy_crm-2.0.5 app/views/alchemy_crm/admin/contacts/vcf_import_result.html.erb
alchemy_crm-2.0.4.1 app/views/alchemy_crm/admin/contacts/vcf_import_result.html.erb
alchemy_crm-2.1.0a app/views/alchemy_crm/admin/contacts/vcf_import_result.html.erb
alchemy_crm-2.0.3 app/views/alchemy_crm/admin/contacts/vcf_import_result.html.erb