Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Disable state for Date and Time widgets
- Loading branch information
1 parent
0d43c46
commit 7871670
Showing
3 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
{% load i18n %} | ||
|
||
<div class="date-input date-block"> | ||
<input id="{{ widget.attrs.id }}" type="{{ widget.type }}" name="{{ widget.name }}" class="{{ widget.attrs.class }}" value="{{ widget.value|default_if_none:'' }}"> | ||
<i class="material-icons calendar" title="{% trans 'Calendar' %}">insert_invitation</i> | ||
<i class="material-icons today" title="{% trans 'Today' %}">save_alt</i> | ||
<input id="{{ widget.attrs.id }}" type="{{ widget.type }}" name="{{ widget.name }}" | ||
class="{{ widget.attrs.class }}" value="{{ widget.value|default_if_none:'' }}" | ||
{% if widget.attrs.disabled %}disabled{% endif %}> | ||
{% if not widget.attrs.disabled %} | ||
<i class="material-icons calendar" title="{% trans 'Calendar' %}">insert_invitation</i> | ||
<i class="material-icons today" title="{% trans 'Today' %}">save_alt</i> | ||
{% endif %} | ||
</div> | ||
<div class="time-difference"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{% load i18n %} | ||
|
||
<div class="time-input time-block"> | ||
<input id="{{ widget.attrs.id }}" type="{{ widget.type }}" name="{{ widget.name }}" class="timepicker" value="{{ widget.value|default_if_none:'' }}"> | ||
<i class="material-icons clock" title="{% trans 'Time' %}">access_time</i> | ||
<i class="material-icons now" title="{% trans 'Now' %}">save_alt</i> | ||
<input id="{{ widget.attrs.id }}" type="{{ widget.type }}" name="{{ widget.name }}" class="timepicker" | ||
value="{{ widget.value|default_if_none:'' }}" {% if widget.attrs.disabled %}disabled{% endif %}> | ||
{% if not widget.attrs.disabled %} | ||
<i class="material-icons clock" title="{% trans 'Time' %}">access_time</i> | ||
<i class="material-icons now" title="{% trans 'Now' %}">save_alt</i> | ||
{% endif %} | ||
</div> | ||
<div class="time-difference"></div> |