To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_checkout / app / views / settings / _checkout_protocol.erb @ 915:2a68662d5adf
History | View | Annotate | Download (1.67 KB)
| 1 | 16:020926a36823 | Chris | <%
|
|---|---|---|---|
| 2 | index ||= "--INDEX--"
|
||
| 3 | classes ||= ""
|
||
| 4 | |||
| 5 | protocol = Checkout::Protocol.new(protocol) unless protocol.is_a? Checkout::Protocol
|
||
| 6 | %>
|
||
| 7 | <tr id="<%= "checkout_protocols_#{scm}_#{index}" %>" class="<%= classes %>" <%= 'style="display:none"' if index == '--INDEX--' %>> |
||
| 8 | <td class="protocol_protocol" ><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][protocol]", protocol.protocol, :size => 10 %></td> |
||
| 9 | <td class="protocol_command" ><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][command]", protocol.command, :size => 15 %></td> |
||
| 10 | <td class="protocol_regex" ><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][regex]", protocol.regex, :size => 30 %></td> |
||
| 11 | <td class="protocol_regex_replacement"><%= text_field_tag "settings[checkout_protocols_#{scm}][#{index}][regex_replacement]", protocol.regex_replacement, :size => 30 %></td> |
||
| 12 | <td class="protocol_access" ><%= select_tag "settings[checkout_protocols_#{scm}][#{index}][access]", options_for_select([ |
||
| 13 | [l(:label_access_read_write), 'read+write'],
|
||
| 14 | [l(:label_access_read_only), 'read-only'],
|
||
| 15 | [l(:label_access_permission), 'permission']], protocol.access) %></td> |
||
| 16 | <td class="protocol_append_path"><%= check_box_tag "settings[checkout_protocols_#{scm}][#{index}][append_path]", 1, protocol.append_path? %></td> |
||
| 17 | <td class="protocol_is_default"><%= check_box_tag "settings[checkout_protocols_#{scm}][#{index}][is_default]", 1, protocol.default? %></td> |
||
| 18 | <td class="protocol_delete"><%= image_to_function 'delete.png', "var e=$('checkout_protocols_#{scm}_#{index}');var parent=e.up(\"tbody\");e.remove();recalculate_even_odd(parent);return false" %></td> |
||
| 19 | </tr> |