mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-08 07:41:58 +08:00
Currently, herb/formatter has at least 4 bugs the prevent us from switching to it (https://github.com/marcoroth/herb/issues 476, 477, 478, and 479). This includes manual fixes for each issue. herb/formatter also introduces a rubocop violation for the Layout/AssignmentIndentation cop. This disables that cop.
18 lines
415 B
Text
18 lines
415 B
Text
<%# locals: (name: nil, label: nil, default_date: nil, min_date: nil, max_date: nil) %>
|
|
|
|
<% @enable_datepicker = true %>
|
|
|
|
<%== part(
|
|
"components/form/text",
|
|
label: label,
|
|
name: name,
|
|
extra_class: "datepicker",
|
|
attributes: {
|
|
required: true,
|
|
placeholder: "YYYY-MM-DD HH:MM",
|
|
"data-maxDate": max_date,
|
|
"data-minDate": min_date,
|
|
"data-defaultDate": default_date,
|
|
hidden: true
|
|
}
|
|
) %>
|