2012-03-24 13:23:34 +01:00
|
|
|
= content_for :sidebar do
|
|
|
|
= render :partial => "sidebar/sidebar"
|
|
|
|
|
|
|
|
= content_for :title do
|
|
|
|
\-
|
|
|
|
= t(:contacts,:scope=>:contact)
|
|
|
|
|
|
|
|
= render :partial => 'common/main_navigation', :locals => { :contacts => :active }
|
2012-03-30 19:31:23 +02:00
|
|
|
|
|
|
|
%form{:class=>"form-horizontal top-pix18",:action=>url_for(@contact),:method=>"post"}
|
|
|
|
- if @contacts.size.zero?
|
|
|
|
.alert
|
|
|
|
= t(:no_entries,:scope=>:contact)
|
|
|
|
%p{:class=>"bottom-pix18"}
|
|
|
|
= render :partial => "common/anchor", :locals => {:caption=>t('create_new',:scope=>'contact'),
|
|
|
|
:icon=>'icon-plus icon-white',
|
|
|
|
:href=>new_contact_path}
|
|
|
|
- else
|
|
|
|
.well{:style=>"padding: 5px 3pt;"}
|
|
|
|
%h5
|
|
|
|
= t(:total_entries,:scope=>:contact)
|
|
|
|
\:
|
|
|
|
= @contacts.total_entries
|
|
|
|
%p{:class=>"bottom-pix18"}
|
|
|
|
= render :partial => "common/anchor", :locals => {:caption=>t('create_new',:scope=>'contact'),
|
|
|
|
:icon=>'icon-plus icon-white',
|
|
|
|
:href=>new_contact_path}
|
|
|
|
= render :partial => "common/button", :locals => {:name=>'delete_selected',
|
|
|
|
:caption=>t('delete_selected',:scope=>'contact'),
|
|
|
|
:icon=>'icon-minus icon-white'}
|
|
|
|
= render :partial => "common/button", :locals => {:name=>'compose_to_selected',
|
|
|
|
:caption=>t('compose_to_selected',:scope=>'contact'),
|
|
|
|
:icon=>'icon-envelope icon-white'}
|
|
|
|
= render :partial => 'list'
|
|
|
|
|
|
|
|
= render :partial => 'common/import_export',:locals=>{:im_ex_path => contacts_import_export_path,
|
2012-04-15 19:51:58 +02:00
|
|
|
:im_ex_label => t(:select_file,:scope=>:contact),
|
2012-03-30 19:31:23 +02:00
|
|
|
:im_ex_size => @contacts.total_entries }
|