publication/app/views/admin/publications/_form_text_area.html.erb

11 lines
439 B
Plaintext
Raw Permalink Normal View History

2018-10-04 05:29:27 +00:00
<div class="control-group input-title">
2023-06-04 14:41:53 +00:00
<%= f.label node ,t("publication.#{node}"), class: "control-label muted" %>
2018-10-04 05:29:27 +00:00
<%= f.fields_for "#{node}_translations".to_sym do |f| %>
<div class="controls">
<div class="textarea">
2023-06-04 14:41:53 +00:00
<%= f.text_area locale, style: "width:100%", class: 'ckeditor input-block-level', value: (@publication.send("#{node}_translations")[locale] rescue nil) %>
2018-10-04 05:29:27 +00:00
</div>
</div>
<% end %>
</div>