@@ -1,31 +1,37 | |||
|
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 | <p><%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %></p> | |
|
10 | <%= repository_field_tags(f, @repository) if @repository %> | |
|
9 | <p> | |
|
10 | <%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %> | |
|
11 | </p> | |
|
12 | <% button_disabled = true %> | |
|
13 | <% if @repository %> | |
|
14 | <% button_disabled = false %> | |
|
15 | <%= repository_field_tags(f, @repository)%> | |
|
16 | <% end %> | |
|
11 | 17 | </div> |
|
12 | 18 | |
|
13 | 19 | <div class="contextual"> |
|
14 | 20 | <% if @repository && !@repository.new_record? %> |
|
15 | 21 | <%= link_to(l(:label_user_plural), |
|
16 | 22 | { |
|
17 | 23 | :controller => 'repositories', |
|
18 | 24 | :action => 'committers', |
|
19 | 25 | :id => @project |
|
20 | 26 | }, |
|
21 | 27 | :class => 'icon icon-user') %> |
|
22 | 28 | <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project}, |
|
23 | 29 | :confirm => l(:text_are_you_sure), |
|
24 | 30 | :method => :post, |
|
25 | 31 | :class => 'icon icon-del') %> |
|
26 | 32 | <% end %> |
|
27 | 33 | </div> |
|
28 | 34 | |
|
29 | 35 | <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), |
|
30 |
:disabled => |
|
|
36 | :disabled => button_disabled) %> | |
|
31 | 37 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now