You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<div class="project_r_h02" style="width: 980px;">
|
|
|
|
|
<h2 class="project_h2"><%= l(:permission_new_contest)%></h2>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="hwork_new pr">
|
|
|
|
|
<ul>
|
|
|
|
|
<%= labelled_form_for @contest do |f| %>
|
|
|
|
|
<li class="mt10 ml45">
|
|
|
|
|
<label><span class="c_red">*</span> <%= l(:label_tags_contest_name)%> :</label>
|
|
|
|
|
<input type="text" name="contest[name]" id="new_course_name" class="courses_input" maxlength="100" placeholder="例如:全国大学生软件创新大赛" onkeyup="regex_contest_name('new');">
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<span class="c_red ml80" id="new_course_name_notice" style="display: none;">竞赛名称不能为空且至少有两个字符</span>
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<li class="mt10 mb5 ml78">
|
|
|
|
|
<label >公开 :</label>
|
|
|
|
|
<input id="course_is_public" name="contest[is_public]" type="checkbox" value="1">
|
|
|
|
|
<span class="c_grey">(选中后对所有用户可见,否则仅对成员可见)</span>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="mt10 ml45">
|
|
|
|
|
<a href="javascript:void(0)" class="blue_btn fl c_white" onclick="submit_new_contest();">提交</a>
|
|
|
|
|
<%= link_to "取消",user_activities_path(User.current.id),:class => "grey_btn fl c_white ml10"%>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|
<% end%>
|
|
|
|
|
</ul>
|
|
|
|
|
</div><!--talknew end-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
</script>
|