% if flash["repository_snapshot_error"] %>
<%= render 'shared/dialog',
id: "snapshot-error",
type: "error",
shown: true,
title: t("my_modules.modals.transition_snapshot_error.title"),
body:
t(
"my_modules.modals.transition_snapshot_error.body_html",
repository: Repository.find(flash["repository_snapshot_error"]["repository_id"]).name
)
%>
<% end %>
<% provide(:head_title, t("my_modules.protocols.head_title", project: h(@project.name), module: h(@my_module.name)).html_safe) %>
<% content_for :open_mobile_app_button do %>
<%= link_to(pwa_mobile_app_url(@current_team.id, @project.id, @experiment.id, @my_module.id, @protocol.id, @protocol.first_step_id, request.host),
class: 'btn btn-light-link open-mobile-app-button') do %>
<%= t('my_modules.open_mobile_app') %>
<% end %>
<% end %>
<% provide(:sidebar_title, t("sidebar.my_module.sidebar_title")) %>
<%= content_for :sidebar do %>
<%= render partial: "shared/sidebar/#{@my_module.archived_branch? ? 'archived_my_module' : 'my_module'}.html.erb",
locals: {
my_modules: @experiment_my_modules,
experiment: @my_module.experiment,
current_my_module: @my_module
}
%>
<% end %>
<%= render partial: 'shared/drag_n_drop_overlay' %>
<%= render partial: 'shared/secondary_navigation', locals: { render_breadcrumbs: true, project: @experiment.project, experiment: @experiment } %>
<%= render partial: "my_module_notes" %>
<%= render partial: "my_modules/repositories/repositories_list" %>
<%= render partial: "my_modules/repositories/full_view_modal" %>
<%= render partial: "my_modules/modals/update_repository_records_modal" %>
<%= render partial: "my_modules/protocols/print_protocol_modal", locals: { protocol: @protocol } %>
<%= render partial: "my_modules/protocols/confirm_link_update_modal.html.erb" %>
<%= render partial: "my_modules/protocols/load_from_repository_modal.html.erb" %>
<%= render partial: "my_modules/protocols/copy_to_repository_modal.html.erb" %>
<%= render partial: "protocols/import_export/import_elements.html.erb" %>
<% if @my_module.my_module_status_flow %>
<%= render partial: 'my_modules/modals/status_flow_modal.html.erb' %>
<% end %>
<%= render partial: 'assets/wopi/create_wopi_file_modal.html.erb' %>
<%= render partial: 'assets/asset_delete_modal.html.erb' %>
<%= render partial: 'my_modules/repositories/consume_stock_modal.html.erb'%>
<%= stylesheet_link_tag 'datatables' %>
<%= javascript_include_tag "handsontable.full" %>
<%= render partial: "shared/formulas_libraries.html.erb" %>
<%= javascript_include_tag("my_modules/protocols") %>
<%= javascript_include_tag("my_modules/status_flow") %>
<%= javascript_pack_tag 'emoji_button' %>
<%= javascript_include_tag("my_modules/repositories") %>
<%= javascript_include_tag("my_modules/pwa_mobile_app") %>
<%= javascript_pack_tag 'pdfjs/pdf_js' %>
<%= stylesheet_pack_tag 'pdfjs/pdf_js_styles' %>
<%= javascript_pack_tag 'vue/protocol' %>