<%= l(:label_account_plural) %>

<% if @project.accounts.any? %> <% for account in @project.accounts %> <% unless account.new_record? %> <% end %> <% end %>
<%= l(:field_name) %> <%= l(:label_account_balance) %>
<%= link_to_if_authorized h(account.name), { :controller => 'accounts', :action => 'edit', :id => account } %> <%= account.amount_to_s %> <%= link_to_if_authorized l(:button_delete), {:controller => 'accounts', :action => 'destroy', :id => account}, :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %>
<% else %>

<%= l(:label_no_data) %>

<% end %>

<%= link_to_if_authorized l(:label_account_new), :controller => 'accounts', :action => 'new', :project_id => @project, :class => 'icon icon-add' %>