From 0a5d7806700bb3154529b99abc75d37ccc46faff Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 02:23:13 +0200 Subject: Extract admin strings to i18n: the nodes cluster --- app/views/nodes/new.html.erb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'app/views/nodes/new.html.erb') diff --git a/app/views/nodes/new.html.erb b/app/views/nodes/new.html.erb index f9efbf50..b56bbeed 100644 --- a/app/views/nodes/new.html.erb +++ b/app/views/nodes/new.html.erb @@ -1,4 +1,4 @@ -

Create new node

+

<%= t(".title") %>

<% if @node.errors.any? %>
@@ -9,7 +9,7 @@ <%= form_tag nodes_path do %>
-
Type
+
<%= t(".type") %>
<% CccConventions::NODE_KINDS.each do |kind, config| %>

@@ -23,14 +23,14 @@ <% end %>

-
Title
+
<%= t("admin.columns.title") %>
<%= text_field_tag :title, nil, required: true %> - A URL slug will be generated from this automatically. You can review or adjust it afterward under the "metadata" section's Slug field. + <%= t(".slug_hint") %>
"> -
Parent
+
<%= t(".parent") %>
<%= text_field_tag :parent_search_term, @parent&.title %> <%= hidden_field_tag :parent_id, @parent&.id, data: { unique_name: @parent&.computed_unique_name } %> @@ -38,18 +38,18 @@
-
Resulting path
+
<%= t(".resulting_path") %>
- This preview updates as you type. The final path can still be changed afterward by editing the title (for the last segment) or moving the node to a different parent (for everything before it). + <%= t(".path_hint") %>
<% if @attach_asset %> -
attachment
+
<%= t(".attachment") %>
  • @@ -60,14 +60,14 @@ :target => "_blank", :rel => "noopener" %>
- This asset will automatically be attached to the new page. - + <%= t(".attach_hint") %> + <%= hidden_field_tag :asset_id, @attach_asset.id %>
<% end %>
-
<%= submit_tag "Create" %>
+
<%= submit_tag t("admin.common.create") %>
<% end %> -- cgit v1.3