@@ -6,8 +6,14 | |||
|
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"> |
@@ -27,5 +33,5 | |||
|
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