forgeplus/app/views/action/nodes/index.html.erb

50 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
<h1>action 节点配置</h1>
<p><a href="<%= action_node_types_path %>" style="font-size: 14px;">>>前往节点分类配置</a></p>
<p><a href="<%= action_templates_path %>" style="font-size: 14px;">>>前往模板配置</a></p>
<p>说明该界面适用于action 节点配置参数配置</p>
<table border="1" width="100%">
<thead>
<tr>
<th>ID</th>
<th width="15%">节点名称</th>
<th width="20%">节点全称</th>
<th width="20%">节点描述</th>
<th width="10%">分类</th>
<!-- <th>是否本地化</th>-->
<!-- <th>本地化地址</th>-->
<!-- <th>yaml语法代码</th>-->
<th>排序号</th>
<th>更新时间</th>
<th colspan="3">操作</th>
</tr>
</thead>
<!-- :description, :action_node_types_id, :is_local, :local_url, :yaml, :sort_no,-->
<tbody>
<% @nodes.each do |info| %>
<tr>
<td><%= info.id %></td>
<td><%= info.name %></td>
<td><%= info.full_name %></td>
<td><%= info.description %></td>
<td><%= info.action_node_type&.name %></td>
<!-- <td><%#= info.is_local? %></td>-->
<!-- <td><%#= info.local_url %></td>-->
<!-- <td><%#= info.yaml %></td>-->
<td><%= info.sort_no %></td>
<td><%= info.updated_at&.strftime('%Y-%m-%d %H:%M') %></td>
<td><%= link_to '编辑', edit_action_node_path(info) %></td>
<td><%= link_to '参数列表', action_node_node_inputs_path(info) %></td>
<td><%= link_to 'Destroy', info, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to '新增', new_action_node_path %>