Skip to content

Commit

Permalink
**BREAKING**: Rename uid=502(ashley.burnett) gid=20(staff) groups=20(…
Browse files Browse the repository at this point in the history
…staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),701(com.apple.sharepoint.group.1),702(com.apple.sharepoint.group.2),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae) parameter used for date inputs
  • Loading branch information
AshGDS committed Jan 8, 2025
1 parent 612ce50 commit b1c573d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%
add_gem_component_stylesheet("date-input")

id ||= "input-#{SecureRandom.hex(4)}"
date_input_id ||= "input-#{SecureRandom.hex(4)}"
name ||= nil
items ||= [
{ :name => "day", :width => 2 },
Expand Down Expand Up @@ -54,7 +54,7 @@
} %>
<% end %>

<%= tag.div class: date_css_classes, id: id do %>
<%= tag.div class: date_css_classes, id: date_input_id do %>
<% items.each do |item| %>
<%= tag.div class: "govuk-date-input__item" do %>
<%= render "govuk_publishing_components/components/input", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ examples:
name: dob-blwyddyn
width: 4
value: 1980
with_custom_date_id_value:
description: |
A custom id can be specified on the element that contains the date inputs. If omitted, a randomised id prefixed with `input-` will be used, for example `input-6c4c5730`.
data:
date_input_id: "hello_world"

0 comments on commit b1c573d

Please sign in to comment.