% content_for :sidebar do %>
<%= render :partial => 'body_trackers/sidebar' %>
<% end %>
<% if User.current.allowed_to?(:manage_common, @project) %>
<%= link_to t(".heading_new_source"), '#', :class => 'icon icon-add',
:onclick => 'showAndScrollTo("add-source", "source_name"); return false;' %>
<% end %>
>
<%= t ".heading_new_source" %>
<%= labelled_form_for @source,
:url => project_sources_path(@project),
:html => {:id => 'source-form'} do |f| %>
<%= render :partial => 'sources/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-source").hide()' %>
<% end %>
<%= t ".heading" %>
<% if @sources.any? { |s| s.persisted? } %>
<%= l(:field_name) %> |
<%= l(:field_description) %> |
<%= l(:field_action) %> |
<% @sources.each do |s| %>
<% next if s.new_record? %>
<%= s.name %> |
<%= s.description %> |
<%= delete_link source_path(s), data: {} %> |
<% end %>
<% else %>
<%= l(:label_no_data) %>
<% end %>