Skip to content

Commit

Permalink
Merge pull request #9690 from alphagov/content-modelling/734-create-b…
Browse files Browse the repository at this point in the history
…lock

Content modelling/734 create block
  • Loading branch information
Harriethw authored Dec 3, 2024
2 parents 4986366 + 66e2cdf commit 52c2524
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def attributes

class Create < ContentBlockManager::ContentBlock::EditionForm
def title
"Create a new #{schema.name}"
"Create #{schema.name.downcase}"
end

def url
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% content_for :context, product_name %>
<% content_for :context, "Create a content block" %>
<% content_for :title, @form.title %>

<% content_for :back_link do %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ContentBlockManager::ContentBlock::EditionFormTest < ActiveSupport::TestCa
end

it "sets the correct title" do
assert_equal "Create a new Email address", result.title
assert_equal "Create email address", result.title
end

it "sets the correct urls" do
Expand Down

0 comments on commit 52c2524

Please sign in to comment.