Mercurial > hg > soundsoftware-site
view app/views/projects/settings/_repository.rhtml @ 882:9e27d0747c77 bug_97
Close obsolete branch bug_97
author | Chris Cannam |
---|---|
date | Fri, 25 Mar 2011 13:58:03 +0000 |
parents | ec56461d3770 |
children | 4d4acbad8728 |
line wrap: on
line source
<%= javascript_include_tag 'repository' %> <% remote_form_for :repository, @repository, :url => { :controller => 'repositories', :action => 'edit', :id => @project }, :builder => TabularFormBuilder, :lang => current_language do |f| %> <%= error_messages_for 'repository' %> <div class="box tabular"> <% if @repository %> <% if @repository.is_external %> <%= l(:text_settings_repo_is_external) %></ br> <% else %> <%= l(:text_settings_repo_is_internal) %></ br> <% end %> <% else %> <%= l(:text_settings_repo_creation) %></ br> <% end %> <p> <%= label_tag('repository_is_external', l(:label_is_external_repository)) %> <%= check_box :repository, :is_external, :onclick => "toggle_ext_url()" %> <%= l(:setting_external_repository) %> </p> <p> <%= label_tag('repository_external_url', l(:label_repository_external_url)) %> <%= text_field :repository, :external_url, :disabled => true %> <%= l(:setting_external_repository_url) %> </p> </div> <div class="contextual"> <% if @repository && !@repository.new_record? %> <%= link_to(l(:label_user_plural), {:controller => 'repositories', :action => 'committers', :id => @project}, :class => 'icon icon-user') %> <% end %> </div> <%= submit_tag(l(:button_save), :onclick => remote_function(:url => { :controller => 'repositories', :action => 'edit', :id => @project }, :method => :get, :with => "Form.serialize(this.form)")) %> <% end %>