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: chris@290:

luis@275: <% if @repository %> chris@290: <%= l(:text_settings_repo_explanation) %> luis@275: <% if @repository.is_external %> chris@299:

<%= l(:text_settings_repo_is_external) %> luis@275: <% else %> chris@299:

<%= l(:text_settings_repo_is_internal) %> chris@299: <% end %> chris@290:

chris@290: luis@273: luis@275: luis@275: 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()" %> chris@290:
<%= l(:setting_external_repository) %> luis@201:

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

luis@204: <%= label_tag('repository_external_url', l(:label_repository_external_url)) %> chris@299: <%= text_field :repository, :external_url, :disabled => !(@repository and @repository.is_external) %> chris@290:
<%= l(:setting_external_repository_url) %> luis@204:

luis@204: chris@290:

<%= l(:text_settings_repo_need_help) %>

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@275: <%= submit_tag(l(:button_save), :onclick => remote_function(:url => { :controller => 'repositories', :action => 'edit', :id => @project }, :method => :get, :with => "Form.serialize(this.form)")) %> chris@299: chris@299: <% else %> chris@299: <%= l(:text_settings_repo_creation) %> Chris@0: <% end %> chris@299: chris@299: <% end %>