|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
$("#pro_st_edit_ku").toggle();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<%= error_messages_for 'repository' %>
|
|
|
|
|
<%= str = error_messages_for 'repository' %>
|
|
|
|
|
<% project_path_cut = RepositoriesHelper::PROJECT_PATH_CUT %>
|
|
|
|
|
<% ip = RepositoriesHelper::REPO_IP_ADDRESS %><!--Added by tanxianbo For formatting project's path-->
|
|
|
|
|
<% if @project.repositories.any? %>
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
<div id="pro_st_edit_ku" class="pro_st_edit_ku">
|
|
|
|
|
<ul>
|
|
|
|
|
<li >
|
|
|
|
|
<label class="label02"> 管理系统 :</label>
|
|
|
|
|
<label class="label02"><%=l(:label_scm)%>:</label>
|
|
|
|
|
<%= select_tag('repository_scm',
|
|
|
|
|
options_for_select(["Git"],@repository.class.name.demodulize),
|
|
|
|
|
:data => {:remote => true, :method => 'get'})%>
|
|
|
|
@ -73,25 +73,24 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|
<li >
|
|
|
|
|
<label class="label02"> 主版本库 :</label>
|
|
|
|
|
<label class="label02"><%=l(:field_repository_is_default)%>:</label>
|
|
|
|
|
<%= f.check_box :is_default, :label => "" %></p>
|
|
|
|
|
</li>
|
|
|
|
|
<li >
|
|
|
|
|
<label class="label02"><span class="c_red">*</span> 版本库名 :</label>
|
|
|
|
|
<label class="label02"><span class="c_red">*</span><%=l(:label_repository_name)%>:</label>
|
|
|
|
|
<%= f.text_field :identifier, :disabled =>@repository.nil? || @repository.identifier_frozen? ? true:false,:label=>""%>
|
|
|
|
|
<% unless @repository.identifier_frozen? %>
|
|
|
|
|
<span class="c_grey">长度必须在 1 到 254 个字符之间。 仅小写字母(a-z)、数字、破折号(-)和下划线(_)可以使用。
|
|
|
|
|
一旦保存,标识无法修改。</span>
|
|
|
|
|
<span class="c_grey"><%=l(:text_length_between,:min=>1,:max=>254)<<l(:text_project_identifier_info)%></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|
<li >
|
|
|
|
|
<label class="label02"><span class="c_red">*</span> 密码 :</label>
|
|
|
|
|
<label class="label02"><span class="c_red">*</span><%=l(:label_password)%></label>
|
|
|
|
|
<%= f.password_field :upassword, :label=> "" %>
|
|
|
|
|
<span class="c_grey">该密码在项目组内可共享</span>
|
|
|
|
|
<span class="c_grey"><%= l(:label_upassword_info)%></span>
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul>
|
|
|
|
|
<a href="#" onclick="$('#repository-form').submit();" class="blue_btn fl ml110">保存</a>
|
|
|
|
|
<a href="<%= settings_project_path(@project, :tab => 'repositories')%>" class="grey_btn fl ml10">取消</a>
|
|
|
|
|
<a href="#" onclick="$('#repository-form').submit();" class="blue_btn fl ml110"><%=l(:button_save)%></a>
|
|
|
|
|
<a href="<%= settings_project_path(@project, :tab => 'repositories')%>" class="grey_btn fl ml10"><%=l(:button_cancel)%></a>
|
|
|
|
|
</div><!--pro_st_edit_issues end-->
|
|
|
|
|
<% end %>
|