diff --git a/assets/javascripts/wizard-custom.js b/assets/javascripts/wizard-custom.js
index 3a8382e7..69a853b9 100644
--- a/assets/javascripts/wizard-custom.js
+++ b/assets/javascripts/wizard-custom.js
@@ -84,6 +84,9 @@
//= require discourse/components/d-editor
//= require discourse/components/popup-input-tip
//= require discourse/components/emoji-picker
+//= require discourse/components/input-tip
+//= require discourse/components/date-picker
+//= require discourse/components/text-field
//= require discourse/templates/components/conditional-loading-spinner
//= require discourse/templates/components/d-button
@@ -91,6 +94,7 @@
//= require discourse/templates/components/emoji-picker
//= require discourse/templates/category-tag-autocomplete
//= require discourse/templates/emoji-selector-autocomplete
+//= require discourse/templates/user-selector-autocomplete
//= require discourse/pre-initializers/sniff-capabilities
diff --git a/assets/javascripts/wizard/lib/jquery.timepicker.min.js b/assets/javascripts/wizard/lib/jquery.timepicker.min.js
new file mode 100644
index 00000000..6a7b5954
--- /dev/null
+++ b/assets/javascripts/wizard/lib/jquery.timepicker.min.js
@@ -0,0 +1,7 @@
+/*!
+ * jquery-timepicker v1.11.11 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
+ * Copyright (c) 2017 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/
+ * License: MIT
+ */
+
+!function(a){"object"==typeof exports&&exports&&"object"==typeof module&&module&&module.exports===exports?a(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){var b=a[0];return b.offsetWidth>0&&b.offsetHeight>0}function c(b){if(b.minTime&&(b.minTime=t(b.minTime)),b.maxTime&&(b.maxTime=t(b.maxTime)),b.durationTime&&"function"!=typeof b.durationTime&&(b.durationTime=t(b.durationTime)),"now"==b.scrollDefault)b.scrollDefault=function(){return b.roundingFunction(t(new Date),b)};else if(b.scrollDefault&&"function"!=typeof b.scrollDefault){var c=b.scrollDefault;b.scrollDefault=function(){return b.roundingFunction(t(c),b)}}else b.minTime&&(b.scrollDefault=function(){return b.roundingFunction(b.minTime,b)});if("string"===a.type(b.timeFormat)&&b.timeFormat.match(/[gh]/)&&(b._twelveHourTime=!0),b.showOnFocus===!1&&-1!=b.showOn.indexOf("focus")&&b.showOn.splice(b.showOn.indexOf("focus"),1),b.disableTimeRanges.length>0){for(var d in b.disableTimeRanges)b.disableTimeRanges[d]=[t(b.disableTimeRanges[d][0]),t(b.disableTimeRanges[d][1])];b.disableTimeRanges=b.disableTimeRanges.sort(function(a,b){return a[0]-b[0]});for(var d=b.disableTimeRanges.length-1;d>0;d--)b.disableTimeRanges[d][0]<=b.disableTimeRanges[d-1][1]&&(b.disableTimeRanges[d-1]=[Math.min(b.disableTimeRanges[d][0],b.disableTimeRanges[d-1][0]),Math.max(b.disableTimeRanges[d][1],b.disableTimeRanges[d-1][1])],b.disableTimeRanges.splice(d,1))}return b}function d(b){var c=b.data("timepicker-settings"),d=b.data("timepicker-list");if(d&&d.length&&(d.remove(),b.data("timepicker-list",!1)),c.useSelect){d=a("",{"class":"ui-timepicker-select"});var g=d}else{d=a("
",{"class":"ui-timepicker-list"});var g=a("",{"class":"ui-timepicker-wrapper",tabindex:-1});g.css({display:"none",position:"absolute"}).append(d)}if(c.noneOption)if(c.noneOption===!0&&(c.noneOption=c.useSelect?"Time...":"None"),a.isArray(c.noneOption)){for(var i in c.noneOption)if(parseInt(i,10)==i){var k=e(c.noneOption[i],c.useSelect);d.append(k)}}else{var k=e(c.noneOption,c.useSelect);d.append(k)}if(c.className&&g.addClass(c.className),(null!==c.minTime||null!==c.durationTime)&&c.showDuration){"function"==typeof c.step?"function":c.step;g.addClass("ui-timepicker-with-duration"),g.addClass("ui-timepicker-step-"+c.step)}var l=c.minTime;"function"==typeof c.durationTime?l=t(c.durationTime()):null!==c.durationTime&&(l=c.durationTime);var n=null!==c.minTime?c.minTime:0,o=null!==c.maxTime?c.maxTime:n+v-1;n>o&&(o+=v),o===v-1&&"string"===a.type(c.timeFormat)&&c.show2400&&(o=v);var p=c.disableTimeRanges,w=0,x=p.length,z=c.step;"function"!=typeof z&&(z=function(){return c.step});for(var i=n,A=0;o>=i;A++,i+=60*z(A)){var B=i,C=s(B,c);if(c.useSelect){var D=a("",{value:C});D.text(C)}else{var D=a("");D.addClass(v/2>B%v?"ui-timepicker-am":"ui-timepicker-pm"),D.data("time",u(B,c)),D.text(C)}if((null!==c.minTime||null!==c.durationTime)&&c.showDuration){var E=r(i-l,c.step);if(c.useSelect)D.text(D.text()+" ("+E+")");else{var F=a("",{"class":"ui-timepicker-duration"});F.text(" ("+E+")"),D.append(F)}}x>w&&(B>=p[w][1]&&(w+=1),p[w]&&B>=p[w][0]&&B",{value:f,"class":e,text:d}):a("",{"class":e,text:d}).data("time",String(f))}function f(a,b){return a=b.roundingFunction(a,b),null!==a?s(a,b):void 0}function g(b){if(b.target!=window){var c=a(b.target);c.closest(".ui-timepicker-input").length||c.closest(".ui-timepicker-wrapper").length||(y.hide(),a(document).unbind(".ui-timepicker"),a(window).unbind(".ui-timepicker"))}}function h(a){var b=a.data("timepicker-settings");return(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&b.disableTouchKeyboard}function i(b,c,d){if(!d&&0!==d)return!1;var e=b.data("timepicker-settings"),f=!1,d=e.roundingFunction(d,e);return c.find("li").each(function(b,c){var e=a(c);if("number"==typeof e.data("time"))return e.data("time")==d?(f=e,!1):void 0}),f}function j(a,b){b.find("li").removeClass("ui-timepicker-selected");var c=a.data("timepicker-settings"),d=t(l(a),c);if(null!==d){var e=i(a,b,d);if(e){var f=e.offset().top-b.offset().top;(f+e.outerHeight()>b.outerHeight()||0>f)&&b.scrollTop(b.scrollTop()+e.position().top-e.outerHeight()),(c.forceRoundTime||e.data("time")===d)&&e.addClass("ui-timepicker-selected")}}}function k(b,c){if("timepicker"!=c){var d=a(this);if(""===this.value)return void m(d,null,c);if(!d.is(":focus")||b&&"change"==b.type){var e=d.data("timepicker-settings"),f=t(this.value,e);if(null===f)return void d.trigger("timeFormatError");var g=!1;if(null!==e.minTime&&null!==e.maxTime&&(fe.maxTime)&&(g=!0),a.each(e.disableTimeRanges,function(){return f>=this[0]&&f0?(f=a(c),!1):void 0}),f.addClass("ui-timepicker-selected")),!1;case 40:return f=e.find(".ui-timepicker-selected"),0===f.length?(e.find("li").each(function(b,c){return a(c).position().top>0?(f=a(c),!1):void 0}),f.addClass("ui-timepicker-selected")):f.is(":last-child")||(f.removeClass("ui-timepicker-selected"),f.next().addClass("ui-timepicker-selected"),f.next().position().top+2*f.outerHeight()>e.outerHeight()&&e.scrollTop(e.scrollTop()+f.outerHeight())),!1;case 27:e.find("li").removeClass("ui-timepicker-selected"),y.hide();break;case 9:y.hide();break;default:return!0}}function p(c){var d=a(this),e=d.data("timepicker-list"),f=d.data("timepicker-settings");if(!e||!b(e)||f.disableTextInput)return!0;if("paste"===c.type||"cut"===c.type)return void setTimeout(function(){f.typeaheadHighlight?j(d,e):e.hide()},0);switch(c.keyCode){case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 77:case 80:case 186:case 8:case 46:f.typeaheadHighlight?j(d,e):e.hide()}}function q(a){var b=a.data("timepicker-settings"),c=a.data("timepicker-list"),d=null,e=c.find(".ui-timepicker-selected");return e.hasClass("ui-timepicker-disabled")?!1:(e.length&&(d=e.data("time")),null!==d&&("string"!=typeof d&&(d=s(d,b)),m(a,d,"select")),!0)}function r(a,b){a=Math.abs(a);var c,d,e=Math.round(a/60),f=[];return 60>e?f=[e,w.mins]:(c=Math.floor(e/60),d=e%60,30==b&&30==d&&(c+=w.decimal+5),f.push(c),f.push(1==c?w.hr:w.hrs),30!=b&&d&&(f.push(d),f.push(w.mins))),f.join(" ")}function s(b,c){if("number"!=typeof b)return null;var d=parseInt(b%60),e=parseInt(b/60%60),f=parseInt(b/3600%24),g=new Date(1970,0,2,f,e,d,0);if(isNaN(g.getTime()))return null;if("function"===a.type(c.timeFormat))return c.timeFormat(g);for(var h,i,j="",k=0;k11?w.pm:w.am;break;case"A":j+=g.getHours()>11?w.PM:w.AM;break;case"g":h=g.getHours()%12,j+=0===h?"12":h;break;case"G":h=g.getHours(),b===v&&(h=c.show2400?24:0),j+=h;break;case"h":h=g.getHours()%12,0!==h&&10>h&&(h="0"+h),j+=0===h?"12":h;break;case"H":h=g.getHours(),b===v&&(h=c.show2400?24:0),j+=h>9?h:"0"+h;break;case"i":var e=g.getMinutes();j+=e>9?e:"0"+e;break;case"s":d=g.getSeconds(),j+=d>9?d:"0"+d;break;case"\\":k++,j+=c.timeFormat.charAt(k);break;default:j+=i}return j}function t(a,b){if(""===a||null===a)return null;if("object"==typeof a)return 3600*a.getHours()+60*a.getMinutes()+a.getSeconds();if("string"!=typeof a)return a;a=a.toLowerCase().replace(/[\s\.]/g,""),("a"==a.slice(-1)||"p"==a.slice(-1))&&(a+="m");var c="("+w.am.replace(".","")+"|"+w.pm.replace(".","")+"|"+w.AM.replace(".","")+"|"+w.PM.replace(".","")+")?",d=new RegExp("^"+c+"([0-9]?[0-9])\\W?([0-5][0-9])?\\W?([0-5][0-9])?"+c+"$"),e=a.match(d);if(!e)return null;var f=parseInt(1*e[2],10),g=e[1]||e[5],h=f,i=1*e[3]||0,j=1*e[4]||0;if(12>=f&&g){var k=g==w.pm||g==w.PM;h=12==f?k?12:0:f+(k?12:0)}else if(b){var l=3600*f+60*i+j;if(l>=v+(b.show2400?1:0)){if(b.wrapHours===!1)return null;h=f%24}}var m=3600*h+60*i+j;if(12>f&&!g&&b&&b._twelveHourTime&&b.scrollDefault){var n=m-b.scrollDefault();0>n&&n>=v/-2&&(m=(m+v/2)%v)}return m}function u(a,b){return a==v&&b.show2400?a:a%v}var v=86400,w={am:"am",pm:"pm",AM:"AM",PM:"PM",decimal:".",mins:"mins",hr:"hr",hrs:"hrs"},x={appendTo:"body",className:null,closeOnWindowScroll:!1,disableTextInput:!1,disableTimeRanges:[],disableTouchKeyboard:!1,durationTime:null,forceRoundTime:!1,maxTime:null,minTime:null,noneOption:!1,orientation:"l",roundingFunction:function(a,b){if(null===a)return null;if("number"!=typeof b.step)return a;var c=a%(60*b.step),d=b.minTime||0;return c-=d%(60*b.step),c>=30*b.step?a+=60*b.step-c:a-=c,u(a,b)},scrollDefault:null,selectOnBlur:!1,show2400:!1,showDuration:!1,showOn:["click","focus"],showOnFocus:!0,step:30,stopScrollPropagation:!1,timeFormat:"g:ia",typeaheadHighlight:!0,useSelect:!1,wrapHours:!0},y={init:function(b){return this.each(function(){var e=a(this),f=[];for(var g in x)e.data(g)&&(f[g]=e.data(g));var h=a.extend({},x,b,f);if(h.lang&&(w=a.extend(w,h.lang)),h=c(h),e.data("timepicker-settings",h),e.addClass("ui-timepicker-input"),h.useSelect)d(e);else{if(e.prop("autocomplete","off"),h.showOn)for(var i in h.showOn)e.on(h.showOn[i]+".timepicker",y.show);e.on("change.timepicker",k),e.on("keydown.timepicker",o),e.on("keyup.timepicker",p),h.disableTextInput&&e.on("keydown.timepicker",n),e.on("cut.timepicker",p),e.on("paste.timepicker",p),k.call(e.get(0),null,"initial")}})},show:function(c){var e=a(this),f=e.data("timepicker-settings");if(c&&c.preventDefault(),f.useSelect)return void e.data("timepicker-list").focus();h(e)&&e.blur();var k=e.data("timepicker-list");if(!e.prop("readonly")&&(k&&0!==k.length&&"function"!=typeof f.durationTime||(d(e),k=e.data("timepicker-list")),!b(k))){e.data("ui-timepicker-value",e.val()),j(e,k),y.hide(),k.show();var m={};f.orientation.match(/r/)?m.left=e.offset().left+e.outerWidth()-k.outerWidth()+parseInt(k.css("marginLeft").replace("px",""),10):m.left=e.offset().left+parseInt(k.css("marginLeft").replace("px",""),10);var n;n=f.orientation.match(/t/)?"t":f.orientation.match(/b/)?"b":e.offset().top+e.outerHeight(!0)+k.outerHeight()>a(window).height()+a(window).scrollTop()?"t":"b","t"==n?(k.addClass("ui-timepicker-positioned-top"),m.top=e.offset().top-k.outerHeight()+parseInt(k.css("marginTop").replace("px",""),10)):(k.removeClass("ui-timepicker-positioned-top"),m.top=e.offset().top+e.outerHeight()+parseInt(k.css("marginTop").replace("px",""),10)),k.offset(m);var o=k.find(".ui-timepicker-selected");if(!o.length){var p=t(l(e));null!==p?o=i(e,k,p):f.scrollDefault&&(o=i(e,k,f.scrollDefault()))}if((!o.length||o.hasClass("ui-timepicker-disabled"))&&(o=k.find("li:not(.ui-timepicker-disabled):first")),o&&o.length){var q=k.scrollTop()+o.position().top-o.outerHeight();k.scrollTop(q)}else k.scrollTop(0);return f.stopScrollPropagation&&a(document).on("wheel.ui-timepicker",".ui-timepicker-wrapper",function(b){b.preventDefault();var c=a(this).scrollTop();a(this).scrollTop(c+b.originalEvent.deltaY)}),a(document).on("touchstart.ui-timepicker mousedown.ui-timepicker",g),a(window).on("resize.ui-timepicker",g),f.closeOnWindowScroll&&a(document).on("scroll.ui-timepicker",g),e.trigger("showTimepicker"),this}},hide:function(c){var d=a(this),e=d.data("timepicker-settings");return e&&e.useSelect&&d.blur(),a(".ui-timepicker-wrapper").each(function(){var c=a(this);if(b(c)){var d=c.data("timepicker-input"),e=d.data("timepicker-settings");e&&e.selectOnBlur&&q(d),c.hide(),d.trigger("hideTimepicker")}}),this},option:function(b,e){return"string"==typeof b&&"undefined"==typeof e?a(this).data("timepicker-settings")[b]:this.each(function(){var f=a(this),g=f.data("timepicker-settings"),h=f.data("timepicker-list");"object"==typeof b?g=a.extend(g,b):"string"==typeof b&&(g[b]=e),g=c(g),f.data("timepicker-settings",g),k.call(f.get(0),{type:"change"},"initial"),h&&(h.remove(),f.data("timepicker-list",!1)),g.useSelect&&d(f)})},getSecondsFromMidnight:function(){return t(l(this))},getTime:function(a){var b=this,c=l(b);if(!c)return null;var d=t(c);if(null===d)return null;a||(a=new Date);var e=new Date(a);return e.setHours(d/3600),e.setMinutes(d%3600/60),e.setSeconds(d%60),e.setMilliseconds(0),e},isVisible:function(){var a=this,c=a.data("timepicker-list");return!(!c||!b(c))},setTime:function(a){var b=this,c=b.data("timepicker-settings");if(c.forceRoundTime)var d=f(t(a),c);else var d=s(t(a),c);return a&&null===d&&c.noneOption&&(d=a),b.val(d),k.call(b.get(0),{type:"change"},"initial"),b.data("timepicker-list")&&j(b,b.data("timepicker-list")),this},remove:function(){var a=this;if(a.hasClass("ui-timepicker-input")){var b=a.data("timepicker-settings");return a.removeAttr("autocomplete","off"),a.removeClass("ui-timepicker-input"),a.removeData("timepicker-settings"),a.off(".timepicker"),a.data("timepicker-list")&&a.data("timepicker-list").remove(),b.useSelect&&a.show(),a.removeData("timepicker-list"),this}}};a.fn.timepicker=function(b){return this.length?y[b]?this.hasClass("ui-timepicker-input")?y[b].apply(this,Array.prototype.slice.call(arguments,1)):this:"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery.timepicker"):y.init.apply(this,arguments):this}});
diff --git a/assets/stylesheets/wizard/jquery.timepicker.scss b/assets/stylesheets/wizard/jquery.timepicker.scss
new file mode 100644
index 00000000..950a0b1d
--- /dev/null
+++ b/assets/stylesheets/wizard/jquery.timepicker.scss
@@ -0,0 +1,72 @@
+.ui-timepicker-wrapper {
+ overflow-y: auto;
+ max-height: 150px;
+ width: 6.5em;
+ background: #fff;
+ border: 1px solid #ddd;
+ -webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);
+ -moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);
+ box-shadow:0 5px 10px rgba(0,0,0,0.2);
+ outline: none;
+ z-index: 10001;
+ margin: 0;
+}
+
+.ui-timepicker-wrapper.ui-timepicker-with-duration {
+ width: 13em;
+}
+
+.ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-30,
+.ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-60 {
+ width: 11em;
+}
+
+.ui-timepicker-list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+.ui-timepicker-duration {
+ margin-left: 5px; color: #888;
+}
+
+.ui-timepicker-list:hover .ui-timepicker-duration {
+ color: #888;
+}
+
+.ui-timepicker-list li {
+ padding: 3px 0 3px 5px;
+ cursor: pointer;
+ white-space: nowrap;
+ color: #000;
+ list-style: none;
+ margin: 0;
+}
+
+.ui-timepicker-list:hover .ui-timepicker-selected {
+ background: #fff; color: #000;
+}
+
+li.ui-timepicker-selected,
+.ui-timepicker-list li:hover,
+.ui-timepicker-list .ui-timepicker-selected:hover {
+ background: #1980EC; color: #fff;
+}
+
+li.ui-timepicker-selected .ui-timepicker-duration,
+.ui-timepicker-list li:hover .ui-timepicker-duration {
+ color: #ccc;
+}
+
+.ui-timepicker-list li.ui-timepicker-disabled,
+.ui-timepicker-list li.ui-timepicker-disabled:hover,
+.ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled {
+ color: #888;
+ cursor: default;
+}
+
+.ui-timepicker-list li.ui-timepicker-disabled:hover,
+.ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled {
+ background: #f2f2f2;
+}
diff --git a/assets/stylesheets/wizard/wizard_custom.scss b/assets/stylesheets/wizard/wizard_custom.scss
index b1a913f2..887f61b6 100644
--- a/assets/stylesheets/wizard/wizard_custom.scss
+++ b/assets/stylesheets/wizard/wizard_custom.scss
@@ -880,3 +880,706 @@ input.input-location, div.input-location {
}
}
}
+
+//events scss
+
+
+.add-event-controls {
+ padding: 0 10px;
+ margin-bottom: 10px;
+
+ .control {
+ display: inline-block;
+ vertical-align: middle;
+ position: relative;
+ min-height: 30px;
+ margin-right: 20px;
+
+ > span {
+ line-height: 30px;
+ }
+ }
+
+ .timezone-modal {
+ position: absolute;
+ top: 0;
+ padding: 5px;
+ height: auto;
+ background-color: $secondary;
+ box-shadow: 0 2px 2px rgba(0,0,0,0.4);
+
+ .combo-box {
+ display: block;
+ margin-bottom: 5px;
+ }
+
+ .btn {
+ margin-right: 2px;
+ }
+ }
+}
+
+.date-time-card {
+ width: 270px;
+ display: inline-block;
+ padding: 0 10px;
+ text-align: left;
+}
+
+.start-card {
+ border-left: 1px solid transparent;
+ margin-right: 10px;
+}
+
+.end-card {
+ border-left: 1px solid #eee;
+ padding-left: 25px;
+}
+
+.set-all-day {
+ font-size: 1.2em;
+ padding-bottom: 13px;
+}
+
+.modal-title-label {
+ font-size: 1.2em;
+ font-weight: bold;
+ margin-right: 10px;
+}
+
+.modal-title{
+ width: 565px;
+}
+
+.modal-sub-title{
+ font-size: 1.2em;
+ font-weight: bold;
+ padding-bottom: 2px;
+ padding-right: 10px;
+}
+
+.modal-date-time-set{
+ padding-top: 3px;
+ padding-bottom: 4px;
+ display: flex;
+ flex-direction: row;
+
+ .modal-date-area{
+ order: 1;
+ }
+
+ .modal-time-area{
+ order: 2;
+ margin-left: 10px;
+
+ .modal-time{
+ width: 127px;
+ }
+ }
+}
+
+.ui-timepicker-input {
+ width: 105px;
+ text-align: center;
+}
+
+.date-picker{
+ width: 110px;
+}
+
+.pika-single {
+ position: relative !important;
+ z-index: 100;
+
+ .pika-lendar {
+ border: 1px solid #eee;
+ padding: 14px;
+ margin: 0;
+ float: none;
+ width: auto;
+ }
+}
+
+.rsvp {
+ margin-top: 10px;
+ padding: 10px;
+
+ .going-max {
+ margin-top: 10px;
+
+ input {
+ margin-left: 4px;
+ width: 60px;
+ }
+ }
+}
+
+
+.add-event-modal + .modal-footer .clear {
+ margin: 5px 10px;
+}
+
+.add-event {
+ text-align: left;
+
+ &.no-text {
+ width: 35px;
+ }
+
+ .dot {
+ padding: 0 4px;
+ }
+}
+
+.add-event, .add-event + button {
+ border: 1px solid $primary-medium;
+}
+
+.form-element + span {
+ display: block;
+}
+
+.event-label .fa {
+ margin-right: 7px;
+}
+
+.event-details {
+ display: flex;
+ flex-flow: wrap;
+
+ .event-label {
+ margin-top: 7px;
+ margin-right: 10px;
+ line-height: 18px;
+ display: inline-block;
+ }
+
+ .event-rsvp {
+ margin-top: 6px;
+ }
+}
+
+.date-time-container {
+ display: inline-block;
+
+ .d-icon {
+ margin-right: 7px;
+ }
+}
+
+.date-time.title {
+ width: 100px;
+
+ .d-icon.no-date {
+ margin: 0;
+ }
+
+ .date.no-date {
+ margin-left: -30px;
+ }
+}
+
+.add-to-calendar {
+ position: relative;
+ display: inline-block;
+ margin-right: 10px;
+ margin-top: 6px;
+
+ .dropdown-header {
+ min-height: initial;
+ }
+
+ .dropdown-menu {
+ top: 24px;
+ bottom: initial;
+ width: 190px;
+ position: absolute;
+
+ &.show {
+ display: block;
+ }
+
+ ul {
+ list-style: none;
+ margin: 0;
+ }
+ }
+}
+
+.navigation {
+ display: inline-block;
+}
+
+.select-kit.events-calendar-subscription {
+ float: right;
+
+ .select-kit-body {
+ width: 380px;
+ max-width: 90vw;
+
+ .events-calendar-subscription-warning {
+ padding: 6px 16px;
+ background-color: rgba(255, 247, 78, 0.32);
+ font-size: 1.1em;
+
+ .fa.d-icon {
+ margin-right: 6px;
+ }
+ }
+
+ .events-calendar-subscription-row {
+ cursor: initial;
+ display: flex;
+ padding: 5px;
+
+ &.is-highlighted {
+ background-color: initial;
+ }
+
+ span {
+ text-align: center;
+ width: 50px;
+ flex: initial;
+ }
+
+ input {
+ flex: 1;
+ margin: 0;
+ }
+ }
+ }
+}
+
+.select-kit.month-dropdown, .select-kit.year-dropdown {
+ width: 150px;
+ min-width: 150px;
+ height: 28px;
+ vertical-align: top;
+
+ .select-kit-header {
+ line-height: 1.3;
+ }
+}
+
+.events-calendar.responsive {
+ .month-dropdown, .year-dropdown {
+ width: 110px;
+ min-width: 110px;
+ height: 30px;
+
+ .select-kit-header {
+ line-height: 1.35;
+ }
+
+ &:not(.is-expanded) .select-kit-header {
+ width: inherit;
+ }
+ }
+
+ .events-calendar-body {
+ margin-top: 10px;
+ text-align: center;
+
+ .weekday {
+ height: 15px;
+ line-height: 15px;
+
+ span {
+ padding: 0 2px;
+ }
+ }
+
+ .day {
+ height: 38px;
+ cursor: pointer;
+ position: relative;
+
+ .header {
+ text-align: center;
+ margin-top: 2px;
+ }
+
+ .date label {
+ cursor: pointer;
+ display: inline-block;
+ height: 19px;
+ width: 19px;
+ margin: 0;
+ }
+
+ .has-events {
+ position: absolute;
+ bottom: 2px;
+ width: 100%;
+ }
+ }
+ }
+}
+
+.events-calendar-body {
+ display: flex;
+ flex-wrap: wrap;
+ width: 100%;
+ margin-top: 15px;
+ border-bottom: 1px solid $primary-medium;
+ border-left: 1px solid $primary-medium;
+ box-sizing: border-box;
+
+ .day, .weekday {
+ width: calc(99.9999%/7);
+ border-top: 1px solid $primary-medium;
+ border-right: 1px solid $primary-medium;
+ box-sizing: border-box;
+ }
+
+ .weekday {
+ height: 23px;
+ line-height: 23px;
+
+ span {
+ padding: 0 4px;
+ }
+ }
+
+ .day {
+ height: 130px;
+ transition: all 0.2s;
+ position: relative;
+
+ .container {
+ background-color: $secondary;
+ }
+
+ &.today .container {
+ background-color: $highlight-low;
+ height: 100%;
+ }
+
+ &.different-month .container {
+ background-color: rgba($primary-low, .5);
+ color: rgba($primary, .5);
+ height: 100%;
+ }
+
+ &.selected .date label {
+ background-color: $tertiary;
+ color: $secondary;
+ border-radius: 50%;
+ }
+
+ &.expanded .container {
+ position: absolute;
+ z-index: 100;
+ height: auto;
+ width: auto;
+ min-width: 100%;
+ overflow: visible;
+ border: 1px solid $primary-low;
+ box-shadow: 0 2px 2px rgba(0,0,0,0.4);
+
+ .events {
+ padding: 3px 4px;
+
+ li {
+ height: 25px;
+ line-height: 25px;
+
+ &.empty {
+ display: none;
+ }
+ }
+ }
+ }
+
+ .header {
+ position: relative;
+ }
+
+ .date label {
+ margin: 2px;
+ padding: 2px 3px;
+ margin-bottom: 0;
+ }
+
+ .close {
+ position: absolute;
+ right: 3px;
+ top: -3px;
+ }
+
+ .hidden-events {
+ margin: 2px 5px;
+
+ .btn {
+ font-size: 0.9em;
+ border-radius: 4px;
+ line-height: 1;
+ }
+ }
+
+ .has-events {
+ font-size: 7px;
+ }
+ }
+}
+
+ul.events-calendar-events {
+ margin: 0;
+ list-style: none;
+
+ li {
+ margin: 2px 0;
+ position: relative;
+ height: 16px;
+
+ .event {
+ padding: 0 7px;
+ height: inherit;
+ line-height: 16px;
+ border-top: 1px solid transparent;
+ border-bottom: 1px solid transparent;
+ white-space: nowrap;
+ overflow: hidden;
+ cursor: pointer;
+
+ span {
+ font-size: 0.9em;
+ }
+
+ .fa-circle {
+ color: inherit;
+ font-size: 0.8em;
+ }
+
+ &.all-day {
+ background-color: $tertiary;
+ color: $secondary;
+ border-top: 1px solid $primary-low;
+ border-bottom: 1px solid $primary-low;
+
+ &:not(.full-width) {
+ &.start {
+ margin-left: 4px;
+ border-radius: 4px 0 0 4px;
+ }
+
+ &.multi span.title {
+ position: absolute;
+ z-index: 1;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ &.start span.time {
+ margin-right: 5px;
+ float: left;
+ }
+
+ &.end {
+ margin-right: 4px;
+ border-radius: 0 4px 4px 0;
+ }
+ }
+ }
+
+ img.emoji {
+ height: 15px;
+ width: 15px;
+ }
+ }
+ }
+}
+
+.events-calendar-card {
+ position: absolute;
+ top: -15px;
+ left: -390px;
+ width: 350px;
+ z-index: 997;
+ background-color: $secondary;
+ box-shadow: shadow('card');
+ border: 1px solid $primary-low;
+ padding: 15px;
+ border-radius: 4px;
+
+ .topic-link {
+ font-size: 1.3em;
+
+ p {
+ margin: 0;
+ }
+ }
+
+ .close .fa {
+ vertical-align: top;
+ }
+
+ .topic-meta {
+ margin-top: 6px;
+ width: 100%;
+ display: flex;
+ flex-flow: wrap;
+ align-items: center;
+ }
+
+ .topic-event {
+ margin-top: 6px;
+ width: 100%;
+ display: inline-block;
+ cursor: pointer;
+ }
+
+ .topic-excerpt {
+ padding-top: 8px;
+ cursor: pointer;
+ line-height: 1.4;
+ width: 100%;
+ word-wrap: break-word;
+
+ p {
+ margin: 0;
+ }
+ }
+}
+
+.events-calendar-events .events-calendar-card .close {
+ position: absolute;
+ right: 5px;
+ top: 5px;
+}
+
+.events-below {
+ margin-top: 8px;
+ margin-bottom: 15px;
+
+ ul.events-calendar-events li {
+ height: auto;
+ line-height: 20px;
+ margin: 5px 0;
+ white-space: normal;
+
+ &.empty {
+ display: none;
+ }
+
+ img.emoji {
+ height: 20px;
+ width: 20px;
+ }
+ }
+}
+
+.edit-category-modal .enable-events .min-trust input {
+ width: 60px;
+}
+
+.event-rsvp {
+ display: flex;
+ align-items: center;
+
+ button {
+ min-height: initial;
+ margin-right: 7px;
+ }
+
+ .spinner {
+ width: 3px;
+ height: 3px;
+ margin-right: 8px;
+ }
+}
+
+.event-rsvp-details {
+ display: flex;
+ align-items: center;
+
+ a {
+ margin-right: 7px;
+ }
+}
+
+.modal-body.event-rsvp-modal {
+ overflow: hidden;
+
+ .header {
+ display: flex;
+
+ .types {
+ padding-top: 0;
+ padding-bottom: 15px;
+ margin: 0;
+ flex: 1;
+ }
+
+ .filter {
+ align-self: flex-start;
+ padding-bottom: 15px;
+ border-bottom: 1px solid $primary-low;
+
+ input {
+ width: 150px;
+ margin-bottom: -1px;
+ }
+ }
+ }
+
+ .list {
+ height: 300px;
+ position: relative;
+ overflow: scroll;
+
+ .spinner {
+ position: absolute;
+ left: calc(50% - 10px);
+ top: calc(50% - 10px);
+ }
+
+ ul {
+ list-style: none;
+ margin: 0;
+
+ li {
+ padding: 10px 15px;
+ border-bottom: 1px solid $primary-low;
+
+ .user-info {
+ margin-bottom: 0;
+ position: relative;
+ width: 100%;
+
+ .details {
+ position: absolute;
+ right: 20px;
+ top: 10px;
+ }
+ }
+ }
+ }
+ }
+}
+
+.main-link.row-below-title {
+ .link-top-line {
+ display: block;
+ }
+
+ > .date-time-container, > .topic-list-event-rsvp, > .discourse-tags {
+ display: inline-block;
+ margin-right: 10px;
+ }
+}
+
+.topic-list-event-rsvp {
+ font-size: 0.9em;
+ margin-top: 4px;
+}
+
+.composer-controls-event {
+ position: relative;
+
+ .popup-tip {
+ left: 0;
+ right: initial;
+ min-width: 300px;
+ }
+}
diff --git a/plugin.rb b/plugin.rb
index 58b690a7..89c1a5ac 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -27,6 +27,7 @@ if Rails.env.production?
stylesheets/wizard/wizard_composer.scss
stylesheets/wizard/wizard_variables.scss
stylesheets/wizard/wizard_custom_mobile.scss
+ stylesheets/wizard/jquery.timepicker.scss
}
end
diff --git a/views/layouts/wizard.html.erb b/views/layouts/wizard.html.erb
index db15672b..3ea941ef 100644
--- a/views/layouts/wizard.html.erb
+++ b/views/layouts/wizard.html.erb
@@ -5,6 +5,7 @@
<%= stylesheet_link_tag "wizard_composer" %>
<%= stylesheet_link_tag "wizard_variables" %>
<%= stylesheet_link_tag "wizard_custom_mobile" %>
+ <%= stylesheet_link_tag "jquery.timepicker"%>
<%- if theme_ids %>
<%= discourse_stylesheet_link_tag (mobile_view? ? :mobile_theme : :desktop_theme) %>
<%- end %>