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

13 lines
361 B
Text
Raw Normal View History

2018-06-20 16:54:41 +00:00
.form-group
2018-07-23 19:23:53 +00:00
= 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
2018-06-20 16:54:41 +00:00
= render "posts/template_field/#{template.type}",
template: template,
name: name,
2018-06-22 18:43:14 +00:00
value: value,
nested: true