def append_to_response( response, context )
take_value(:value)
take_bool(:enabled)
attrs = {}
if @values[:value] then
@values[:value] = escaped_string(@values[:value])
end
attrs[:type] = 'submit'
attrs[:name] = name_value(context)
attrs[:value] = @values[:value]
attrs[:disabled] = !@values[:enabled]
attrs.update(optional_attributes())
other_s = other_attribute()
tag = HTMLTag.submit(attrs, other_s)
ask(:submit_will_generate_tag) do |d|
tag = d.submit_will_generate_tag(tag) || tag
end
response.content << tag.empty_tag
end