%= error_messages_for 'repository' %>
<%= label_tag('repository_scm', l(:label_scm)) %> <%= select_tag('repository_scm', options_for_select(["Subversion"],@repository.class.name.demodulize), :data => {:remote => true, :method => 'get'})%>
<%= f.check_box :is_default, :label => :field_repository_is_default %>
<%= f.text_field :url, :size => 60, :required => true, :disabled => !@repository.safe_attribute?('url'), :id => "url_text_field" %> <%= "#{l(:label_exist_repository_path)}" %>
<%= f.text_field :login, :size => 30 %>
<%= 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]';" %>
<%#= submit_tag(@repository.new_record? ? l(:button_create) : l(:button_save)) %> <%= link_to l(:button_cancel), settings_project_path(@project, :tab => 'repositories') %>