5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 05:41:42 +00:00
panel/app/views/posts/template_field/_number.haml

9 lines
265 B
Text
Raw Normal View History

2018-06-22 18:58:49 +00:00
= number_field_tag field_name_for_post_as_string(name),
value,
class: 'form-control',
required: template.required?,
max: template.max > 0 ? template.max : nil,
min: template.min
- if template.max > 0
%small= raw t('posts.number.max', max: template.max)