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

<% if @node.errors.any? %>
<% end %> <%= form_tag nodes_path do %>
<%= t(".type") %>
<% CccConventions::NODE_KINDS.each do |kind, config| %> <% prefix = resolve_kind_text(config[:path_prefix]) %>

<%= radio_button_tag :kind, kind, kind == @selected_kind, data: { path_prefix: prefix } %> <%= resolve_kind_text(config[:label]) %> <% if config[:hint] %> <%= resolve_kind_text(config[:hint]) %> <% end %> <% unless current_user.may_change_live_at?(prefix) %> <%= t(".restricted_kind") %> <% end %>

<% end %>
<%= t("admin.columns.title") %>
<%= text_field_tag :title, nil, required: true %> <%= t(".slug_hint") %>
">
<%= t(".parent") %>
<%= text_field_tag :parent_search_term, @parent&.title %> <%= hidden_field_tag :parent_id, @parent&.id, data: { unique_name: @parent&.computed_unique_name } %>
<%= t(".resulting_path") %>
<%= t(".path_hint") %>
<% if @attach_asset %>
<%= t(".attachment") %>
  • <% if @attach_asset.has_variant?(:thumb) %> <%= image_tag @attach_asset.upload.url(:thumb) %> <% end %> <%= link_to @attach_asset.name, asset_path(@attach_asset), :target => "_blank", :rel => "noopener" %>
<%= t(".attach_hint") %> <%= hidden_field_tag :asset_id, @attach_asset.id %>
<% end %>
<%= submit_tag t("admin.common.create") %>
<% end %>