mailr/themes/olive/views/contacts/index.html.erb
Wojciech Todryk 2afeebad53 devel
2011-09-16 19:44:29 +02:00

28 lines
636 B
Plaintext
Executable file

<% content_for :sidebar do %>
<%= content_for_sidebar %>
<% end %>
<% content_for :title do %>
- <%= t(:contacts,:scope=>:contact) %>
<% end %>
<div class="block" id="block-tables">
<div class="secondary-navigation">
<%= raw main_navigation(:contacts_tab) %>
</div>
<div class="content">
<%= form_tag(contacts_ops_path,{:name=>'contacts'})%>
<% if @contacts.size.zero? %>
<h3><%= t(:no_entries,:scope=>:contact) %></h3>
<%= raw single_action('create_new','contact','plus.png') %>
</form>
<% else %>
<%= render :partial => 'ops' %>
<%= render :partial => 'list' %>
</form>
<% end %>
<%= render :partial => 'external' %>
</div>
</div>