12345678910111213141516171819 |
- <div class="date-picker" id="{{ widget.attrs.id }}">
- <div></div>
- {% for weekday in widget.weekdays %}
- <div class="weekday">{{ weekday }}</div>
- {% endfor %}
- <div></div>
- {% for week in widget.weeks %}
- <div class="month">{{ week.month }}</div>
- {% for day in week.days %}
- <div class="day{% if day.date == widget.today %} today{% endif %}{% if day.date < widget.today %} hidden{% endif %}">
- <input type="checkbox" id="date_{{ day.date|date:"Y-m-d" }}" name="date_{{ day.date|date:"Y-m-d" }}" />
- <label class="day-number" for="date_{{ day.date|date:"Y-m-d" }}">{{ day.day }}</label>
- </div>
- {% endfor %}
- <div class="year">{{ week.year }}</div>
- {% endfor %}
- </div>
|