5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 19:56:21 +00:00
panel/app/views/posts/template_field/_text_area.haml

6 lines
242 B
Text
Raw Permalink Normal View History

= text_area_tag field_name_for_post_as_string(name), value,
2018-07-23 19:15:34 +00:00
class: 'form-control', required: template.required?,
maxlength: template.max > 0 ? template.max : nil
- if template.max > 0
%small= t('posts.text_area.max', max: template.max)