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

11 lines
431 B
Plaintext
Raw Normal View History

2018-10-04 05:29:27 +00:00
<div class="control-group input-title">
<%= f.label node ,t("journal.#{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: (@journal.send("#{node}_translations")[locale] rescue nil) %>
</div>
</div>
<% end %>
</div>