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
|