Improve notice message for pages cards
This commit is contained in:
@@ -1463,12 +1463,11 @@ en:
|
||||
link_url: Link URL
|
||||
columns_help: "Width of the card in number of columns. On mobile screens it's always a width of 100%."
|
||||
create:
|
||||
notice: "Success"
|
||||
notice: "Card created successfully!"
|
||||
update:
|
||||
notice: "Updated"
|
||||
notice: "Card updated successfully"
|
||||
destroy:
|
||||
notice: "Removed"
|
||||
|
||||
notice: "Card removed successfully"
|
||||
homepage:
|
||||
title: Homepage
|
||||
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_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%."
|
||||
create:
|
||||
notice: "¡Tarjeta creada con éxito!"
|
||||
update:
|
||||
notice: "Tarjeta actualizada con éxito"
|
||||
destroy:
|
||||
notice: "Tarjeta eliminada con éxito"
|
||||
homepage:
|
||||
title: Título
|
||||
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
|
||||
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)
|
||||
|
||||
card = Widget::Card.last
|
||||
@@ -74,7 +74,7 @@ feature 'Cards' do
|
||||
fill_in "widget_card_link_url", with: "consul.dev updated"
|
||||
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)
|
||||
within("#widget_card_#{Widget::Card.last.id}") do
|
||||
@@ -97,7 +97,7 @@ feature 'Cards' do
|
||||
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)
|
||||
end
|
||||
|
||||
@@ -114,7 +114,7 @@ feature 'Cards' do
|
||||
fill_in "widget_card_link_url", with: "consul.dev"
|
||||
click_button "Create header"
|
||||
|
||||
expect(page).to have_content "Success"
|
||||
expect(page).to have_content "Card created successfully!"
|
||||
|
||||
within("#header") do
|
||||
expect(page).to have_css(".homepage-card", count: 1)
|
||||
|
||||
Reference in New Issue
Block a user