Inputs
+ +Time
+A time of the day
+ +Add class time--12
to activate AM/PM support
Timeframe
+A time between 00:00 and 99:99 hours
+ + +Text Input
+Example block-level help text here.
+diff --git a/app/assets/javascripts/app/controllers/layout_ref.js.coffee b/app/assets/javascripts/app/controllers/layout_ref.js.coffee index 86d2a26ae..aef80a862 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.js.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.js.coffee @@ -1417,25 +1417,33 @@ class schedulersRef extends App.ControllerContent App.Config.set( 'layout_ref/schedulers', schedulersRef, 'Routes' ) -class searchableSelectRef extends App.ControllerContent +class InputsRef extends App.ControllerContent constructor: -> super @render() render: -> + @html App.view('layout_ref/inputs') + + # activate widgets + + # selectable search searchableSelectObject = new App.SearchableSelect attribute: name: 'project-name' id: 'project-name-123' placeholder: 'Enter Project Name' - options: [{"value":0,"name":"Appleasdfasdfasdjflkajhsdlfkjahsdlfkjahsdlkfjahsdlkfjahsldkfjahsldkjfahsldkjfh asdf lkajshdfl kajshdfl kajhsdflk ajhsdlfk jahsdlfk jahsdlfk jahsdlkfj ahsdlkfj ahsldkjfahskdjfh aslkdjfhal skdjfha lksdjfhalksdjhfal ksjdal kjsdhfakl sjdhafl jsdhf laskdjhfal ksjdhfal ksdjhfal kjsdhal kjsdhfl akjsdhf lhkj"},{"value":1,"name":"Microsoft","selected":true},{"value":2,"name":"Google"},{"value":3,"name":"Deutsche Bahn"},{"value":4,"name":"Sparkasse"},{"value":5,"name":"Deutsche Post"},{"value":6,"name":"Mitfahrzentrale"},{"value":7,"name":"Starbucks"},{"value":8,"name":"Mac Donalds"},{"value":9,"name":"Flixbus"},{"value":10,"name":"Betahaus"},{"value":11,"name":"Bruno Banani"},{"value":12,"name":"Alpina"},{"value":13,"name":"Samsung"},{"value":14,"name":"ChariTea"},{"value":15,"name":"fritz-kola"},{"value":16,"name":"Vitamin Water"},{"value":17,"name":"Znuny"},{"value":18,"name":"Max & Moritz"}] - - @html App.view('layout_ref/search_select') - + options: [{"value":0,"name":"Apple"},{"value":1,"name":"Microsoft","selected":true},{"value":2,"name":"Google"},{"value":3,"name":"Deutsche Bahn"},{"value":4,"name":"Sparkasse"},{"value":5,"name":"Deutsche Post"},{"value":6,"name":"Mitfahrzentrale"},{"value":7,"name":"Starbucks"},{"value":8,"name":"Mac Donalds"},{"value":9,"name":"Flixbus"},{"value":10,"name":"Betahaus"},{"value":11,"name":"Bruno Banani"},{"value":12,"name":"Alpina"},{"value":13,"name":"Samsung"},{"value":14,"name":"ChariTea"},{"value":15,"name":"fritz-kola"},{"value":16,"name":"Vitamin Water"},{"value":17,"name":"Znuny"},{"value":18,"name":"Max & Moritz"}] @$('.searchableSelectPlaceholder').replaceWith( searchableSelectObject.el ) -App.Config.set( 'layout_ref/search_select', searchableSelectRef, 'Routes' ) + # time and timeframe + @$('.time').timepicker() + + @$('.timeframe').timepicker + maxHours: 99 + +App.Config.set( 'layout_ref/inputs', InputsRef, 'Routes' ) class calendarSubscriptionsRef extends App.ControllerContent diff --git a/app/assets/javascripts/app/views/layout_ref/index.jst.eco b/app/assets/javascripts/app/views/layout_ref/index.jst.eco index 5962115a6..9de1dfa60 100644 --- a/app/assets/javascripts/app/views/layout_ref/index.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/index.jst.eco @@ -4,9 +4,9 @@
A time of the day
+ +Add class time--12
to activate AM/PM support
A time between 00:00 and 99:99 hours
+ + +Example block-level help text here.
+Should always have a placeholder.
- - -