+ <%= f.text_field :label, placeholder: t("links.link_fields.label_placeholder") %>
-
- <%= f.text_field :url, placeholder: t('.url_placeholder') %>
+ <%= f.text_field :url, placeholder: t("links.link_fields.url_placeholder") %>
-
diff --git a/app/views/links/_nested_links.html.erb b/app/views/links/_nested_links.html.erb
index c46209798..7a7599760 100644
--- a/app/views/links/_nested_links.html.erb
+++ b/app/views/links/_nested_links.html.erb
@@ -1,22 +1,18 @@
-
- <%= f.hidden_field :id %>
+<%= f.hidden_field :id %>
- <%= f.label :links, t('.title') %>
-
<%= t('.note') %>
+<%= f.label :links, t("links.nested_links.title") %>
+
<%= t("links.nested_links.note") %>
-
- <%= f.fields_for :links do |links_builder| %>
- <%= render 'links/link_fields', f: links_builder %>
- <% end %>
-
-
- <%= link_to_add_association t('.add_new_link'), f, :links,
- partial: 'links/link_fields',
- id: 'new_link_button',
- class: 'button hollow',
- data: {
- association_insertion_node: '#nested-links',
- association_insertion_method: 'append'
- } %>
+
+ <%= f.fields_for :links do |links_builder| %>
+ <%= render 'links/link_fields', f: links_builder %>
+ <% end %>
+<%= link_to_add_association t("links.nested_links.add_new_link"), f, :links,
+ partial: "links/link_fields", id: "new_link_button",
+ data: {
+ association_insertion_node: "#nested-links",
+ association_insertion_method: "append"
+ },
+ class: "button hollow" %>