File name
Commit message
Commit date
2013-02-22
2013-02-25
File name
Commit message
Commit date
File name
Commit message
Commit date

2012-11-29
2012-08-28
File name
Commit message
Commit date
@(title:String, newProjectForm:Form[Project])
@import playRepository.RepositoryService
@home(title, utils.MenuType.NEW_PROJECT){
<div class="page">
<div class="form-wrap new-project">
<form action="@routes.ProjectApp.newProject()" method="post" name="newproject" class="frm-wrap">
<dl>
<dt>
<label for="name">새 프로젝트 이름을 입력해주세요</label>
</dt>
<dd>
<input id="project-name" type="text" name="name" class="text" placeholder="영문으로 공백없이 작성해 주세요" maxlength="250">
</dd>
<dt>
<label for="overview">프로젝트 설명을 입력해주세요</label>
</dt>
<dd>
<textarea id="description" name="overview" class="text textarea.span4" style="resize:vertical;"></textarea>
</dd>
</dl>
<ul class="options unstyled">
<li class="option">
<div class="option-label">공개설정</div>
<div class="option-desc">
<input name="share_option" type="radio" checked="checked" id="public" value="true" class="radio-btn"><label for="public" class="bg-radiobtn label-public">공개</label>
<input name="share_option" type="radio" id="private" value="false" class="radio-btn"><label for="private" class="bg-radiobtn label-private">비공개</label>
<span class="note">비공개 프로젝트도 프로젝트 이름, 설명, 로그 등은 모든 사용자가 볼 수 있습니다.</span>
</div>
</li>
<li class="option">
<div class="option-label">코드관리시스템</div>
<div class="option-desc">
<div class="btn-group">
<button data-toggle="dropdown" class="btn" id="vcs_msg">Git</button>
<button data-toggle="dropdown" class="btn dropdown-toggle"><span class="caret"></span></button>
<ul class="dropdown-menu" id="vcs_dropdown">
@RepositoryService.vcsTypes.map{ v =>
<li><a href="#!/git" value="@v._1">@Messages(v._2)</a></li>
}
<!-- 여기가 일반 input이 아니라서 submit시에 자료를 넣어줘야 할듯...-->
</ul>
<input type="hidden" name="vcs" id="vcs" value="GIT"/>
</div>
</div>
</li>
<li class="option">
<div class="option-label">이용약관 <a href="#agreement" data-toggle="modal"><i class="ico ico-que-mark"></i></a></div>
<div id="agreement" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>이용약관</h3>
</div>
<div class="modal-body">
<pre>@agrements()</pre>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
</div>
</div>
<div class="option-desc">
<input type="checkbox" class="stipulation checkbox checkbox-btn" autocomplete="off" id="stipulation" name="accept"><label for="stipulation" class="bg-checkbox label-agreement">본인은 약관에 대한 안내를 읽었으며 동의 합니다.</label>
</div>
</li>
</ul>
<div class="actions">
<button class="btn-transparent n-btn orange med">@Messages("project.create")</button>
<a href="/" class="n-btn gray med cancel">CANCEL</a>
</div>
</form>
</div>
</div>
<script>
$("#vcs_dropdown li a").click(function(e){
var $target = $(this);
var data = $target.attr("value");
var msg = $target.text();
$("#vcs").attr("value",data);
$("#vcs_msg").text(msg);
});
nforge.require('validation.newProject', 'newproject');
</script>
}