summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2009-06-21 11:25:33 +0000
committerAndreas Brachold <vdr07@deltab.de>2009-06-21 11:25:33 +0000
commitd214d07a627df39a9ab47264fa4e58b87f9f3893 (patch)
treee2933dd48d7a5cb98e3b5c94c9c55193d69c0ad8 /html
parentcf4f7cbec03704a1655445ac6092a9f41f763c7a (diff)
downloadxxv-d214d07a627df39a9ab47264fa4e58b87f9f3893.tar.gz
xxv-d214d07a627df39a9ab47264fa4e58b87f9f3893.tar.bz2
* HTTPD: Add widget for input time based values
* RECORDS: redit remove useless edit of recording 'priority'
Diffstat (limited to 'html')
-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>