


<div class="settings_common_container">

	<div class="settings_common_header" align="center">
			<%= link_to t('.new_group'), new_settings_user_group_path, class:"href_new_button", style:"float:left" %>
		<div class="settings_common_header_text"><%= t('.user_groups')%></div>
	</div>
	<div class="settings_common_table_container">
		<table class="table_body">
			<% UserGroup.all.each_with_index do |group,index| %>
			<tr style="height:50px;background:<%= if index % 2 > 0;$l_gray;else;$white;end %> ">
				<td style="width:30px"><%= index+1 %>.</td>
				<td><%= group[:name_rus] %></td>
				<td style="width:100px"><% if group.id != 1 %><%= link_to t(:edit), edit_settings_user_group_path(:id => group.id), class:"href_edit_button" %><% end%></td>
				<td style="width:100px">
					<% if group.id != 1 %>
						<%= link_to t(:delete), settings_user_group_path(:id => group.id), method: :delete, class:"href_delete_button" , data: { confirm: t(:confirm) } %>
					<% end %>
				</td>
			</tr>
			<% end %>
		</table>
	</div>
</div>