To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / trackers / _form.rhtml @ 441:cbce1fd3b1b7

History | View | Annotate | Download (1.38 KB)

1
<%= error_messages_for 'tracker' %>
2

    
3
<div class="splitcontentleft">
4
<div class="box tabular">
5
<!--[form:tracker]-->
6
<p><%= f.text_field :name, :required => true %></p>
7
<p><%= f.check_box :is_in_roadmap %></p>
8

    
9
<% if IssueCustomField.all.any? %>
10
<p>
11
        <label><%= l(:label_custom_field_plural) %></label>
12
        <% IssueCustomField.all.each do |field| %>
13
                <label class="block">
14
                        <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.include?(field) %>
15
                        <%=h field.name %>
16
                </label>
17
        <% end %>
18
</p>
19
<%= hidden_field_tag 'tracker[custom_field_ids][]', '' %>
20
<% end %>
21

    
22
<% if @tracker.new_record? && @trackers.any? %>
23
<p><label><%= l(:label_copy_workflow_from) %></label>
24
<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %></p>
25
<% end %>
26
<!--[eoform:tracker]-->
27
</div>
28
<%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %>
29
</div>
30

    
31
<div class="splitcontentright">
32
<% if @projects.any? %>
33
<fieldset class="box" id="tracker_project_ids"><legend><%= l(:label_project_plural) %></legend>
34
<%= project_nested_ul(@projects) do |p|
35
  content_tag('label', check_box_tag('tracker[project_ids][]', p.id, @tracker.projects.include?(p), :id => nil) + ' ' + h(p))
36
end %>
37
<%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %>
38
<p><%= check_all_links 'tracker_project_ids' %></p>
39
</fieldset>
40
<% end %>
41
</div>