socialforge/app/views/repositories/_form.html.erb

42 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-08-07 11:20:24 +08:00
<%= error_messages_for 'repository' %>
<div class="box tabular">
<p>
<%= label_tag('repository_scm', l(:label_scm)) %>
<!--Modified by tanxianbo-->
<%= select_tag('repository_scm',
options_for_select(["Subversion"],@repository.class.name.demodulize),
:data => {:remote => true, :method => 'get'})%>
<!--Ended by tanxianbo-->
</p>
<p><%= f.check_box :is_default, :label => :field_repository_is_default %></p>
2014-10-20 14:23:10 +08:00
<p style="display: none">
<%= f.text_field :identifier, :required => true, :disabled => @repository.identifier_frozen?,
value:"#{User.current.id.to_s + '_' +Time.now.to_s.gsub(' ','_').gsub(':','').gsub('+','')}"%>
2014-08-07 11:20:24 +08:00
<% unless @repository.identifier_frozen? %>
2014-10-20 14:23:10 +08:00
<em class="info" >
<%= l(:text_length_between, :min => 1, :max => Repository::IDENTIFIER_MAX_LENGTH) %>
<%= l(:text_repository_identifier_info).html_safe %></em>
2014-08-07 11:20:24 +08:00
<% end %></p>
<!--Modified by tanxianbo-->
2014-10-20 14:23:10 +08:00
<p>
<%= f.text_field :url, :size => 60, :required => true, :disabled => !@repository.safe_attribute?('url'), :id => "url_text_field" %>
<em class='info'>
<%= "#{l(:label_exist_repository_path)}" %>
</em>
</p>
<p>
<%= f.text_field :login, :size => 30 %>
<input type="text" hidden="hidden">
2014-10-20 14:23:10 +08:00
</p>
2015-10-21 17:13:07 +08:00
2014-08-07 11:20:24 +08:00
</div>
<!--Ended by tanxianbo-->
<p>
<%#= submit_tag(@repository.new_record? ? l(:button_create) : l(:button_save)) %>
<input type="button" class="enterprise" value="<%= @repository.new_record? ? l(:button_create) : l(:button_save) %>" onclick="createVersion();"/>
<%= link_to l(:button_cancel), settings_project_path(@project, :tab => 'repositories') %>
</p>