Skip to content

Instantly share code, notes, and snippets.

@samuelmale
Last active November 13, 2019 07:37
Show Gist options
  • Save samuelmale/6c9ad93c6f9b8c05e84b6f3c36da86f3 to your computer and use it in GitHub Desktop.
Save samuelmale/6c9ad93c6f9b8c05e84b6f3c36da86f3 to your computer and use it in GitHub Desktop.
<!-- Introduce a class that will keep the input field and calender icon of the datetimepicker widget inline. -->
<style>
.datetimepicker {
/* Ideally the calendar icon will consume the rest of the 20% of the datetimepicker widget */
width: 80%;
}
</style>
<!-- Include the fragment with this class -->
<obsFromFragment
fragment="field/datetimepicker"
provider="uicommons"
conceptId="ICRC:1990665"
initFragmentParamName="defaultDate"
fragmentParams="classes=form-control%20datetimepicker&amp;formFieldName=consultation_date&amp;label=&amp;useTime=false&amp;endDate=$formGeneratedDatetime" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment