Browse Source

Theme Preview Page should include datepicker.

Change-Id: I8b107dd3a28c8434fe5c5e5ba8e3ef0ecd1df0f2
partially-implements: blueprint bootstrap-theme-preview
Depends-On: https://review.openstack.org/#/c/318933
Diana Whitten 2 years ago
parent
commit
1bf5c9752c

+ 2
- 0
openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.directive.js View File

@@ -79,6 +79,8 @@
79 79
 
80 80
       horizon.d3_pie_chart_distribution.init();
81 81
       horizon.d3_pie_chart_usage.init();
82
+      horizon.forms.datepicker();
83
+      $('#datepicker').datepicker();
82 84
 
83 85
       var line_chart_selector = '.line-chart';
84 86
       var line_chart_data = [

+ 11
- 0
openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html View File

@@ -676,6 +676,17 @@
676 676
         <form class="form-horizontal">
677 677
           <fieldset>
678 678
             <legend translate>Other Input Types</legend>
679
+            <div class="form-group">
680
+              <label translate class="col-lg-2 control-label" for="datepicker">Datepicker</label>
681
+              <div class="col-lg-10">
682
+                <div class='input-group'>
683
+                  <input type="text" class="form-control" id="datepicker">
684
+                  <span class="input-group-addon datepicker-addon">
685
+                    <span class="fa fa-calendar"></span>
686
+                  </span>
687
+                </div>
688
+              </div>
689
+            </div>
679 690
             <div class="form-group">
680 691
               <label translate class="col-lg-2 control-label" for="datetime-localInput">Datetime</label>
681 692
               <div class="col-lg-10">

Loading…
Cancel
Save