@@ -1,25 +1,25 | |||||
1 | <%= error_messages_for 'repository' %> |
|
1 | <%= error_messages_for 'repository' %> | |
2 |
|
2 | |||
3 | <div class="box tabular"> |
|
3 | <div class="box tabular"> | |
4 | <p> |
|
4 | <p> | |
5 | <%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %> |
|
5 | <%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %> | |
6 | <% if @repository && ! @repository.class.scm_available %> |
|
6 | <% if @repository && ! @repository.class.scm_available %> | |
7 | <br /> |
|
7 | <br /> | |
8 | <em><%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %></em> |
|
8 | <em><%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %></em> | |
9 | <% end %> |
|
9 | <% end %> | |
10 | </p> |
|
10 | </p> | |
11 |
|
11 | |||
12 | <p><%= f.text_field :identifier %></p> |
|
|||
13 | <p><%= f.check_box :is_default, :label => :field_repository_is_default %></p> |
|
12 | <p><%= f.check_box :is_default, :label => :field_repository_is_default %></p> | |
|
13 | <p><%= f.text_field :identifier %></p> | |||
14 |
|
14 | |||
15 | <% button_disabled = true %> |
|
15 | <% button_disabled = true %> | |
16 | <% if @repository %> |
|
16 | <% if @repository %> | |
17 | <% button_disabled = ! @repository.class.scm_available %> |
|
17 | <% button_disabled = ! @repository.class.scm_available %> | |
18 | <%= repository_field_tags(f, @repository)%> |
|
18 | <%= repository_field_tags(f, @repository)%> | |
19 | <% end %> |
|
19 | <% end %> | |
20 | </div> |
|
20 | </div> | |
21 |
|
21 | |||
22 | <p> |
|
22 | <p> | |
23 | <%= submit_tag(@repository.new_record? ? l(:button_create) : l(:button_save), :disabled => button_disabled) %> |
|
23 | <%= submit_tag(@repository.new_record? ? l(:button_create) : l(:button_save), :disabled => button_disabled) %> | |
24 | <%= link_to l(:button_cancel), settings_project_path(@project, :tab => 'repositories') %> |
|
24 | <%= link_to l(:button_cancel), settings_project_path(@project, :tab => 'repositories') %> | |
25 | </p> No newline at end of file |
|
25 | </p> |
General Comments 0
You need to be logged in to leave comments.
Login now