# -*- encoding : utf-8 -*- class Card; module Set; class All # Set: All cards (Formgroup) # module Formgroup; extend Card::Set def self.source_location; "/Users/ezl5238/dev/decko/gem/mod/edit/set/all/formgroup.rb"; end module HtmlFormat; module_parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat # a formgroup has a label, an input 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[:input], title editor_body = editor_wrap opts[:input], &block help_text = formgroup_help_text opts[:help] "#{label}