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

8 lines
288 B
Text
Raw Normal View History

-# Si el campo está anidado, la raíz del atributo name tiene que
-# contener los demás elementos del template superior
- root, field_name = field_name_for_post(name)
= text_field root, field_name,
value: local_assigns[:value],
class: 'form-control',
required: template.required?