aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorMaZderMind2015-03-31 21:56:23 +0200
committerMaZderMind2015-03-31 21:56:23 +0200
commit69156f7cf1cc8e74425934677fff83b70799fe1b (patch)
treeba6064ba888f04df18aa8fd7ed63e7e88415d703 /template
parent7a163c226c99eb97fb9ce59ce5774da513bcdfd1 (diff)
Datepicker in Feedback-Read GUI
Diffstat (limited to 'template')
-rw-r--r--template/feedback-read.phtml24
-rw-r--r--template/page.phtml1
2 files changed, 23 insertions, 2 deletions
diff --git a/template/feedback-read.phtml b/template/feedback-read.phtml
index 6886181..0c42d37 100644
--- a/template/feedback-read.phtml
+++ b/template/feedback-read.phtml
@@ -10,7 +10,17 @@
<label class="sr-only" for="from">From Date</label>
<div class="input-group">
<div class="input-group-addon">From:</div>
- <input type="date" class="form-control" name="from" id="from" value="<?=h(date('Y-m-d', $from))?>">
+ <input
+ type="text"
+ data-provide="datepicker"
+ data-date-format="yyyy-mm-dd"
+ data-date-week-start="1"
+ data-date-today-btn="linked"
+ data-date-today-highlight="true"
+ class="form-control"
+ name="from"
+ id="from"
+ value="<?=h(date('Y-m-d', $from))?>">
</div>
</div>
@@ -18,7 +28,17 @@
<label class="sr-only" for="to">To Date</label>
<div class="input-group">
<div class="input-group-addon">To:</div>
- <input type="date" class="form-control" name="to" id="to" value="<?=h(date('Y-m-d', $to))?>">
+ <input
+ type="text"
+ data-provide="datepicker"
+ data-date-format="yyyy-mm-dd"
+ data-date-week-start="1"
+ data-date-today-btn="linked"
+ data-date-today-highlight="true"
+ class="form-control"
+ name="to"
+ id="to"
+ value="<?=h(date('Y-m-d', $to))?>">
</div>
</div>
diff --git a/template/page.phtml b/template/page.phtml
index cb79c16..3766135 100644
--- a/template/page.phtml
+++ b/template/page.phtml
@@ -47,6 +47,7 @@
<script type="text/javascript" src="assets/js/lib/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/lib/jquery.scrollTo.min.js"></script>
<script type="text/javascript" src="assets/js/lib/bootstrap.min.js"></script>
+ <script type="text/javascript" src="assets/js/lib/bootstrap-datepicker.min.js"></script>
<script type="text/javascript" src="assets/mejs/mediaelement-and-player.min.js"></script>
<script type="text/javascript" src="assets/js/lustiges-script.js"></script>