diff --git a/_includes/calendar_input.liquid b/_includes/calendar_input.liquid index db093b1..24611fe 100644 --- a/_includes/calendar_input.liquid +++ b/_includes/calendar_input.liquid @@ -1,15 +1,4 @@ -{% comment %} -Pure CSS Scrolling Date Picker Visual Mock-up -Usage: -{% include calendar_input.liquid - id="unique_calendar_id" (required for multiple instances) - label="Select Date" (optional, defaults to "Select Date") - placeholder="YYYY-MM-DD" (optional, defaults to "YYYY-MM-DD") -%} -This component is a visual mock-up and does not provide actual date selection functionality. -The input field will not be updated by this picker. -{% endcomment %} - + {% assign current_year = "now" | date: "%Y" | plus: 0 %} {% assign future_year_limit = current_year | plus: 10 %} {% assign years = "" %} @@ -29,13 +18,13 @@ The input field will not be updated by this picker.
@@ -44,57 +33,54 @@ The input field will not be updated by this picker.
- -
-
- -
-
- {% for year_val in years_array %} - {% if year_val != "" %} -
{{ year_val }}
- {% endif %} +
+
+ {% for repeat in (1..3) %} + {% for year_val in years_array %} + {% if year_val != "" %} +
{{ year_val }}
+ {% endif %} + {% endfor %} {% endfor %}
-
-
- {% for month_val in months_array %} - {% if month_val != "" %} -
{{ month_val }}
- {% endif %} +
+
+ {% for repeat in (1..3) %} + {% for month_val in months_array %} + {% if month_val != "" %} +
{{ month_val }}
+ {% endif %} + {% endfor %} {% endfor %}
-
-
- {% for day_val in days_array %} - {% if day_val != "" %} -
{{ day_val }}
- {% endif %} +
+
+ {% for repeat in (1..3) %} + {% for day_val in days_array %} + {% if day_val != "" %} +
{{ day_val }}
+ {% endif %} + {% endfor %} {% endfor %}
-
@@ -104,30 +90,41 @@ The input field will not be updated by this picker.
+ + diff --git a/_includes/sidebar_post.liquid b/_includes/sidebar_post.liquid index 24561a6..4eeb128 100644 --- a/_includes/sidebar_post.liquid +++ b/_includes/sidebar_post.liquid @@ -131,10 +131,11 @@

Availability Date Range

-
- - -
+ {% include calendar_input.liquid + id="unique_calendar_id" + label="Select Date" + placeholder="YYYY-MM-DD" + %}