Skip to content

Instantly share code, notes, and snippets.

@bcls
Last active November 21, 2017 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcls/33291b96daed236b4bd811810f47db28 to your computer and use it in GitHub Desktop.
Save bcls/33291b96daed236b4bd811810f47db28 to your computer and use it in GitHub Desktop.
CMS search by date (html part) #html #javascript
<!-- 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