forgeplus/app/views/action/node_selects/edit.html.erb

47 lines
1.4 KiB
Plaintext

<h1>编辑
<!-- <a href="/managements/competition/customize" style="font-size: 28px;">>>前往定制竞赛管理页面</a>-->
</h1>
<%= form_with(model: @node_select, url: action_node_node_select_path(@node,@node_select), local: true) do |form| %>
<% if @node_select.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@node_select.errors.count, "error") %> prohibited this node select from being saved:</h2>
<ul>
<% @node_select.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= form.label :name, "选择项名称" %>
<%= form.text_field :name %>
</div>
<div class="field">
<%= form.label :val, "选择项值" %>
<%= form.text_field :val %>
</div>
<div class="field">
<%= form.label :val_ext, "选择项值扩展" %>
<%= form.text_field :val_ext %>
</div>
<div class="field">
<%= form.label :description, "描述" %>
<%= form.text_area :description, rows: 5, :style => 'width:800px;' %>
</div>
<div class="field">
<%= form.label :sort_no, "排序号" %>
<%= form.text_field :sort_no %>
</div>
<div class="actions" style="margin-top:10px;">
<!-- <a href="/managements/competition/customize" style="font-size: 28px;">>>前往节点管理页面</a>-->
<%= form.submit("保存") %>
</div>
<% end %>
<%= link_to 'Back', action_node_node_inputs_path(@node) %>