编辑

<%= form_with(model: @node_input, url: action_node_node_input_path(@node,@node_input), local: true) do |form| %> <% if @node_input.errors.any? %>

<%= pluralize(@node_input.errors.count, "error") %> prohibited this node_input from being saved:

<% end %>
<%= form.label :name, "参数名称" %> <%= form.text_field :name %>
<%= form.label :input_type, "参数类型" %> <%= form.text_field :input_type %>
<%= form.label :description, "描述" %> <%= form.text_area :description, rows: 5, :style => 'width:800px;' %>
<%= form.label :is_required, "是否必填项" %> <%= form.check_box("is_required", {}, "true", "false") %>
<%= form.label :sort_no, "排序号" %> <%= form.text_field :sort_no %>
<%= form.submit("保存赛事") %>
<% end %> <%= link_to 'Back', action_node_node_inputs_path(@node) %>