<%= t("protocols.steps.new.asset_panel_title") %>
<% unless ff.object.file.exists? && ff.object.locked? %>
<%= ff.remove_nested_fields_link do %>
<% end %>
<% end %>
<% if ff.object.file.exists? %>
<% if can_view_or_download_step_assets(@protocol) %>
<%= link_to download_asset_path(ff.object), data: {no_turbolink: true} do %>
<%= image_tag(preview_asset_path ff.object) if ff.object.is_image? %>
<%= ff.object.file_file_name %>
<% end %>
<% else %>
<%= image_tag(preview_asset_path ff.object) if ff.object.is_image? %>
<%= ff.object.file_file_name %>
<% end %>
<% else %>
<%= ff.file_field :file %>
<% end %>