61 lines
2.4 KiB
Plaintext
61 lines
2.4 KiB
Plaintext
<%= 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>
|
||
|
||
<div class="box search-form-container edu_settings-list-form">
|
||
<%= form_tag(action_nodes_path, method: :get, class: 'form-inline search-form flex-1') do %>
|
||
<%= text_field_tag(:search, params[:search], class: 'form-control col-12 col-md-2 mr-3', placeholder: '关键字检索') %>
|
||
<%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
|
||
<input type="reset" class="btn btn-secondary clear-btn" value="清空"/>
|
||
<% end %>
|
||
<%= link_to "新增", new_action_node_path, remote: true, class: "btn btn-primary pull-right", "data-disabled-with":"...新增" %>
|
||
</div>
|
||
|
||
<table border="1" width="100%">
|
||
<thead>
|
||
<tr>
|
||
<th>ID</th>
|
||
<th width="15%">节点名称</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.label %></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 %>
|