debian-mirror-gitlab/app/views/devise/shared/_error_messages.html.haml
2023-05-27 22:25:52 +05:30

9 lines
424 B
Text

- if resource.errors.any?
= render Pajamas::AlertComponent.new(title: I18n.t("errors.messages.not_saved", count: resource.errors.count, resource: resource.class.model_name.human.downcase),
variant: :danger,
dismissible: false,
alert_options: { id: 'error_explanation', class: 'gl-mb-3'}) do |c|
= c.body do
%ul.gl-pl-4
- resource.errors.full_messages.each do |message|
%li= message