residency/app/views/devise/shared/_error_messages.html.haml

10 lines
351 B
Plaintext
Raw Normal View History

2022-12-20 16:33:23 +01:00
- if resource.errors.any?
#error_explanation
2022-12-20 20:46:58 +01:00
%h2.bg-red-100.border-l-4.border-red-500.mb-4.p-4.text-red-700.font-bold
2022-12-21 17:04:09 +01:00
= I18n.t("errors.messages.not_saved",
count: resource.errors.count,
resource: resource.class.model_name.human.downcase)
2022-12-20 16:33:23 +01:00
%ul
- resource.errors.full_messages.each do |message|
%li= message