%= form_with(model: node, local: true) do |form| %>
<%# if node.errors.any? %>
<%# node.errors.full_messages.each do |message| %>
<%# end %>
<%# end %>
类型:
<%= form.select :action_node_types_id, options_for_select(Action::NodeType.all.map { |key| [key.name, key.id]}, node.action_node_types_id), {}, class: "form-control" %>
<%= form.label :label, "节点名称" %>
<%= form.text_field :label %>
<%= form.label :name, "节点标识" %>
<%= form.text_field :name %>
<%= form.label :full_name, "节点全名" %>
<%= form.text_field :full_name %>
<%= form.label :description, "描述" %>
<%= form.text_area :description, rows: 5, :style => 'width:800px;' %>
<%= form.label :icon, "Icon图标" %>
<%= form.text_field :icon %>
<%= form.label :is_local, "是否本地化" %>
<%= form.check_box("is_local", {}, "true", "false") %>
<%= form.label :local_url, "本地化地址" %>
<%= form.text_field :local_url, :style => 'width:1200px;' %>
<%= form.label :sort_no, "排序号" %>
<%= form.text_field :sort_no %>
<%= form.label :yaml, "yaml语法代码" %>
<%= form.text_area :yaml, rows: 5, :style => 'width:1200px;' %>
<%= form.submit("保存") %>
<% end %>