Last active
November 21, 2017 17:55
-
-
Save bcls/33291b96daed236b4bd811810f47db28 to your computer and use it in GitHub Desktop.
CMS search by date (html part) #html #javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML part --> | |
<!-- date picker styles --> | |
<link rel="stylesheet" href="https://learning-services-media.brightcove.com/doc-assets/js/rome/rome.min.css" /> | |
<table class="bcls-table"> | |
<caption>Limit search by dates:</caption> | |
<tbody> | |
<tr> | |
<td>Date type</td> | |
<td>From date</td> | |
<td>To date</td> | |
</tr> | |
<tr> | |
<td><select class="date-field" id="dateRangeType" style="width:200px;font-size:1.3rem;"><option value="created_at" selected="selected">created_at</option><option value="updated_at">updated_at</option><option value="published_at">published_at</option><option value="schedule.starts_at">schedule.starts_at</option><option value="schedule.ends_at">schedule.ends_at</option> </select></td> | |
<td><input id="fromDate" class="date-field" style="width:200px;font-size:1.3rem;" /></td> | |
<td><input id="toDate" class="date-field" style="width:200px;font-size:1.3rem;" /></td> | |
</tr> | |
</tbody> | |
</table> | |
<!-- date picker script--> | |
<script src="https://learning-services-media.brightcove.com/doc-assets/js/rome/rome.min.js"></script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment