To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / 77 / 77f3a652890e7717cf692415832f070c03c8e44f.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (1.04 KB)

1 1296:038ba2d95de8 Chris
<%= error_messages_for 'repository' %>
2
3
<div class="box tabular">
4
<p>
5
<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
6
<% if @repository && ! @repository.class.scm_available %>
7
  <em class="info error"><%= l(:text_scm_command_not_available) %></em>
8
<% end %>
9
</p>
10
11
<p><%= f.check_box :is_default, :label => :field_repository_is_default %></p>
12
<p><%= f.text_field :identifier, :disabled => @repository.identifier_frozen?  %>
13
<% 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
<% end %></p>
16
17
<% button_disabled = true %>
18
<% if @repository %>
19
<%   button_disabled = ! @repository.class.scm_available %>
20
<%=    repository_field_tags(f, @repository)%>
21
<% end %>
22
</div>
23
24
<p>
25
  <%= submit_tag(@repository.new_record? ? l(:button_create) : l(:button_save), :disabled => button_disabled) %>
26
	<%= link_to l(:button_cancel), settings_project_path(@project, :tab => 'repositories') %>
27
</p>