2015-04-20 14:54:04 +08:00
|
|
|
|
<%= error_messages_for 'project' %>
|
2015-04-11 17:04:48 +08:00
|
|
|
|
<%= labelled_form_for @project do |f| %>
|
|
|
|
|
<ul class="newpro_box ">
|
2015-04-16 15:48:13 +08:00
|
|
|
|
<li class="ml45 mb10">
|
2015-04-11 17:04:48 +08:00
|
|
|
|
<%= render :partial=>"avatar/new_avatar_form",:locals=> {source:@project} %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
2015-04-11 16:17:36 +08:00
|
|
|
|
|
2015-04-11 17:04:48 +08:00
|
|
|
|
<li >
|
|
|
|
|
<label class="label02"><span class="c_red">*</span> 名称 :</label>
|
2015-04-20 14:54:04 +08:00
|
|
|
|
<!--<input id="project_name" name="project[name]" class=" w543" type="text" value="<%#= @project.name%>">-->
|
|
|
|
|
<input type="text" name="project[name]" id="project_name" class="w543" maxlength="100" onkeyup="regex_project_name();" value="<%= @project.name %>">
|
|
|
|
|
<span class="c_red ml110" id="project_name_notice" style="display: none;">项目名称不能为空!</span>
|
2015-04-11 17:04:48 +08:00
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
<li >
|
|
|
|
|
<label class="label02" > 描述 :</label>
|
|
|
|
|
<textarea class="w543" id="project_description" name="project[description]" rows="8" placeholder="最多3000个汉字(或6000个英文字符)"><%= @project.description%></textarea>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|
<li >
|
|
|
|
|
<label class="label02">公开 :</label>
|
|
|
|
|
<input id="project_is_public" name="project[is_public]" type="checkbox" <%= @project.is_public ? "checked" : ""%>>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|
<li >
|
|
|
|
|
<label class="label02">隐藏代码库 :</label>
|
|
|
|
|
<input id="project_hidden_repo" name="project[hidden_repo]" type="checkbox" <%= @project.hidden_repo ? "checked" : ""%>>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
2015-04-20 14:54:04 +08:00
|
|
|
|
<a href="javascript:void(0)" class="blue_btn ml110" onclick="submit_edit_project(<%= @project.id %>);" >保存</a>
|
2015-04-11 17:04:48 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|