class WAB::UI::Create

An object create display.

Public Class Methods

new(kind, id, template, transitions) click to toggle source

Create an instance that will generate the HTML for a display.

Calls superclass method
# File lib/wab/ui/create.rb, line 9
def initialize(kind, id, template, transitions)
  super(kind, id, template, transitions, 'ui.Create')
end

Public Instance Methods

html() click to toggle source

Returns the HTML for a display.

# File lib/wab/ui/create.rb, line 14
def html
  html = %{<div class="obj-form-frame"><table class="obj-form">}
  html = append_fields(html, @name, template, false)
  html << '</table>'
  html << %{<div class="btn" id="#{@name}.save_button"><span>Save</span></div>}
  html << %{<div class="btn" style="float:right;" id="#{@name}.cancel_button"><span>Cancel</span></div>}
  html << '</div>'
end