@@ -1,24 +1,24 | |||||
1 |
<% remote_form_for :repository, @repository, |
|
1 | <% remote_form_for :repository, @repository, | |
2 | :url => { :controller => 'repositories', :action => 'edit', :id => @project }, |
|
2 | :url => { :controller => 'repositories', :action => 'edit', :id => @project }, | |
3 | :builder => TabularFormBuilder, |
|
3 | :builder => TabularFormBuilder, | |
4 | :lang => current_language do |f| %> |
|
4 | :lang => current_language do |f| %> | |
5 |
|
5 | |||
6 | <%= error_messages_for 'repository' %> |
|
6 | <%= error_messages_for 'repository' %> | |
7 |
|
7 | |||
8 | <div class="box tabular"> |
|
8 | <div class="box tabular"> | |
9 | <p><%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %></p> |
|
9 | <p><%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %></p> | |
10 | <%= repository_field_tags(f, @repository) if @repository %> |
|
10 | <%= repository_field_tags(f, @repository) if @repository %> | |
11 | </div> |
|
11 | </div> | |
12 |
|
12 | |||
13 | <div class="contextual"> |
|
13 | <div class="contextual"> | |
14 | <% if @repository && !@repository.new_record? %> |
|
14 | <% if @repository && !@repository.new_record? %> | |
15 | <%= link_to(l(:label_user_plural), {:controller => 'repositories', :action => 'committers', :id => @project}, :class => 'icon icon-user') %> |
|
15 | <%= link_to(l(:label_user_plural), {:controller => 'repositories', :action => 'committers', :id => @project}, :class => 'icon icon-user') %> | |
16 | <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project}, |
|
16 | <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project}, | |
17 | :confirm => l(:text_are_you_sure), |
|
17 | :confirm => l(:text_are_you_sure), | |
18 | :method => :post, |
|
18 | :method => :post, | |
19 | :class => 'icon icon-del') %> |
|
19 | :class => 'icon icon-del') %> | |
20 | <% end %> |
|
20 | <% end %> | |
21 | </div> |
|
21 | </div> | |
22 |
|
22 | |||
23 | <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), :disabled => @repository.nil?) %> |
|
23 | <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), :disabled => @repository.nil?) %> | |
24 | <% end %> |
|
24 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now