show errors
This commit is contained in:
parent
ee228d48f4
commit
a452bd5d8d
@ -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"}
|
||||
|
Loading…
Reference in New Issue
Block a user