(defslot-presentation clsql-wall-time-slot-presentation (mewa-relation-slot-presentation)
((input-id :accessor input-id :initform (arnesi:random-string 10 arnesi:+ascii-alphabet+))
(defslot-presentation clsql-wall-time-slot-presentation (mewa-relation-slot-presentation)
((input-id :accessor input-id :initform (arnesi:random-string 10 arnesi:+ascii-alphabet+))
(:type-name clsql-sys:wall-time))
(defmethod presentation-slot-value ((slot clsql-wall-time-slot-presentation) instance)
(:type-name clsql-sys:wall-time))
(defmethod presentation-slot-value ((slot clsql-wall-time-slot-presentation) instance)
(unless (or (eql old-time new-time)
(when (and new-time old-time)
(equal :equal (clsql:time-compare new-time old-time))))
(unless (or (eql old-time new-time)
(when (and new-time old-time)
(equal :equal (clsql:time-compare new-time old-time))))
(defmethod label :around ((slot clsql-wall-time-slot-presentation))
(concatenate 'string (call-next-method) " (m/d/y)"))
(defmethod present-slot ((slot clsql-wall-time-slot-presentation) instance)
(let ((date (presentation-slot-value slot instance)))
(defmethod label :around ((slot clsql-wall-time-slot-presentation))
(concatenate 'string (call-next-method) " (m/d/y)"))
(defmethod present-slot ((slot clsql-wall-time-slot-presentation) instance)
(let ((date (presentation-slot-value slot instance)))
(when (editablep slot)
(<ucw:input :accessor (presentation-slot-value slot instance) :id (input-id slot) :style "display:inline")
(<:button :id (trigger-id slot) (<:as-html "[...]"))
(when (editablep slot)
(<ucw:input :accessor (presentation-slot-value slot instance) :id (input-id slot) :style "display:inline")
(<:button :id (trigger-id slot) (<:as-html "[...]"))