# -*- encoding : utf-8 -*- class Card; module Set; class All # Set: All cards (Formgroup) # module Formgroup; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/edit/set/all/formgroup.rb"; end module HtmlFormat; parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat # a formgroup has a label, an editor and help text def formgroup title, opts={}, &block wrap_with :div, formgroup_div_args(opts[:class]) do formgroup_body title, opts, &block end end def formgroup_body title, opts, &block label = formgroup_label opts[:editor], title editor_body = editor_wrap opts[:editor], &block help_text = formgroup_help_text opts[:help] "#{label}