Skip to content

Commit

Permalink
add datepicker to admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkloud9 committed Dec 8, 2014
1 parent b011bff commit a309452
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Resources/views/Admin/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
</div>
<div>
<label class="admin-form-label" for="start">Start :</label>
<input type="text" id="start" value="{{ start }}">
<input class="datepicker" type="text" id="start" value="{{ start }}">
</span>
</div>
<div>
<span>
<label class="admin-form-label" for="end">End :</label>
<input type="text" id="end" value="{{ end }}">
<input class="datepicker" type="text" id="end" value="{{ end }}">
</span>
</div>
<div>
Expand Down Expand Up @@ -104,7 +104,11 @@
</div>

<script type="text/javascript">
$(function() {
$('.datepicker').datepicker({
dateFormat: 'yy-mm-dd\T00:00:00\Z'
});
});
var dynatable = $('#events-table').dynatable({
inputs: {
paginationClass: 'pagination',
Expand Down

0 comments on commit a309452

Please sign in to comment.