annotate .svn/pristine/77/77b55aa2ab6262dc6263d530143719a7ea37b5bb.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 <%= error_messages_for 'repository' %>
Chris@1464 2
Chris@1464 3 <div class="box tabular">
Chris@1464 4 <p>
Chris@1464 5 <%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
Chris@1464 6 <% if @repository && ! @repository.class.scm_available %>
Chris@1464 7 <em class="info error"><%= l(:text_scm_command_not_available) %></em>
Chris@1464 8 <% end %>
Chris@1464 9 </p>
Chris@1464 10
Chris@1464 11 <p><%= f.check_box :is_default, :label => :field_repository_is_default %></p>
Chris@1464 12 <p>
Chris@1464 13 <%= f.text_field :identifier, :disabled => @repository.identifier_frozen? %>
Chris@1464 14 <% unless @repository.identifier_frozen? %>
Chris@1464 15 <em class="info">
Chris@1464 16 <%= l(:text_length_between, :min => 1, :max => Repository::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_repository_identifier_info).html_safe %>
Chris@1464 17 </em>
Chris@1464 18 <% end %>
Chris@1464 19 </p>
Chris@1464 20
Chris@1464 21 <% button_disabled = true %>
Chris@1464 22 <% if @repository %>
Chris@1464 23 <% button_disabled = ! @repository.class.scm_available %>
Chris@1464 24 <%= repository_field_tags(f, @repository) %>
Chris@1464 25 <% end %>
Chris@1464 26 </div>
Chris@1464 27
Chris@1464 28 <p>
Chris@1464 29 <%= submit_tag(@repository.new_record? ? l(:button_create) : l(:button_save), :disabled => button_disabled) %>
Chris@1464 30 <%= link_to l(:button_cancel), settings_project_path(@project, :tab => 'repositories') %>
Chris@1464 31 </p>