summaryrefslogtreecommitdiffstats
path: root/client/components/forms
diff options
context:
space:
mode:
authorPouyan Savoli <papoola@hotmail.com>2017-10-14 01:38:25 +0200
committerPouyan Savoli <papoola@hotmail.com>2017-10-14 01:38:25 +0200
commit8b16955cc27b29ae507be084adccc4fad61b05ef (patch)
treef701626bd102ec088bee7c6f6707f008645e2f30 /client/components/forms
parent3753337d60e17e5e72ec071aa4a1b28e36297d15 (diff)
downloadwekan-8b16955cc27b29ae507be084adccc4fad61b05ef.tar.gz
wekan-8b16955cc27b29ae507be084adccc4fad61b05ef.tar.bz2
wekan-8b16955cc27b29ae507be084adccc4fad61b05ef.zip
number + date fields
Diffstat (limited to 'client/components/forms')
-rw-r--r--client/components/forms/datepicker.jade15
-rw-r--r--client/components/forms/datepicker.styl17
2 files changed, 32 insertions, 0 deletions
diff --git a/client/components/forms/datepicker.jade b/client/components/forms/datepicker.jade
new file mode 100644
index 00000000..96f63bc4
--- /dev/null
+++ b/client/components/forms/datepicker.jade
@@ -0,0 +1,15 @@
+template(name="datepicker")
+ .datepicker-container
+ form.edit-date
+ .fields
+ .left
+ label(for="date") {{_ 'date'}}
+ input.js-date-field#date(type="text" name="date" value=showDate placeholder=dateFormat autofocus)
+ .right
+ label(for="time") {{_ 'time'}}
+ input.js-time-field#time(type="text" name="time" value=showTime placeholder=timeFormat)
+ .js-datepicker
+ if error.get
+ .warning {{_ error.get}}
+ button.primary.wide.left.js-submit-date(type="submit") {{_ 'save'}}
+ button.js-delete-date.negate.wide.right.js-delete-date {{_ 'delete'}} \ No newline at end of file
diff --git a/client/components/forms/datepicker.styl b/client/components/forms/datepicker.styl
new file mode 100644
index 00000000..a2558094
--- /dev/null
+++ b/client/components/forms/datepicker.styl
@@ -0,0 +1,17 @@
+.datepicker-container
+ .fields
+ .left
+ width: 56%
+ .right
+ width: 38%
+ .datepicker
+ width: 100%
+ table
+ width: 100%
+ border: none
+ border-spacing: 0
+ border-collapse: collapse
+ thead
+ background: none
+ td, th
+ box-sizing: border-box \ No newline at end of file