2011-07-29 20:05:47 +02:00
|
|
|
<% content_for :sidebar do %>
|
2011-09-09 22:10:25 +02:00
|
|
|
<%= content_for_sidebar %>
|
2011-07-29 20:05:47 +02:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for :title do %>
|
2011-08-16 20:05:58 +02:00
|
|
|
- <%= t(:contacts,:scope=>:contact) %>
|
2011-07-29 20:05:47 +02:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="block" id="block-tables">
|
|
|
|
<div class="secondary-navigation">
|
2011-09-09 22:10:25 +02:00
|
|
|
<%= raw main_navigation(:contacts_tab) %>
|
2011-07-29 20:05:47 +02:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2011-08-16 20:05:58 +02:00
|
|
|
<%= form_tag(contacts_ops_path,{:name=>'contacts'})%>
|
|
|
|
|
|
|
|
<% if @contacts.size.zero? %>
|
2011-09-09 22:10:25 +02:00
|
|
|
<h3><%= t(:no_entries,:scope=>:contact) %></h3>
|
|
|
|
<%= raw single_action('create_new','contact','plus.png') %>
|
2011-08-16 20:05:58 +02:00
|
|
|
<% else %>
|
|
|
|
<%= render :partial => 'ops' %>
|
|
|
|
<%= render :partial => 'list' %>
|
|
|
|
<% end %>
|
2011-07-29 20:05:47 +02:00
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-08-16 20:05:58 +02:00
|
|
|
|