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

9 lines
368 B
Plaintext
Raw Normal View History

2018-10-04 02:47:23 +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 02:47:23 +00:00
<div class="controls">
<%= f.fields_for "#{node}_translations".to_sym do |f| %>
2023-06-04 14:41:53 +00:00
<%= f.text_field locale, class: "post-title #{style}", value: (@publication.send("#{node}_translations")[locale] rescue nil) %>
2018-10-04 02:47:23 +00:00
<% end %>
</div>
</div>