@@ -1,41 +1,41 | |||||
1 | <% remote_form_for :repository, @repository, |
|
1 | <% remote_form_for :repository, @repository, | |
2 | :url => { :controller => 'repositories', :action => 'edit', :id => @project }, |
|
2 | :url => { :controller => 'repositories', :action => 'edit', :id => @project }, | |
3 | :builder => TabularFormBuilder, |
|
3 | :builder => TabularFormBuilder, | |
4 | :lang => current_language do |f| %> |
|
4 | :lang => current_language do |f| %> | |
5 |
|
5 | |||
6 | <%= error_messages_for 'repository' %> |
|
6 | <%= error_messages_for 'repository' %> | |
7 |
|
7 | |||
8 | <div class="box tabular"> |
|
8 | <div class="box tabular"> | |
9 | <p> |
|
9 | <p> | |
10 | <%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %> |
|
10 | <%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %> | |
11 | <% if @repository && ! @repository.class.scm_available %> |
|
11 | <% if @repository && ! @repository.class.scm_available %> | |
12 |
|
|
12 | <br /> | |
13 |
|
|
13 | <em><%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %></em> | |
14 | <% end %> |
|
14 | <% end %> | |
15 | </p> |
|
15 | </p> | |
16 | <% button_disabled = true %> |
|
16 | <% button_disabled = true %> | |
17 | <% if @repository %> |
|
17 | <% if @repository %> | |
18 | <% button_disabled = ! @repository.class.scm_available %> |
|
18 | <% button_disabled = ! @repository.class.scm_available %> | |
19 | <%= repository_field_tags(f, @repository)%> |
|
19 | <%= repository_field_tags(f, @repository)%> | |
20 | <% end %> |
|
20 | <% end %> | |
21 | </div> |
|
21 | </div> | |
22 |
|
22 | |||
23 | <div class="contextual"> |
|
23 | <div class="contextual"> | |
24 | <% if @repository && !@repository.new_record? %> |
|
24 | <% if @repository && !@repository.new_record? %> | |
25 | <%= link_to(l(:label_user_plural), |
|
25 | <%= link_to(l(:label_user_plural), | |
26 | { |
|
26 | { | |
27 | :controller => 'repositories', |
|
27 | :controller => 'repositories', | |
28 | :action => 'committers', |
|
28 | :action => 'committers', | |
29 | :id => @project |
|
29 | :id => @project | |
30 | }, |
|
30 | }, | |
31 | :class => 'icon icon-user') %> |
|
31 | :class => 'icon icon-user') %> | |
32 | <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project}, |
|
32 | <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project}, | |
33 | :confirm => l(:text_are_you_sure), |
|
33 | :confirm => l(:text_are_you_sure), | |
34 | :method => :post, |
|
34 | :method => :post, | |
35 | :class => 'icon icon-del') %> |
|
35 | :class => 'icon icon-del') %> | |
36 | <% end %> |
|
36 | <% end %> | |
37 | </div> |
|
37 | </div> | |
38 |
|
38 | |||
39 | <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), |
|
39 | <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), | |
40 | :disabled => button_disabled) %> |
|
40 | :disabled => button_disabled) %> | |
41 | <% end %> |
|
41 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now