X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/569ad9e659b96d5bce12410bbc0a24710306cd3e..d5e996b3f1e6f25053a3b13f661ab34697085c5c:/src/mewa/slot-presentations.lisp diff --git a/src/mewa/slot-presentations.lisp b/src/mewa/slot-presentations.lisp index 4a746d3..82893a5 100644 --- a/src/mewa/slot-presentations.lisp +++ b/src/mewa/slot-presentations.lisp @@ -1,4 +1,4 @@ -(in-package :it.bese.ucw) +(in-package :mewa) (defun multiple-value-funcall->list (function &rest args) "The function to be called by m-v-bf" @@ -10,6 +10,26 @@ (multiple-value-funcall->list #',(car form) ,@(cdr form)) ,@body)) + +;;;; ** Textarea Slot Presentation + +(defslot-presentation text-slot-presentation () + ((rows :initarg :rows :accessor rows :initform 25) + (columns :initarg :columns :accessor columns :initform 40) + (escape-html-p :initarg :escape-html-p :accessor escape-html-p :initform nil)) + (:type-name text)) + +(defmethod present-slot ((slot text-slot-presentation) instance) + (if (editablep slot) + (>")) @@ -285,3 +333,10 @@ When T, only the default value for primary keys and the joins are updated.")) (setf (instance (presentation slot)) (presentation-slot-value slot instance)) (present (presentation slot))) (<:as-html "--")))) + + + + + + +