Improve notice message for pages cards
This commit is contained in:
@@ -1463,12 +1463,11 @@ en:
|
|||||||
link_url: Link URL
|
link_url: Link URL
|
||||||
columns_help: "Width of the card in number of columns. On mobile screens it's always a width of 100%."
|
columns_help: "Width of the card in number of columns. On mobile screens it's always a width of 100%."
|
||||||
create:
|
create:
|
||||||
notice: "Success"
|
notice: "Card created successfully!"
|
||||||
update:
|
update:
|
||||||
notice: "Updated"
|
notice: "Card updated successfully"
|
||||||
destroy:
|
destroy:
|
||||||
notice: "Removed"
|
notice: "Card removed successfully"
|
||||||
|
|
||||||
homepage:
|
homepage:
|
||||||
title: Homepage
|
title: Homepage
|
||||||
description: The active modules appear in the homepage in the same order as here.
|
description: The active modules appear in the homepage in the same order as here.
|
||||||
|
|||||||
@@ -1462,6 +1462,12 @@ es:
|
|||||||
link_text: Texto del enlace
|
link_text: Texto del enlace
|
||||||
link_url: URL del enlace
|
link_url: URL del enlace
|
||||||
columns_help: "Ancho de la tarjeta en número de columnas. En pantallas móviles siempre es un ancho del 100%."
|
columns_help: "Ancho de la tarjeta en número de columnas. En pantallas móviles siempre es un ancho del 100%."
|
||||||
|
create:
|
||||||
|
notice: "¡Tarjeta creada con éxito!"
|
||||||
|
update:
|
||||||
|
notice: "Tarjeta actualizada con éxito"
|
||||||
|
destroy:
|
||||||
|
notice: "Tarjeta eliminada con éxito"
|
||||||
homepage:
|
homepage:
|
||||||
title: Título
|
title: Título
|
||||||
description: Los módulos activos aparecerán en la homepage en el mismo orden que aquí.
|
description: Los módulos activos aparecerán en la homepage en el mismo orden que aquí.
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ feature 'Cards' do
|
|||||||
attach_image_to_card
|
attach_image_to_card
|
||||||
click_button "Create card"
|
click_button "Create card"
|
||||||
|
|
||||||
expect(page).to have_content "Success"
|
expect(page).to have_content "Card created successfully!"
|
||||||
expect(page).to have_css(".homepage-card", count: 1)
|
expect(page).to have_css(".homepage-card", count: 1)
|
||||||
|
|
||||||
card = Widget::Card.last
|
card = Widget::Card.last
|
||||||
@@ -74,7 +74,7 @@ feature 'Cards' do
|
|||||||
fill_in "widget_card_link_url", with: "consul.dev updated"
|
fill_in "widget_card_link_url", with: "consul.dev updated"
|
||||||
click_button "Save card"
|
click_button "Save card"
|
||||||
|
|
||||||
expect(page).to have_content "Updated"
|
expect(page).to have_content "Card updated successfully"
|
||||||
|
|
||||||
expect(page).to have_css(".homepage-card", count: 1)
|
expect(page).to have_css(".homepage-card", count: 1)
|
||||||
within("#widget_card_#{Widget::Card.last.id}") do
|
within("#widget_card_#{Widget::Card.last.id}") do
|
||||||
@@ -97,7 +97,7 @@ feature 'Cards' do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content "Removed"
|
expect(page).to have_content "Card removed successfully"
|
||||||
expect(page).to have_css(".homepage-card", count: 0)
|
expect(page).to have_css(".homepage-card", count: 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ feature 'Cards' do
|
|||||||
fill_in "widget_card_link_url", with: "consul.dev"
|
fill_in "widget_card_link_url", with: "consul.dev"
|
||||||
click_button "Create header"
|
click_button "Create header"
|
||||||
|
|
||||||
expect(page).to have_content "Success"
|
expect(page).to have_content "Card created successfully!"
|
||||||
|
|
||||||
within("#header") do
|
within("#header") do
|
||||||
expect(page).to have_css(".homepage-card", count: 1)
|
expect(page).to have_css(".homepage-card", count: 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user