lib/phlexi/display/components/label.rb in phlexi-display-0.0.1 vs lib/phlexi/display/components/label.rb in phlexi-display-0.0.2

- old
+ new

@@ -3,24 +3,12 @@ module Phlexi module Display module Components class Label < Base def view_template - label(**attributes) do - if field.required? - abbr(title: "required") { "*" } - whitespace - end - plain field.label - end - end - - protected - - def build_attributes - super - - attributes.fetch(:for) { attributes[:for] = field.dom.id } + h5(**attributes) { + field.label + } end end end end end