15 lines
404 B
Plaintext
15 lines
404 B
Plaintext
<%= form_for @announcement, url: {action: "create"} do |f| %>
|
|
<% I18n.available_locales.each do |locale| %>
|
|
Title <%= locale.to_s %>:
|
|
<%= f.fields_for :title_translations do |n| %>
|
|
<%= n.text_field locale %>
|
|
<% end %>
|
|
|
|
Body <%= locale.to_s %>:
|
|
<%= f.fields_for :body_translations do |n| %>
|
|
<%= n.text_area locale %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= f.submit "Create Announcement" %>
|
|
<% end %> |