<% if User.current.allowed_to?(:manage_body_trackers, @project) %> <%= link_to t(".link_new_source"), '#', class: 'icon icon-add', onclick: '$("#add-source").show(); $("#source_name").focus(); return false;' %> <% end %>
>

<%= t ".heading_new_source" %>

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

<%= l(:label_no_data) %>

<% end %>