Skip to content

Commit

Permalink
Add link back to project page from create field slip page
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-nathan committed Apr 29, 2024
1 parent 3db3097 commit 973862f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions app/views/controllers/projects/field_slips/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<%
add_page_title(:field_slips_for_project_title.t(title: @project.title))
@container = :text_image
title = :field_slips_for_project_title.t + " " + link_to_object(@project) + " " + :PROJECT.t
add_page_title(title)
@container = :text_image

action = { controller: "/projects/field_slips", action: :create,
project_id: @project.id, q: get_query_param }
action = { controller: "/projects/field_slips", action: :create,
project_id: @project.id, q: get_query_param }
%>

<div class="mt-3 pb-2">
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2793,7 +2793,7 @@
field_slip_updated: Field slip was successfully updated.
field_slip_welcome: "Welcome to the [TITLE] Project!"
field_slips_for_project_max_pages: "Each page has six field slips. You may create up to [MAX] pages for this project."
field_slips_for_project_title: "Create Field Slips for the [TITLE] Project"
field_slips_for_project_title: Create Field Slips for the
field_slips_created_job: "Created job for [filename]"
field_slips_must_be_member: "You must be a project member to create field slips"
field_slips_project_update_fail: "Unable to update [TITLE] Project"
Expand Down

0 comments on commit 973862f

Please sign in to comment.