2013-08-01 10:33:49 +08:00
|
|
|
<%= error_messages_for 'repository' %>
|
|
|
|
|
|
|
|
<div class="box tabular">
|
|
|
|
<p>
|
2013-08-12 23:43:26 +08:00
|
|
|
<%= label_tag('repository_scm', l(:label_scm)) %>
|
|
|
|
<!--Modified by tanxianbo-->
|
|
|
|
<%= select_tag('repository_scm',
|
|
|
|
options_for_select(["Subversion"],@repository.class.name.demodulize),
|
|
|
|
:data => {:remote => true, :method => 'get'})%>
|
|
|
|
<!--Ended by tanxianbo-->
|
2013-08-01 10:33:49 +08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p><%= f.check_box :is_default, :label => :field_repository_is_default %></p>
|
2013-08-14 20:56:20 +08:00
|
|
|
<p><%= f.text_field :identifier, :required => true, :disabled => @repository.identifier_frozen? %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% unless @repository.identifier_frozen? %>
|
|
|
|
<em class="info"><%= l(:text_length_between, :min => 1, :max => Repository::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_repository_identifier_info).html_safe %></em>
|
|
|
|
<% end %></p>
|
|
|
|
|
2013-08-12 23:43:26 +08:00
|
|
|
<!--Modified by tanxianbo-->
|
|
|
|
<p><%= f.text_field :url, :size => 60, :required => true, :disabled => !@repository.safe_attribute?('url') %>
|
2013-08-13 16:37:08 +08:00
|
|
|
<em class='info'><%= "#{l(:label_exist_repository_path)}" %></em>
|
2013-08-12 23:43:26 +08:00
|
|
|
</p>
|
|
|
|
<p><%= f.text_field :login, :size => 30 %></p>
|
|
|
|
<p><%= f.password_field :password, :size => 30, :name => 'ignore', :value => ((@repository.new_record? || @repository.password.blank?) ? '' : ('x'*15)),
|
|
|
|
:onfocus => "this.value=''; this.name='repository[password]';",
|
|
|
|
:onchange => "this.name='repository[password]';" %></p>
|
2013-08-01 10:33:49 +08:00
|
|
|
</div>
|
2013-08-12 23:43:26 +08:00
|
|
|
<!--Ended by tanxianbo-->
|
2013-08-01 10:33:49 +08:00
|
|
|
<p>
|
2013-08-12 23:43:26 +08:00
|
|
|
<%= submit_tag(@repository.new_record? ? l(:button_create) : l(:button_save)) %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<%= link_to l(:button_cancel), settings_project_path(@project, :tab => 'repositories') %>
|
|
|
|
</p>
|