Revision 441:cbce1fd3b1b7 app/views/projects/settings/.svn/text-base

View differences:

app/views/projects/settings/.svn/text-base/_activities.rhtml.svn-base
1
<% form_tag(project_project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
2

  
3
<table class="list">
4
  <thead><tr>
5
    <th><%= l(:field_name) %></th>
6
    <th><%= l(:enumeration_system_activity) %></th>
7
    <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
8
	<th><%= h value.name %></th>
9
    <% end %>
10
    <th style="width:15%;"><%= l(:field_active) %></th>
11
  </tr></thead>
12

  
13
  <% @project.activities(true).each do |enumeration| %>
14
  <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
15
  <tr class="<%= cycle('odd', 'even') %>">
16
    <td>
17
      <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
18
      <%= h(enumeration) %>
19
    </td>
20
    <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td>
21
    <% enumeration.custom_field_values.each do |value| %>
22
	<td align="center">
23
      <%= custom_field_tag "enumerations[#{enumeration.id}]", value %>
24
    </td>
25
    <% end %>
26
    <td align="center" style="width:15%;">
27
      <%= ff.check_box :active %>
28
    </td>
29
  </tr>
30
  <% end %>
31
  <% end %>
32
</table>
33

  
34
<div class="contextual">
35
<%= link_to(l(:button_reset), project_project_enumerations_path(@project),
36
						:method => :delete,
37
						:confirm => l(:text_are_you_sure),
38
            :class => 'icon icon-del') %>
39
</div>
40

  
41
<%= submit_tag l(:button_save) %>
42
<% end %>
1
<% form_tag(project_project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
2

  
3
<table class="list">
4
  <thead><tr>
5
    <th><%= l(:field_name) %></th>
6
    <th><%= l(:enumeration_system_activity) %></th>
7
    <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
8
	<th><%= h value.name %></th>
9
    <% end %>
10
    <th style="width:15%;"><%= l(:field_active) %></th>
11
  </tr></thead>
12

  
13
  <% @project.activities(true).each do |enumeration| %>
14
  <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
15
  <tr class="<%= cycle('odd', 'even') %>">
16
    <td>
17
      <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
18
      <%= h(enumeration) %>
19
    </td>
20
    <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td>
21
    <% enumeration.custom_field_values.each do |value| %>
22
	<td align="center">
23
      <%= custom_field_tag "enumerations[#{enumeration.id}]", value %>
24
    </td>
25
    <% end %>
26
    <td align="center" style="width:15%;">
27
      <%= ff.check_box :active %>
28
    </td>
29
  </tr>
30
  <% end %>
31
  <% end %>
32
</table>
33

  
34
<div class="contextual">
35
<%= link_to(l(:button_reset), project_project_enumerations_path(@project),
36
						:method => :delete,
37
						:confirm => l(:text_are_you_sure),
38
            :class => 'icon icon-del') %>
39
</div>
40

  
41
<%= submit_tag l(:button_save) %>
42
<% end %>
app/views/projects/settings/.svn/text-base/_repository.rhtml.svn-base
1
<% remote_form_for :repository, @repository, 
1
<% remote_form_for :repository, @repository,
2 2
                   :url => { :controller => 'repositories', :action => 'edit', :id => @project },
3 3
                   :builder => TabularFormBuilder,
4 4
                   :lang => current_language do |f| %>
......
6 6
<%= error_messages_for 'repository' %>
7 7

  
8 8
<div class="box tabular">
9
<p><%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %></p>
10
<%= repository_field_tags(f, @repository) if @repository %>
9
<p>
10
<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
11
<% if @repository && ! @repository.class.scm_available %>
12
	<br />
13
	<em><%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %></em>
14
<% end %>
15
</p>
16
<% button_disabled = true %>
17
<% if @repository %>
18
<%   button_disabled = ! @repository.class.scm_available %>
19
<%=    repository_field_tags(f, @repository)%>
20
<% end %>
11 21
</div>
12 22

  
13 23
<div class="contextual">
14 24
<% if @repository && !@repository.new_record? %>
15
<%= link_to(l(:label_user_plural), {:controller => 'repositories', :action => 'committers', :id => @project}, :class => 'icon icon-user') %>
25
<%= link_to(l(:label_user_plural),
26
                {
27
                :controller => 'repositories',
28
                :action     => 'committers',
29
                :id         => @project
30
                },
31
             :class => 'icon icon-user') %>
16 32
<%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project},
17 33
            :confirm => l(:text_are_you_sure),
18
            :method => :post,
19
            :class => 'icon icon-del') %>
34
            :method  => :post,
35
            :class   => 'icon icon-del') %>
20 36
<% end %>
21 37
</div>
22 38

  
23
<%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), :disabled => @repository.nil?) %>
39
<%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save),
40
               :disabled => button_disabled) %>
24 41
<% end %>

Also available in: Unified diff