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