5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 20:16:21 +00:00
panel/app/views/posts/template_field/_nested.haml

12 lines
361 B
Text

.form-group
= label_tag name.join('_'), id: name.join('_') do
- if template.private?
= fa_icon 'lock', title: t('posts.private')
= template.label
- if template.help
%small.text-muted.form-text= template.help
= render "posts/template_field/#{template.type}",
template: template,
name: name,
value: value,
nested: true