mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 09:45:57 +08:00
orgs search
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
<% define_admin_breadcrumbs do %>
|
||||
<% add_admin_breadcrumb('组织管理', admins_organizations_path) %>
|
||||
<% end %>
|
||||
<div class="box search-form-container user-list-form">
|
||||
<%= form_tag(admins_organizations_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
|
||||
|
||||
<%= text_field_tag(:keyword, params[:keyword], class: 'form-control col-sm-2 ml-3', placeholder: 'login/昵称') %>
|
||||
|
||||
<%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box admin-list-container organizations-list-container">
|
||||
<%= render partial: 'admins/organizations/shared/org_list', locals: { organizations: @orgs } %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$('.users-list-container').html("<%= j( render partial: 'admins/organizations/shared/org_list', locals: { organizations: @orgs } ) %>");
|
||||
$('.organizations-list-container').html("<%= j( render partial: 'admins/organizations/shared/org_list', locals: { organizations: @orgs } ) %>");
|
||||
@@ -2,6 +2,7 @@
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th width="4%">序号</th>
|
||||
<th width="4%">ID</th>
|
||||
<th width="8%" class="text-left">login</th>
|
||||
<th width="8%" class="text-left">昵称</th>
|
||||
<th width="10%"><%= sort_tag('创建于', name: 'created_on', path: admins_organizations_path) %></th>
|
||||
@@ -15,6 +16,7 @@
|
||||
<% organizations.each_with_index do |org, index| %>
|
||||
<tr class="org-item-<%= org.id %>">
|
||||
<td><%= list_index_no((params[:page] || 1).to_i, index) %></td>
|
||||
<td><%= org.id %></td>
|
||||
<td class="text-left">
|
||||
<%= link_to "/#{org.login}", target: '_blank' do %>
|
||||
<%= overflow_hidden_span org.login, width: 100 %>
|
||||
|
||||
Reference in New Issue
Block a user