<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%>

<%= l(:label_repository) %>

<%= simple_format(l(:text_repository_usernames_mapping)) %> <% if @committers.empty? %>

<%= l(:label_no_data) %>

<% else %> <%= form_tag({}) do %> <% i = 0 -%> <% @committers.each do |committer, user_id| -%> <% i += 1 -%> <% end -%>
<%= User.human_attribute_name(:login) %> <%= User.model_name.human %>
<%=h committer %> <%= hidden_field_tag "committers[#{i}][]", committer %> <%= select_tag "committers[#{i}][]", content_tag('option', "-- #{l :actionview_instancetag_blank_option} --", :value => '') + options_from_collection_for_select(@users, 'id', 'name', user_id.to_i) %>

<%= submit_tag(l(:button_update)) %>

<% end %> <% end %>