Sha256: 0fa464cdfd915af323fa090c6edf7342329becbe24227704bd4988793d767420
Contents?: true
Size: 736 Bytes
Versions: 112
Compression:
Stored size: 736 Bytes
Contents
# -*- encoding : utf-8 -*- InlineForms::SPECIAL_COLUMN_TYPES[:month_select]=:integer # date def month_select_show(object, attribute) link_to_inline_edit object, attribute, (1..12).include?(object[attribute]) ? I18n.localize(Date.new(1970,object[attribute],1), :format => '%B') : "<i class='fi-plus'></i>".html_safe end def month_select_edit(object, attribute) select_month( (1..12).include?(object[attribute]) ? Date.new(1970, object[attribute], 1) : Date.today, field_name: attribute ) # ( object.send(attribute).nil? ? "" : object.send(attribute).strftime("%d-%m-%Y") ), :id => css_id, :class =>'datepicker' end def month_select_update(object, attribute) object[attribute.to_sym] = params['date'][attribute] rescue 0 end
Version data entries
112 entries across 112 versions & 1 rubygems