summaryrefslogtreecommitdiff
path: root/includes/sys_form.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-12-07 17:25:59 +0100
committermsquare <msquare@notrademark.de>2018-12-07 17:25:59 +0100
commita1c01461c6244dc30850d64c4795759f772f706b (patch)
tree09ad151e578d2879a77a278ab27a436a1ab119e8 /includes/sys_form.php
parentc035386f397cb711be6392ee240a10fed8b3c8bc (diff)
parent851e75c465cffcfae1d1d76cd8310e629e03a0e5 (diff)
resolve package.json
Diffstat (limited to 'includes/sys_form.php')
-rw-r--r--includes/sys_form.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/includes/sys_form.php b/includes/sys_form.php
index b5a957c0..3c31f43e 100644
--- a/includes/sys_form.php
+++ b/includes/sys_form.php
@@ -72,23 +72,10 @@ function form_date($name, $label, $value, $start_date = '', $end_date = '')
$shortLocale = substr($locale, 0, 2);
return form_element($label, '
- <div class="input-group date" id="' . $dom_id . '">
+ <div class="input-group date" id="' . $dom_id . '" data-locale="' . $shortLocale . '" data-min-date="' . $start_date . '" data-max-date="' . $end_date . '">
<input type="date" placeholder="YYYY-MM-DD" name="' . $name . '" class="form-control" value="' . htmlspecialchars($value) . '">'
. '<span class="input-group-addon">' . glyph('th') . '</span>
</div>
- <script type="text/javascript">
- $(function(){
- $("#' . $dom_id . '").children("input").attr("type", "text");
- $("#' . $dom_id . '").datepicker({
- language: "' . $shortLocale . '",
- todayBtn: "linked",
- format: "yyyy-mm-dd",
- startDate: "' . $start_date . '",
- endDate: "' . $end_date . '",
- orientation: "bottom"
- });
- });
- </script>
', $dom_id);
}