class FieldTable::Field

Public Instance Methods

content() click to toggle source
# File lib/erector/widgets/field_table.rb, line 39
def content
  tr :class => "field_table_field" do
    th do
      text @label
      text ":" unless @label.nil?
    end
    td do
      super # calls the block
    end
    if @note
      td do
        text @note
      end
    end
  end
end