mirror of https://github.com/snachodog/mybuddy.git
Use large inputs for datetime picker
This commit is contained in:
parent
475b7abf78
commit
e587ddeccd
|
@ -18,14 +18,14 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{% elif field|field_type == "datetimefield" or field|field_type == "datefield" %}
|
{% 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">
|
<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>
|
<span class="input-group-text"><i class="fa fa-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
{% if field.errors %}
|
{% 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 %}
|
{% else %}
|
||||||
{{ field|add_class:"datetimepicker-input form-control" }}
|
{{ field|add_class:"datetimepicker-input form-control form-control-lg" }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% elif 'choice' in field|field_type %}
|
{% elif 'choice' in field|field_type %}
|
||||||
|
|
Loading…
Reference in New Issue