<div class="settings_common_container">

	<div class="settings_common_header" align="center">
			<%= link_to t('.new_user'), new_settings_user_path, class:"href_new_button", style:"float:left" %>
		<div class="settings_common_header_text"><%= t(:user_s)%></div>
	</div>
	<div class="settings_common_table_container">
		<table class="table_body">
			<% @users.each_with_index do |user,index| %>
			<tr style="background:<%= if index % 2 > 0;$l_gray;else;$white;end %> ">
				<td style="width:30px"><%= index+1 %>.</td>
				<td><%= user[:username]%></td>
				<td><%= UserGroup.find(user[:user_group_id]).name_rus %></td>
				<td style="width:100px"><%= link_to t(:edit), edit_settings_user_path(user), class:"href_edit_button" %></td>
				<td style="width:100px">
					<% if user.id != session[:user_id] && user.id != 1 %>
						<%= link_to t(:delete), settings_user_path(user), method: :delete, class:"href_delete_button", data: { confirm: t(:confirm) } %>
					<% end %>
				</td>
			</tr>
			<% end %>
		</table>
	</div>
</div>