@ -1,4 +1,6 @@
class Widget::Controls::Delete < Widget::Base
dont_cache!
def render
return "" if @query.new_record? or !@options[:can_delete]
button = link_to content_tag(:span, content_tag(:em, l(:button_delete), :class => "button-icon icon-delete")), "#",
class Widget::Controls::Save < Widget::Base
return "" if @query.new_record? or !@options[:can_save]
write link_to content_tag(:span, content_tag(:em, l(:button_save)), :class => "button-icon icon-save"), {},
class Widget::Controls::SaveAs < Widget::Base
if @query.new_record?
link_name = l(:button_save)