luis@212: luis@212: <%= javascript_include_tag 'repository' %> luis@212: Chris@0: <% remote_form_for :repository, @repository, Chris@0: :url => { :controller => 'repositories', :action => 'edit', :id => @project }, Chris@0: :builder => TabularFormBuilder, Chris@0: :lang => current_language do |f| %> Chris@0: Chris@0: <%= error_messages_for 'repository' %> Chris@0: Chris@0:
luis@273: <% if !@repository %> chris@134: luis@273: luis@273: luis@273: Chris@29: <% end %> luis@272: luis@201:

luis@204: <%= label_tag('repository_is_external', l(:label_is_external_repository)) %> luis@212: <%= check_box :repository, :is_external, :onclick => "toggle_ext_url()" %> luis@204: <%= l(:setting_external_repository) %> luis@201:

luis@201: luis@204: luis@204:

luis@204: <%= label_tag('repository_external_url', l(:label_repository_external_url)) %> luis@212: <%= text_field :repository, :external_url, :disabled => true %> luis@204: <%= l(:setting_external_repository_url) %> luis@204:

luis@204: luis@204: Chris@0:
Chris@0: Chris@0:
Chris@0: <% if @repository && !@repository.new_record? %> Chris@0: <%= link_to(l(:label_user_plural), {:controller => 'repositories', :action => 'committers', :id => @project}, :class => 'icon icon-user') %> Chris@0: <% end %> Chris@0:
Chris@0: luis@273: <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), :onclick => remote_function(:url => { :controller => 'repositories', :action => 'edit', :id => @project }, :method => :get, :with => "Form.serialize(this.form)")) %> Chris@0: <% end %>