redmine-role-groups/app/views/role_groups/index.html.erb
ioresponse 16263fdccb Initial commit: Redmine Role Groups Plugin
🤖 Generated with Claude Code
2025-12-23 00:22:07 +09:00

39 lines
1.2 KiB
Plaintext

<h2>역할 그룹 관리</h2>
<p>
<%= link_to '새 역할 그룹', new_role_group_path, class: 'icon icon-add' %>
</p>
<% if @role_groups.any? %>
<table class="list">
<thead>
<tr>
<th>역할 그룹</th>
<th>설명</th>
<th>멤버 수</th>
<th>작업</th>
</tr>
</thead>
<tbody>
<% @role_groups.each do |group| %>
<tr>
<td>
<span style="display: inline-block; width: 12px; height: 12px; background: <%= group.color %>; border-radius: 2px; margin-right: 8px;"></span>
<strong><%= link_to group.name, role_group_path(group) %></strong>
</td>
<td><%= truncate(group.description, length: 50) %></td>
<td><%= group.member_count %>명</td>
<td>
<%= link_to '관리', role_group_path(group), class: 'icon icon-user' %>
<%= link_to '수정', edit_role_group_path(group), class: 'icon icon-edit' %>
<%= link_to '삭제', destroy_role_group_path(group), method: :delete,
data: { confirm: '정말 삭제하시겠습니까?' }, class: 'icon icon-del' %>
</td>
</tr>
<% end %>
</tbody>
</table>
<% else %>
<p class="nodata">등록된 역할 그룹이 없습니다.</p>
<% end %>