@@ -1,27 +1,31 | |||||
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 | <em class="info error"><%= l(:text_scm_command_not_available) %></em> |
|
7 | <em class="info error"><%= l(:text_scm_command_not_available) %></em> | |
8 | <% end %> |
|
8 | <% end %> | |
9 | </p> |
|
9 | </p> | |
10 |
|
10 | |||
11 | <p><%= f.check_box :is_default, :label => :field_repository_is_default %></p> |
|
11 | <p><%= f.check_box :is_default, :label => :field_repository_is_default %></p> | |
12 | <p><%= f.text_field :identifier, :disabled => @repository.identifier_frozen? %> |
|
12 | <p> | |
|
13 | <%= f.text_field :identifier, :disabled => @repository.identifier_frozen? %> | |||
13 | <% unless @repository.identifier_frozen? %> |
|
14 | <% unless @repository.identifier_frozen? %> | |
14 | <em class="info"><%= l(:text_length_between, :min => 1, :max => Repository::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_repository_identifier_info).html_safe %></em> |
|
15 | <em class="info"> | |
15 | <% end %></p> |
|
16 | <%= l(:text_length_between, :min => 1, :max => Repository::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_repository_identifier_info).html_safe %> | |
|
17 | </em> | |||
|
18 | <% end %> | |||
|
19 | </p> | |||
16 |
|
20 | |||
17 | <% button_disabled = true %> |
|
21 | <% button_disabled = true %> | |
18 | <% if @repository %> |
|
22 | <% if @repository %> | |
19 |
<% |
|
23 | <% button_disabled = ! @repository.class.scm_available %> | |
20 |
<%= |
|
24 | <%= repository_field_tags(f, @repository) %> | |
21 | <% end %> |
|
25 | <% end %> | |
22 | </div> |
|
26 | </div> | |
23 |
|
27 | |||
24 | <p> |
|
28 | <p> | |
25 | <%= submit_tag(@repository.new_record? ? l(:button_create) : l(:button_save), :disabled => button_disabled) %> |
|
29 | <%= submit_tag(@repository.new_record? ? l(:button_create) : l(:button_save), :disabled => button_disabled) %> | |
26 |
|
|
30 | <%= link_to l(:button_cancel), settings_project_path(@project, :tab => 'repositories') %> | |
27 | </p> |
|
31 | </p> |
General Comments 0
You need to be logged in to leave comments.
Login now