lib/bureaucrat/fields/bound_field.rb
# Renders the label tag for this field.
Renders the label tag for this field.
Renders the label tag for this field .
def label_tag(contents=nil, attrs=nil)
        contents ||= conditional_escape(@label)
        widget = @field.widget
        id_ = widget.attrs[:id] || self.auto_id
        if id_
          attrs = attrs ? flatatt(attrs) : ''
          contents = "<label for=\"#{Widgets::Widget.id_for_label(id_)}\"#{attrs}>#{contents}</label>"
        end
        mark_safe(contents)
      end
def label_tag ( contents = nil , attrs = nil ) contents ||= conditional_escape ( @label ) widget = @field . widget id_ = widget . attrs [ :id ] || self . auto_id if id_ attrs = attrs ? flatatt ( attrs ) : '' contents = "<label for=\"#{Widgets::Widget.id_for_label(id_)}\"#{attrs}>#{contents}</label>" end mark_safe ( contents ) end
Renders the label tag for this field.
Renders the label tag for this field .
contents
<not_specific>
attrs
<not_specific>