X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/5f0b37e7a9a8e95dd5a846bfa7896af5875b91f7..38a016c7ea89d37ea32cfeb8d1e30033c9e3d614:/src/mewa/slot-presentations.lisp diff --git a/src/mewa/slot-presentations.lisp b/src/mewa/slot-presentations.lisp index cbd2525..bbbc1a9 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,25 @@ (multiple-value-funcall->list #',(car form) ,@(cdr form)) ,@body)) + +;;;; ** Textarea Slot Presentation + +(defslot-presentation text-slot-presentation () + ((rows :initarg :rows :accessor rows :initform nil) + (columns :initarg :columns :accessor columns :initform nil) + (html-contentp :initarg :escape-html-p :accessor escape-html-p :initform nil)) + (:type-name text)) + +(defmethod present-slot ((slot text-slot-presentation) instance) + (if (editablep slot) + (>")) @@ -287,15 +311,9 @@ When T, only the default value for primary keys and the joins are updated.")) (present (presentation slot))) (<:as-html "--")))) -(defslot-presentation inline-slot-presentation (mewa-relation-slot-presentation) - () - (:type-name inline)) -(defmethod present-slot ((slot inline-slot-presentation) instance) - (<:fieldset - (<:legend (<:as-html (label slot))) - (