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.erb @ 915:2a68662d5adf
History | View | Annotate | Download (1.46 KB)
| 1 | 16:020926a36823 | Chris | <% form_tag({:action => 'edit', :tab => 'checkout'}) do %>
|
|---|---|---|---|
| 2 | |||
| 3 | <% javascript_tag do %>
|
||
| 4 | protocolForms = $H(); |
||
| 5 | |||
| 6 | document.observe("dom:loaded", function() {
|
||
| 7 | $('tab-content-checkout').select('fieldset.collapsed').each(function(e){
|
||
| 8 | e.down('div').hide();
|
||
| 9 | }); |
||
| 10 | <%
|
||
| 11 | CheckoutHelper.supported_scm.select{|scm| Setting.enabled_scm.include?(scm)}.each do |scm|
|
||
| 12 | next if Setting.send("checkout_overwrite_description_#{scm}?")
|
||
| 13 | -%>
|
||
| 14 | $('settings_checkout_description_<%= scm %>').up('div').up('div').hide();
|
||
| 15 | <%- end %>
|
||
| 16 | }); |
||
| 17 | <% end %>
|
||
| 18 | |||
| 19 | |||
| 20 | <div class="box tabular settings"> |
||
| 21 | <p><%= setting_check_box :checkout_display_checkout_info %></p> |
||
| 22 | |||
| 23 | <p><%= setting_text_area :checkout_description_Abstract, :cols => 60, :rows => 5, :class => 'wiki-edit', :label => :field_description %></p> |
||
| 24 | <%= wikitoolbar_for 'settings_checkout_description_Abstract' %>
|
||
| 25 | |||
| 26 | <p><%= setting_check_box :checkout_use_zero_clipboard %></p> |
||
| 27 | |||
| 28 | <% CheckoutHelper.supported_scm.select{|scm| Setting.enabled_scm.include?(scm)}.each do |scm| -%>
|
||
| 29 | <fieldset class="collapsible collapsed"> |
||
| 30 | <legend onclick="toggleFieldset(this);"><%= "Repository::#{scm}".constantize.scm_name %></legend> |
||
| 31 | <div><%= render :partial => 'checkout_scm', :locals => {:scm => scm} %></div> |
||
| 32 | </fieldset>
|
||
| 33 | <%- end %>
|
||
| 34 | |||
| 35 | </div>
|
||
| 36 | |||
| 37 | <%= submit_tag l(:button_save) %>
|
||
| 38 | <%- end %>
|
||
| 39 | |||
| 40 | <% content_for :header_tags do %>
|
||
| 41 | <%= javascript_include_tag 'subform', :plugin => 'redmine_checkout' %>
|
||
| 42 | <%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %>
|
||
| 43 | <% end %> |