root/trunk/grails-app/taglib/dbnp/studycapturing/AssayTagLib.groovy @ 1559

Revision 1559, 0.7 KB (checked in by s.h.sikkema@…, 3 years ago)

Assay export functionality

Line 
1/**
2 * AssayTagLib Tag Library
3 *
4 * Description of my tab library
5 *
6 * @author  your email (+name?)
7 * @since       2010mmdd
8 * @package     ???
9 *
10 * Revision information:
11 * $Rev: 1430 $
12 * $Author: work@osx.eu $
13 * $Date: 2011-01-21 21:05:36 +0100 (Fri, 21 Jan 2011) $
14 */
15package dbnp.studycapturing
16
17class AssayTagLib {
18
19    static namespace = 'assay'
20
21    def categorySelector = {attrs, body ->
22
23        out << "$attrs.category"
24
25        out << "${g.checkBox(name: attrs.ref, value: true)}"
26
27    }
28
29    def fieldSelector = { attrs, body ->
30
31        attrs.fieldNames.size().times {
32
33            out << attrs.fieldNames[it]
34            out << "${g.checkBox(name: "${attrs.ref}_$it", value: true)}"
35
36        }
37
38    }
39}
Note: See TracBrowser for help on using the browser.