show errors

This commit is contained in:
Torsten 2023-01-22 20:27:56 +02:00
parent ee228d48f4
commit a452bd5d8d
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@
You can use
=link_to "markdown" , "https://www.markdown-cheatsheet.com/" , class: :underline, target: :blank
for styling, use Preview tab to view rendered output. Remember to save!
-if object.errors and object.errors[field] and ! object.errors[field].blank?
.text-red-700= "#{field.to_s.capitalize} #{object.errors[field].join( ' ')}"
%ul.flex.text-center.mt-4.font-bold
%li.p-2.flex-1.border-t.border-l.border-r.rounded-lg.border-gray-200{"v-bind:class" => "{'bg-gray-50 border-b font-normal': tab == 2}"}
%a.text-sm{"@click" => "tab = 1"}