Sha256: 36a9618b769229eade68f3318d592a86155bec664667435a209d683d38b5da90
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
<tr id="tr_<%= model.id %>" data-depth="<%= model.depth_str %>" style="display: <%= display %>" data-tree-target="item" data-controller="show" data-action="mouseenter->show#show mouseleave->show#hide"> <%= yield %> <td> <span data-show-target="item" style="visibility: hidden"> <%= link_to({ action: 'new', parent_id: model.id }, data: { turbo_frame: 'modal' }, aria: { label: '添加下级' }, class: 'button is-link is-small') do %> <i class="fas fa-plus"></i> <% end %> <%#= link_to 'JD', admin_department_job_descriptions_path(model), class: 'button is-small is-rounded is-light' %> <%= link_to({ action: 'show', id: model.id }, aria: { label: t('.show') }, class: 'button is-small is-rounded is-light') do %> <i class="fas fa-users"></i> <% end %> <%= link_to({ action: 'edit', id: model.id }, data: { turbo_frame: 'modal' }, aria: { label: t('.edit') }, class: 'button is-small is-rounded is-light') do %> <i class="fas fa-pencil-alt"></i> <% end %> <%= button_to({ action: 'destroy', id: model.id }, method: :delete, data: { confirm: t('.confirm') }, aria: { label: t('.destroy') }, class: 'button is-small is-rounded is-light') do %> <i class="fas fa-trash-alt"></i> <% end %> </span> </td> </tr> <% model.children.each do |child| %> <%= render partial: 'index_tbody', layout: 'index_tr', locals: { model: child, display: 'none' } %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_org-0.0.1 | app/views/org/admin/departments/_index_tr.html.erb |