<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2009 Fabio Akita # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2008 Johan Sørensen # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %>

<%= form.label :summary, t(:summary, :scope => 'activerecord.attributes.merge_request') -%>
<%= t("views.merges.info.summary") %>
<%= form.text_field :summary -%>

<%= form.label :proposal, t(:proposal, :scope => 'activerecord.attributes.merge_request') -%>
<%= t("views.merges.info.proposal") %>
<%= form.text_area :proposal, :class => "text medium" -%>

<%= form.label :target_repository_id, t(:target_repository_id, :scope => 'activerecord.attributes.merge_request') -%>
<%= t("views.merges.info.target_repos") %>
<%= form.select :target_repository_id, @repositories.map{|r| [r.name, r.id] } -%>

<%= render :partial => "target_branches" -%>

<%= form.label :source_branch, t(:source_branch, :scope => 'activerecord.attributes.merge_request') -%>
<%= t("views.merges.info.source_branch") %>
<%= form.select :source_branch, @source_branches.collect(&:name), {:include_blank => true} %>

<%= link_to_remote "Fetch commits", :update => 'commit_selection', :url => commit_list_project_repository_merge_requests_path, :method => :get, :with => 'Form.serialize(document.forms[1])' if false-%> <%= render :partial => "commit_list" -%>