2015-04-11 17:04:48 +08:00
|
|
|
|
<%= labelled_form_for @project do |f| %>
|
|
|
|
|
<ul class="newpro_box ">
|
|
|
|
|
<li class="ml110 mb10">
|
|
|
|
|
<%= 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>
|
|
|
|
|
<input id="project_name" name="project[name]" class=" w543" type="text" value="<%= @project.name%>">
|
|
|
|
|
</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"><span class="c_red">*</span> 组织 :</label>
|
|
|
|
|
<%= select_tag :organization_id,options_for_select(project_organizations_id_option,@project.organization_id),{} %>
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<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>
|
|
|
|
|
<a href="javascript:void(0)" class="blue_btn ml110" onclick="$('#edit_project_<%= @project.id%>').submit();">保存</a>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|