class YDIM::Html::View::ItemList

Constants

COMPONENTS
COMPONENT_CSS_MAP
CSS_ID
CSS_MAP
DEFAULT_CLASS
SORT_DEFAULT

Public Instance Methods

delete(model) click to toggle source
# File lib/ydim/html/view/invoice.rb, line 56
def delete(model)
        link = HtmlGrid::Link.new(:delete, model, @session, self)
        args = {
                :unique_id   =>        @session.state.model.unique_id,
                :index                       =>  model.index,
        }
        url = @lookandfeel.event_url(:ajax_delete_item, args)
        link.href = "javascript: reload_list('items', '#{url}')"
        link
end
time(model) click to toggle source
# File lib/ydim/html/view/invoice.rb, line 66
def time(model)
        if(time = model.time)
                @lookandfeel.format_time(model.time)
        end
end
total_netto(model) click to toggle source
# File lib/ydim/html/view/invoice.rb, line 71
def total_netto(model)
        val = SpanValue.new(:total_netto, model, @session, self)
        val.css_id = "total_netto#{model.index}"
        val
end