|
|
|
@ -3,11 +3,16 @@
|
|
|
|
|
<div class="box tabular">
|
|
|
|
|
<p>
|
|
|
|
|
<%= 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-->
|
|
|
|
|
<% if @repository.identifier_frozen? %>
|
|
|
|
|
<%= select_tag('repository_scm',
|
|
|
|
|
options_for_select([@repository.class.name.demodulize],@repository.class.name.demodulize),
|
|
|
|
|
:data => {:remote => true, :method => 'get'})%>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= select_tag('repository_scm',
|
|
|
|
|
options_for_select(["Subversion"],@repository.class.name.demodulize),
|
|
|
|
|
:data => {:remote => true, :method => 'get'})%>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p><%= f.check_box :is_default, :label => :field_repository_is_default %></p>
|
|
|
|
@ -20,10 +25,10 @@
|
|
|
|
|
<p><%= f.text_field :url, :size => 60, :required => true, :disabled => !@repository.safe_attribute?('url') %>
|
|
|
|
|
<em class='info'><%= "#{l(:label_exist_repository_path)}" %></em>
|
|
|
|
|
</p>
|
|
|
|
|
<p><%= f.text_field :login, :size => 30 %></p>
|
|
|
|
|
<p><%= f.text_field :login, :size => 30 , :disabled => @repository.identifier_frozen? %></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>
|
|
|
|
|
:onchange => "this.name='repository[password]';", :disabled => @repository.identifier_frozen? %></p>
|
|
|
|
|
</div>
|
|
|
|
|
<!--Ended by tanxianbo-->
|
|
|
|
|
<p>
|
|
|
|
|