@** * Yobi, Project Hosting SW * * Copyright 2012 NAVER Corp. * http://yobi.io * * @author Yoon * * 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, milestoneForm: play.data.Form[Milestone], project: Project) @import helper._ @import utils.TemplateHelper._ @import models.enumeration._ @import scala.collection.Map @projectLayout(title, project, utils.MenuType.MILESTONE) { @projectMenu(project, utils.MenuType.MILESTONE, "")
@form(action = routes.MilestoneApp.newMilestone(project.owner, project.name), 'id -> "milestone-form") {
@defining(milestoneForm.errors().get("title")) { errors => @if(errors != null) {
@for(error <- errors) {
@Messages(error.message)
}
} }
@common.editor("contents", milestoneForm.data().get("contents"), "tabindex=2", "content-body")
@** fileUploader **@ @if(!UserApp.currentUser.isAnonymous) { @common.fileUploader(ResourceType.MILESTONE, null) } @** end of fileUploader **@
@Messages("button.cancel")
@Messages("milestone.form.state")
 
@Messages("milestone.form.dueDate")
} @** end of form **@
@common.markdown(project) }