@** * Yobi, Project Hosting SW * * Copyright 2013 NAVER Corp. * http://yobi.io * * @author Keesun Baik * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. **@ @(title:String, form: play.data.Form[PullRequest], project:Project, fromBranches: List[playRepository.GitBranch], toBranches:List[playRepository.GitBranch], pullRequest:models.PullRequest) @import scala.collection.Map @import utils.TemplateHelper._ @import utils.TemplateHelper.Branches._ @implicitField = @{ helper.FieldConstructor(simpleForm) } @projectLayout(title, pullRequest.toProject, utils.MenuType.PULL_REQUEST) { @projectMenu(pullRequest.toProject, utils.MenuType.PULL_REQUEST, "main-menu-only")
@helper.form(action=routes.PullRequestApp.editPullRequest(pullRequest.toProject.owner, pullRequest.toProject.name, pullRequest.number), 'enctype -> "multipart/form-data", 'class->"nm"){
@if(pullRequest.isOpen) {
@Messages("pullRequest.is.merging")
}
@common.editor("body", pullRequest.body, "data-is-user-has-typed=true", "content-body")
@common.fileUploader(ResourceType.PULL_REQUEST, pullRequest.id) @common.markdown(project)
@Messages("button.cancel")
@** this area will be replaced with asynchronously by yobi.git.Write.js after load this page. **@
}
@common.select2() }