date-picker.html 806 B

12345678910111213141516171819
  1. <div class="date-picker" id="{{ widget.attrs.id }}">
  2. <div></div>
  3. {% for weekday in widget.weekdays %}
  4. <div class="weekday">{{ weekday }}</div>
  5. {% endfor %}
  6. <div></div>
  7. {% for week in widget.weeks %}
  8. <div class="month">{{ week.month }}</div>
  9. {% for day in week.days %}
  10. <div class="day{% if day.date == widget.today %} today{% endif %}{% if day.date < widget.today %} hidden{% endif %}">
  11. <input class="checkable" type="checkbox" id="date_{{ day.date|date:"Y-m-d" }}" name="date_{{ day.date|date:"Y-m-d" }}" />
  12. <label class="checkable day-number" for="date_{{ day.date|date:"Y-m-d" }}">{{ day.day }}</label>
  13. </div>
  14. {% endfor %}
  15. <div class="year">{{ week.year }}</div>
  16. {% endfor %}
  17. </div>