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 / vendor / plugins / redmine_checkout / app / views / projects / settings / _repository_checkout.html.erb @ 918:04114f36670d

History | View | Annotate | Download (2.6 KB)

1 16:020926a36823 Chris
<p><%= form.select(:checkout_overwrite, [
2
    [l(:general_text_Yes), "1"],
3
    [l(:general_text_No), "0"]
4
  ],
5
  {},
6
  :onchange => <<-EOF
7
    Effect.toggle($('checkout_settings'), 'slide', {duration:0.2});
8
  EOF
9
  )%></p>
10
11
<div id="checkout_settings" <%= 'style="display:none;"' unless form.object.checkout_overwrite? %>><fieldset>
12
  <legend><%=l :label_checkout %></legend>
13
14
  <p><%= form.text_area :checkout_description, :cols => 60, :rows => 5, :class => 'wiki-edit', :label => :field_description %></p>
15
  <%= wikitoolbar_for 'repository_checkout_description' %>
16
17
  <% if form.object.scm_name == 'Subversion' %>
18
  <p><%= form.select :checkout_display_login,[
19
            [l(:label_display_login_none), ''],
20
            [l(:label_display_login_username), 'username'],
21
            [l(:label_display_login_password), 'password']
22
          ],
23
          :label => :setting_checkout_display_login %></p>
24
  <% end %>
25
26
  <p><%= form.check_box :checkout_display_command %></p>
27
28
  <% javascript_tag do %>
29
    protocolForm = new Subform(
30
      '<%= escape_javascript(render(:partial => "projects/settings/repository_checkout_protocol", :locals => {:protocol => Checkout::Protocol.new({:protocol => form.object.scm_name, :append_path => form.object.allow_subtree_checkout? ? 1: 0, :repository => form.object})})) %>',
31
      <%= form.object.checkout_protocols.length %>,
32
      'checkout_protocol_table'
33
    );
34
  <% end %>
35
  <p><label><%=l :label_protocol_plural %></label><%=l :help_repository_checkout_protocols %></p>
36
  <%= hidden_field_tag 'repository[checkout_protocols][-1][protocol]', 'empty' %>
37
  <table class="list checkout_protocol_table">
38
    <thead><tr>
39
      <th class="protocol_protocol"   ><%= l(:setting_protocol)%></th>
40
      <th class="protocol_command"    ><%= l(:setting_checkout_command)%></th>
41
      <th class="protocol_fixed_url"  ><%= l(:setting_checkout_fixed_url) %></th>
42
      <th class="protocol_access"     ><%= l(:label_permissions) %></th>
43
      <th class="protocol_append_path"><%= l(:label_append_path) %></th>
44
      <th class="protocol_is_default" ><%= l(:label_default) %></th>
45
      <th class="protocol_delete"     ></th>
46
    </tr></thead>
47
    <tbody id="checkout_protocol_table">
48
      <% form.object.checkout_protocols.each_with_index do |protocol, index| %>
49
        <%= render :partial => 'projects/settings/repository_checkout_protocol', :locals => {:protocol => protocol, :index => index, :classes => cycle('odd', 'even')} %>
50
      <% end %>
51
    </tbody>
52
  </table>
53
  <div style="text-align: right"><%= link_to_function l(:button_add_protocol), "protocolForm.add()", {:class => "icon icon-add"} %></div>
54
</fieldset></div>