File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
2012-08-28
File name
Commit message
Commit date
@(title: String, form: Form[Milestone], milestoneId: Long, projectInst: Project)
@import utils.TemplateHelper._
@import models.enumeration._
@implicitField = @{ helper.FieldConstructor(simpleForm) }
@project.projectMngMain(title, projectInst) {
@prjmenu(projectInst, utils.MenuType.MILESTONE, "")
<div class="form-wrap milestone frm-wrap">
<form class="nm" action="@routes.MilestoneApp.editMilestone(projectInst.owner, projectInst.name, milestoneId)" method="post">
<div class="inner left">
<dl>
<dt>
<div class="n-alert hide" id="title_error">
<div class="n-inner">
<span class="msg">제목을 입력해주세요.</span>
<a href="#!/close" class="ico btn-delete"></a>
</div>
</div>
<label for="title">마일스톤 제목</label>
</dt>
<dd>
@helper.input(form("title")){(id, name, value, args) =>
<input type="text" name="@name" id="@id" class="text" value="@value">
}
</dd>
<dt>
<div class="n-alert hide" id="contents_error">
<div class="n-inner">
<span class="msg">내용</span>
<a href="#!/close" class="ico btn-delete"></a>
</div>
</div>
<label for="contents">내용을 입력해주세요</label>
</dt>
<dd>
@helper.input(form("contents")){(id, name, value, args) =>
<textarea class="textarea" id="@id" name="@name">@value</textarea>
}
</dd>
</dl>
<div class="actions">
<button type="submit" class="n-btn orange med btn-transparent save">SAVE</button>
<a href="@routes.MilestoneApp.manageMilestones(projectInst.owner, projectInst.name)" class="n-btn gray med">CANCEL</a>
</div>
</div>
<div class="inner right bubble-wrap dark-gray">
<p>마일스톤 상태</p>
<div>
<input type="radio" name="state" value="@State.OPEN" id="milestone-open" class="radio-btn" @if(form("state").value.equals(State.OPEN.name)) { checked="checked" }><label for="milestone-open" class="bold">Open</label>
<input type="radio" name="state" value="@State.CLOSED" id="milestone-close" class="radio-btn" @if(form("state").value.equals(State.CLOSED.name)) { checked="checked" }><label for="milestone-close" class="bold">Closed</label>
</div>
<hr/>
<p>완료일을 선택하세요</p>
<div class="n-alert hidden">
<div class="n-inner">
<span class="msg">완료일을 입력해주세요.</span>
<a href="#!/close" class="ico btn-delete"></a>
</div>
</div>
<label for="dueDate">
@helper.input(form("dueDate")){(id, name, value, args) =>
<input type="text" name="@name" id="@id" class="validate due-date" value="@value">
}
</label>
<div id="datepicker" class="date-picker"></div>
</div>
</form>
</div>
<link rel="stylesheet" type="text/css" href="@getCSSLink("pikaday")" />
<script type="text/javascript" src="@getJSLink("lib/moment.min")"></script>
<script type="text/javascript" src="@getJSLink("lib/pikaday")"></script>
<script type="text/javascript">
$(document).ready(function() {
$hive.loadModule("milestone.Write", {
"elDueDate" : $("#dueDate"),
"elDatePicker": $("#datepicker")
});
});
</script>
}