"
data-can-edit-modules="<%= can_edit_modules(@experiment) ? "yes" : "no" %>"
data-can-edit-module-groups="<%= can_edit_module_groups(@experiment) ? "yes" : "no" %>"
data-can-clone-modules="<%= can_clone_modules(@experiment) ? "yes" : "no" %>"
data-can-move-modules="<%= can_move_modules(@experiment) ? "yes" : "no" %>"
data-can-delete-modules="<%= can_archive_modules(@experiment) ? "yes" : "no" %>"
data-can-reposition-modules="<%= can_reposition_modules(@experiment) ? "yes" : "no" %>"
data-can-edit-connections="<%= can_edit_connections(@experiment) ? "yes" : "no" %>"
data-unsaved-work-text="<%=t "experiments.canvas.edit.unsaved_work" %>"
>
<%= bootstrap_form_tag url: canvas_experiment_url, method: "post" do |f| %>
<%= f.submit class: "btn btn-primary", id: "canvas-save" do %>
<%= t("experiments.canvas.edit.save_short") %>
<%= t("experiments.canvas.edit.save") %>
<% end %>
<%= link_to canvas_experiment_path(@experiment), type: "button", class: "btn btn-default cancel-edit-canvas" do %>
<%= t("experiments.canvas.edit.cancel") %>
<% end %>
<% if can_create_modules(@experiment) %>
<%=link_to "", type: "button", class: "btn btn-default", id: "canvas-new-module" do %>
<%= t("experiments.canvas.edit.new_module") %>
<%= t("experiments.canvas.edit.new_module_hover") %>
<%= t("experiments.canvas.edit.new_module") %>
<% end %>
<% end %>
<%= hidden_field_tag 'connections', '' %>
<%= hidden_field_tag 'positions', '' %>
<%= hidden_field_tag 'add', '' %>
<%= hidden_field_tag 'add-names', '' %>
<%= hidden_field_tag 'rename', '{}' %>
<%= hidden_field_tag 'move', '{}' %>
<%= hidden_field_tag 'cloned', '' %>
<%= hidden_field_tag 'remove', '' %>
<%= hidden_field_tag 'module-groups', '{}' %>
<% end %>
<%=t "experiments.canvas.edit.edit_module" %>
<%=t "experiments.canvas.edit.edit_module_group" %>
<%=t "experiments.canvas.edit.clone_module" %>
<%=t "experiments.canvas.edit.clone_module_group" %>
<%=t "experiments.canvas.edit.move_module" %>
<%=t "experiments.canvas.edit.move_module_group" %>
<%=t "experiments.canvas.edit.delete_module" %>
<%=t "experiments.canvas.edit.delete_module_group" %>
<%=t "experiments.canvas.edit.drag_connections" %>
<% my_modules.each do |my_module| %>
<%= render partial: "canvas/edit/my_module", locals: {experiment: @experiment, my_module: my_module} %>
<% end %>
<% if can_create_modules(@experiment) %>
<%= render partial: "canvas/edit/modal/new_module", locals: {experiment: @experiment} %>
<% end %>
<% if can_edit_modules(@experiment) %>
<%= render partial: "canvas/edit/modal/edit_module", locals: {experiment: @experiment } %>
<% end %>
<% if can_edit_module_groups(@experiment) %>
<%= render partial: "canvas/edit/modal/edit_module_group", locals: {experiment: @experiment } %>
<% end %>
<% if can_move_modules(@experiment) %>
<%= render partial: "canvas/edit/modal/move_module", locals: {experiment: @experiment } %>
<%= render partial: "canvas/edit/modal/move_module_group", locals: {experiment: @experiment } %>
<% end %>
<% if can_archive_modules(@experiment) %>
<%= render partial: "canvas/edit/modal/delete_module", locals: {experiment: @experiment} %>
<%= render partial: "canvas/edit/modal/delete_module_group", locals: {experiment: @experiment} %>
<% end %>