Skip to content

Instantly share code, notes, and snippets.

View chrismclarke's full-sized avatar

Chris Clarke chrismclarke

View GitHub Profile
@chrismclarke
chrismclarke / custom_date_picker.handlebars
Last active June 12, 2020 21:09
ODK-X Custom Datepicker Template
<div id="container-{{promptId}}">
<form action="javascript:void(0);" onsubmit="odkLeaveField(this);">
<div class="form-group">
<div class="container">
<label for="picker-{{promptId}}">{{> labelHint}}</label>
<br />
<input id="picker-{{promptId}}" type="date" name="{{name}}" value="{{value}}" tabindex="0"
style="background-color:#ffffff" {{#eachProperty inputAttributes}} {{property}}="{{value}}"
{{/eachProperty}} {{#if disabled}} style="background-color:lightgray;" disabled="true" {{/if}}>
<button id="picker-{{promptId}}-button">Today</button>
@chrismclarke
chrismclarke / custom_datetime_picker.handlebars
Last active May 1, 2021 02:03
ODK-X Custom Datetimepicker Template
<div id="container-{{promptId}}">
<form action="javascript:void(0);" onsubmit="odkLeaveField(this);">
<div class="form-group">
<div class="container">
<label for="picker-{{promptId}}">{{> labelHint}}</label>
<br />
<input id="picker-{{promptId}}" type="datetime-local" name="{{name}}" value="{{value}}" tabindex="0"
style="background-color:#ffffff" {{#eachProperty inputAttributes}} {{property}}="{{value}}"
{{/eachProperty}} {{#if disabled}} style="background-color:lightgray;" disabled="true" {{/if}}>
<button id="picker-{{promptId}}-button">Now</button>
@chrismclarke
chrismclarke / odkx-sync-endpoint-https-proxy.md
Last active May 27, 2020 00:56
Install ODK-X sync endpoint with https via certbot and reverse-proxy for phpldapadmin
@chrismclarke
chrismclarke / docker-compose.yml
Last active April 30, 2021 08:27
ODK Aggregate Docker Compose - chrismclarke build
version: "3"
services:
db:
image: postgres:9.6-alpine
ports:
- 5432:5432
volumes:
- ./initdb:/docker-entrypoint-initdb.d
- odk_db_data:/var/lib/postgresql/data
restart: unless-stopped