summaryrefslogtreecommitdiff
path: root/html/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'html/widgets')
-rw-r--r--html/widgets/time.tmpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/html/widgets/time.tmpl b/html/widgets/time.tmpl
new file mode 100644
index 0000000..5519c0c
--- /dev/null
+++ b/html/widgets/time.tmpl
@@ -0,0 +1,16 @@
+<!-- time -->
+<tr>
+ <td class="<?% (param.count mod 2) == 0 ? 'light' : 'dark' %?>" >
+ <?% data.msg %?>
+ </td>
+ <td class="<?% (param.count mod 2) == 0 ? 'light' : 'dark' %?>" >
+ <?% val = cgi.param(data.NAME) || data.def %?>
+ <?% IF data.readonly %?>
+ <span<?% FOREACH p = param.tags; "$p ";END %?>>
+ <?% val %?>
+ </span>
+ <?% ELSE %?>
+ <input type="text" name="<?% data.NAME %?>" value="<?% val %?>" <?% FOREACH p = param.tags; "$p ";END %?>>
+ <?% END %?>
+ </td>
+</tr>