Add registration form

This commit is contained in:
2023-04-13 19:52:23 +02:00
parent 0ddf6b9d22
commit bd2557d261
7 changed files with 34 additions and 45 deletions

View File

@@ -5,6 +5,9 @@ module ApplicationHelper
def #{selector}(method, options = {})
@template.content_tag :tr do
label_text = label(method, options.delete(:label))
if options[:hint]
label_text += @template.tag(:br) + @template.content_tag(:em, options.delete(:hint))
end
label_class = @template.class_names(required: options[:required],
error: @object&.errors[method].present?)