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

11 lines
439 B
Plaintext

<div class="control-group input-title">
<%= f.label node ,t("publication.#{node}"), class: "control-label muted" %>
<%= f.fields_for "#{node}_translations".to_sym do |f| %>
<div class="controls">
<div class="textarea">
<%= f.text_area locale, style: "width:100%", class: 'ckeditor input-block-level', value: (@publication.send("#{node}_translations")[locale] rescue nil) %>
</div>
</div>
<% end %>
</div>