Use large inputs for datetime picker

This commit is contained in:
Christopher C. Wells 2020-01-27 20:41:11 -08:00 committed by Christopher Charbonneau Wells
parent 475b7abf78
commit e587ddeccd
1 changed files with 3 additions and 3 deletions

View File

@ -18,14 +18,14 @@
</label>
</div>
{% elif field|field_type == "datetimefield" or field|field_type == "datefield" %}
<div class="input-group" id="datetimepicker_{{ field.name }}" data-target-input="nearest">
<div class="input-group input-group-lg date" id="datetimepicker_{{ field.name }}" data-target-input="nearest">
<div class="input-group-prepend" data-target="#datetimepicker_{{ field.name }}" data-toggle="datetimepicker">
<span class="input-group-text"><i class="fa fa-calendar"></i></span>
</div>
{% if field.errors %}
{{ field|add_class:"datetimepicker-input form-control is-invalid" }}
{{ field|add_class:"datetimepicker-input form-control form-control-lg is-invalid" }}
{% else %}
{{ field|add_class:"datetimepicker-input form-control" }}
{{ field|add_class:"datetimepicker-input form-control form-control-lg" }}
{% endif %}
</div>
{% elif 'choice' in field|field_type %}