summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDate.jade
diff options
context:
space:
mode:
authorshoetten <simon@hoetten.org>2016-02-05 20:23:09 +0100
committershoetten <simon@hoetten.org>2016-11-21 15:15:16 +0100
commitd4497d7aeb968dbb9f8c4b84fbcc0f7cc3668167 (patch)
tree80a91f0005202039d6120208e126f2f383ea7bf2 /client/components/cards/cardDate.jade
parent182c9af123c1f7e2fb7318d704f740f93a3da12f (diff)
downloadwekan-d4497d7aeb968dbb9f8c4b84fbcc0f7cc3668167.tar.gz
wekan-d4497d7aeb968dbb9f8c4b84fbcc0f7cc3668167.tar.bz2
wekan-d4497d7aeb968dbb9f8c4b84fbcc0f7cc3668167.zip
Add basic start and due dates for cards.
Diffstat (limited to 'client/components/cards/cardDate.jade')
-rw-r--r--client/components/cards/cardDate.jade20
1 files changed, 20 insertions, 0 deletions
diff --git a/client/components/cards/cardDate.jade b/client/components/cards/cardDate.jade
new file mode 100644
index 00000000..ca074879
--- /dev/null
+++ b/client/components/cards/cardDate.jade
@@ -0,0 +1,20 @@
+template(name="editCardDate")
+ .edit-card-date
+ 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'}}
+
+template(name="dateBadge")
+ a.js-edit-date.card-date(title="{{showTitle}}")
+ time(datetime="{{showISODate}}")
+ | {{showDate}}