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