Skip to content

Commit

Permalink
Update copy and add Zendesk link
Browse files Browse the repository at this point in the history
This matches the approved designs
  • Loading branch information
pezholio committed Nov 11, 2024
1 parent 31f98eb commit 9f41b43
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
<% content_for :context, product_name %>
<% content_for :title, "All content blocks" %>
<% content_for :title, product_name %>
<% content_for :title_margin_bottom, 6 %>

<div class="govuk-grid-row govuk-!-margin-bottom-8">
<div class="govuk-grid-column-full">
<%= render "govuk_publishing_components/components/button", {
text: "Create new object",
href: content_block_manager.new_content_block_manager_content_block_document_path,
} %>
<p class="govuk-body govuk-!-margin-bottom-1">Create, edit and use modular content.</p>
<p class="govuk-body">If you need any support or want to delete a content block, you can raise a support request.</p>
<span class="govuk-!-margin-right-2">
<%= render "govuk_publishing_components/components/button", {
text: "Create new object",
href: content_block_manager.new_content_block_manager_content_block_document_path,
} %>
</span>
<span>
<%= render "govuk_publishing_components/components/button", {
text: "Raise a support request",
href: "https://govuk.zendesk.com",
secondary_solid: true,
} %>
</span>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
end

Then("I should see the details for all documents") do
assert_text "All content blocks"
assert_text "Content Block Manager"

ContentBlockManager::ContentBlock::Document.find_each do |document|
should_show_summary_card_for_email_address_content_block(
Expand Down Expand Up @@ -595,7 +595,7 @@ def click_save_and_continue
end

Then("I should see the content block manager home page") do
expect(page).to have_content("All content blocks")
expect(page).to have_content("Content Block Manager")
end

When("I click to copy the embed code") do
Expand Down

0 comments on commit 9f41b43

Please sign in to comment.