mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 22:26:22 +00:00
11 lines
298 B
Text
11 lines
298 B
Text
= number_field_tag field_name_for_post_as_string(name),
|
|
value,
|
|
class: 'form-control',
|
|
required: template.required?,
|
|
list: "#{name}_years",
|
|
min: template.min,
|
|
max: Date.today.year
|
|
|
|
%datalist{id: "#{name}_years"}
|
|
- (template.min..Date.today.year).to_a.each do |y|
|
|
%option{value: y}
|