Sha256: 0a2cd7d1816fb536e8c13378993dec7873fa02d12f1273077162693855f6de52

Contents?: true

Size: 1.86 KB

Versions: 1

Compression:

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

<% toolbar(
  :buttons => [
    {
      :icon => "contact_add",
      :label => alchemy_crm_t(:add_contact),
      :url => alchemy_crm.new_admin_contact_path,
      :title => alchemy_crm_t(:add_contact),
      :overlay_options => {
        :title => alchemy_crm_t(:add_contact),
        :size => '415x560'
      },
      :if_permitted_to => [:new, :alchemy_crm_admin_contacts]
    },
    {
      :icon => :contact_import,
      :label => alchemy_crm_t(:import_contacts),
      :url => alchemy_crm.import_admin_contacts_path,
      :title => alchemy_crm_t(:import_contacts),
      :overlay_options => {
        :title => alchemy_crm_t(:import_contacts),
        :size => '400x300'
      },
      :if_permitted_to => [:import, :alchemy_crm_admin_contacts]
    }
  ]
) %>

<table class="list">
  <%- unless @contacts.blank? -%>
  <tr>
    <th class="icon"></th>
    <th class="name" style="width: 180px"><%= translate_model_attribute(:contact, :lastname).gsub(/\*$/, '') %></th>
    <th class="name" style="width: 180px"><%= translate_model_attribute(:contact, :firstname).gsub(/\*$/, '') %></th>
    <th class="name"><%= translate_model_attribute(:contact, :company) %></th>
    <th class="name"><%= translate_model_attribute(:contact, :email).gsub(/\*$/, '') %></th>
    <th class="name"><%= translate_model_attribute(:contact, :tags) %></th>
    <th class="center"><%= translate_model_attribute(:contact, :verified) %></th>
    <th class="tools" style="width: 60px"></th>
  </tr>
  <%- end -%>
  <%= render :partial => "alchemy_crm/admin/contacts/contact", :collection => @contacts %>
</table>
<%= render 'alchemy/admin/partials/pagination_links', :items => @contacts, :scope => alchemy_crm %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alchemy_crm-2.1.0a app/views/alchemy_crm/admin/contacts/index.html.erb