summaryrefslogtreecommitdiffstats
path: root/templates/agenda/color.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/color.html')
-rwxr-xr-xtemplates/agenda/color.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/agenda/color.html b/templates/agenda/color.html
new file mode 100755
index 0000000..d2ddee8
--- /dev/null
+++ b/templates/agenda/color.html
@@ -0,0 +1,11 @@
+{% load common %}
+<script type="text/javascript" charset="utf-8">
+ var picker_{{ name }} = new ColorPicker('window');
+</script>
+<input type="text" readonly="true" tabindex="-1" size="2" style="background-color: {{ value }};" id="{{ attrs.id }}-sample"/>
+<input type="text" name="{{ name }}" size="8" value="{{ value }}" id="{{ attrs.id }}" onChange="alert('changed');"/>
+<a href="#" onclick="picker_{{ name }}.select(document.getElementById('{{ attrs.id }}'),document.getElementById('{{ attrs.id }}-sample'),'{{ attrs.id }}-pick');return false;" name="{{ attrs.id }}-pick" id="{{ attrs.id }}-pick">Pick</a>
+<script type="text/javascript" charset="utf-8">
+ picker_{{ name }}.writeDiv();
+</script>
+