]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/reporter/templates/inputs
libraries are now filtered on id (there are duplicate names, such as "Bookmobile")
[Evergreen.git] / Open-ILS / src / reporter / templates / inputs
1 [%
2
3 BLOCK form;
4         '<form ';
5
6         IF name;
7                 'name="' _ name _ '" ';
8         END;
9
10         IF id;
11                 'id="' _ id _ '" ';
12         END;
13
14         IF onsubmit;
15                 'onsubmit="' _ onsubmit _ '" ';
16         END;
17
18         IF action;
19                 'action="' _ action _ '" ';
20         END;
21
22         IF method;
23                 'method="' _ method _ '" ';
24         END;
25
26         '>' _ content _ '</form>';
27 END;
28
29 BLOCK text;
30         %]<INPUT TYPE="text" NAME="[%
31                 name;
32                 %]" VALUE="[%
33                 value;
34                 %]" [%
35                 IF size;
36                         %]SIZE="[% size %]" [%
37                 END;
38                 IF max;
39                         %]MAXLENGTH="[% max %]" [%
40                 END;
41                 %]>[%
42 END;
43
44 BLOCK textarea;
45         %]<TEXTAREA NAME="[% name %]">[% value %]</TEXTAREA>[%
46 END;
47
48 BLOCK select;
49         %]<select id="[% id %]" name="[% name %]" onchange="[% onchange %]" size="[% size %]"[% IF multi %] multiple="multiple" [% END %]>[%
50                 content;
51         %]</select>[%
52 END;
53
54 BLOCK option;
55         %]<option id="[% id %]" value="[% value %]"[% IF selected %] selected="selected" [% END %]>[%
56                 IF content;
57                         content;
58                 ELSE;
59                         value;
60                 END;
61         %]</option>[%
62 END;
63
64 BLOCK hidden;
65         %]<INPUT TYPE="hidden" NAME="[% name %]" VALUE="[% value %]">[%
66 END;
67
68 BLOCK radio;
69         %]<INPUT TYPE="radio" NAME="[% name %]" VALUE="[% value %]" [% IF checked %]CHECKED[% END %]>[%
70 END;
71
72 BLOCK checkbox;
73         %]<INPUT TYPE="checkbox" NAME="[% name %]" VALUE="[% value %]" [% IF onclick %]onclick="[% onclick %]"[% END %] [% IF checked %]CHECKED[% END %]>[%
74 END;
75
76 BLOCK submit;
77         %]<INPUT TYPE="submit" onclick="[% onclick %]" NAME="[% name %]" VALUE="[% value %]">[%
78 END;
79
80 BLOCK button;
81         %]<button NAME="[% name %]" VALUE="[% value %]" onclick="[% onclick %]">[% content %]</button>[%
82 END;
83
84 MACRO link INCLUDE anchor;
85
86 BLOCK anchor;
87         %]<a
88                 href="[%href%]"
89                 title="[%title%]"
90                 class="[%class%]"
91                 target="[%target%]"
92                 onclick="[%onclick%]"
93                 alt="[%alt%]">[%content%]</a>[%
94 END;
95
96 %]
97