Project Directory: <%= @project.project_directory_parent_path %>/
- <% if (current_user.superuser? || current_user.eligible_sysadmin?) %>
- (MediaFlux id: <%= @project.mediaflux_id %>)
- <% end %>
- This project has already been saved to Mediaflux and the project_directory cannot be changed
\ No newline at end of file
diff --git a/app/views/projects/edit.html.erb b/app/views/projects/edit.html.erb
index b498c997b..b0d259f09 100644
--- a/app/views/projects/edit.html.erb
+++ b/app/views/projects/edit.html.erb
@@ -1,5 +1,8 @@
-
Editing Project
+
+
Editing Project
+
-<%= form_with url: project_path(@project), method: :put do |form| %>
- <%= render "edit_form" %>
-<% end %>
+ <%= form_with url: project_path(@project), method: :put do |form| %>
+ <%= render "edit_form" %>
+ <% end %>
+
\ No newline at end of file
diff --git a/app/views/projects/new.html.erb b/app/views/projects/new.html.erb
index 5f0526484..4327bdb74 100644
--- a/app/views/projects/new.html.erb
+++ b/app/views/projects/new.html.erb
@@ -1,5 +1,8 @@
-
New Project Request
+
+
New Project Request
+
-<%= form_with url: projects_path, method: :post do |form| %>
- <%= render "edit_form" %>
-<% end %>
+ <%= form_with url: projects_path, method: :post do |form| %>
+ <%= render "edit_form" %>
+ <% end %>
+
\ No newline at end of file
diff --git a/spec/system/project_roles_spec.rb b/spec/system/project_roles_spec.rb
index ea43b0faa..157a8d261 100644
--- a/spec/system/project_roles_spec.rb
+++ b/spec/system/project_roles_spec.rb
@@ -70,7 +70,7 @@
fill_in "project_directory", with: "test_project"
fill_in "title", with: "My test project"
- expect(page).to have_content("Project Directory: /td-test-001/")
+ expect(page).to have_content("/td-test-001/")
expect(page.find_all("input:invalid").count).to eq(0)
expect do
click_button("Submit")
diff --git a/spec/system/project_spec.rb b/spec/system/project_spec.rb
index 156505a8d..e86b2dad8 100644
--- a/spec/system/project_spec.rb
+++ b/spec/system/project_spec.rb
@@ -190,7 +190,7 @@
select "RDSS", from: "departments"
fill_in "project_directory", with: "test_project"
fill_in "title", with: "My test project"
- expect(page).to have_content("Project Directory: /td-test-001/")
+ expect(page).to have_content("/td-test-001/")
expect do
expect(page.find_all("input:invalid").count).to eq(0)
click_on "Submit"
@@ -236,7 +236,7 @@
click_on "btn-add-rw-user"
fill_in "project_directory", with: "test_project"
fill_in "title", with: "My test project"
- expect(page).to have_content("Project Directory: /td-test-001/")
+ expect(page).to have_content("/td-test-001/")
expect do
click_on "Submit"
end.not_to have_enqueued_job(ActionMailer::MailDeliveryJob).exactly(1).times
@@ -261,7 +261,7 @@
click_on "btn-add-rw-user"
fill_in "project_directory", with: "test_project"
fill_in "title", with: "My test project"
- expect(page).to have_content("Project Directory: /td-test-001/")
+ expect(page).to have_content("/td-test-001/")
expect(page.find("button[value=Submit]")).to be_disabled
end
end
@@ -282,7 +282,7 @@
expect(page.find("#ro-user-uid-to-add").native.attribute("validationMessage")).to eq "Please select a valid value."
fill_in "project_directory", with: "test_project"
fill_in "title", with: "My test project"
- expect(page).to have_content("Project Directory: /td-test-001/")
+ expect(page).to have_content("/td-test-001/")
expect do
click_on "Submit"
end.not_to have_enqueued_job(ActionMailer::MailDeliveryJob).exactly(1).times
@@ -322,7 +322,7 @@
valid = page.find("input#project_directory:invalid")
expect(valid).to be_truthy
fill_in "title", with: "My test project"
- expect(page).to have_content("Project Directory: /td-test-001/")
+ expect(page).to have_content("/td-test-001/")
expect(page).to have_content("New Project")
end
end
@@ -349,7 +349,7 @@
select "RDSS", from: "departments"
fill_in "project_directory", with: FFaker::Name.name.tr(" ", "_")
fill_in "title", with: "My test project"
- expect(page).to have_content("Project Directory: /td-test-001/")
+ expect(page).to have_content("/td-test-001/")
expect(page.find_all("input:invalid").count).to eq(0)
click_on "Submit"
# For some reason the above click on submit sometimes does not submit the form
@@ -402,7 +402,7 @@
select "RDSS", from: "departments"
fill_in "project_directory", with: FFaker::Name.name.tr(" ", "_")
fill_in "title", with: "My test project"
- expect(page).to have_content("Project Directory: /td-test-001/")
+ expect(page).to have_content("/td-test-001/")
sleep 1
expect(page.find_all("input:invalid").count).to eq(0)
click_on "Submit"