@@ -1,41 +1,42 | |||
|
1 | 1 | <%= error_messages_for 'tracker' %> |
|
2 | 2 | |
|
3 | 3 | <div class="splitcontentleft"> |
|
4 | 4 | <div class="box tabular"> |
|
5 | 5 | <!--[form:tracker]--> |
|
6 | 6 | <p><%= f.text_field :name, :required => true %></p> |
|
7 | 7 | <p><%= f.check_box :is_in_chlog %></p> |
|
8 | 8 | <p><%= f.check_box :is_in_roadmap %></p> |
|
9 | 9 | |
|
10 | 10 | <% if IssueCustomField.all.any? %> |
|
11 | 11 | <p> |
|
12 | 12 | <label><%= l(:label_custom_field_plural) %></label> |
|
13 | 13 | <% IssueCustomField.all.each do |field| %> |
|
14 | 14 | <label class="block"> |
|
15 | 15 | <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.include?(field) %> |
|
16 | 16 | <%=h field.name %> |
|
17 | 17 | </label> |
|
18 | 18 | <% end %> |
|
19 | 19 | </p> |
|
20 | 20 | <%= hidden_field_tag 'tracker[custom_field_ids][]', '' %> |
|
21 | 21 | <% end %> |
|
22 | 22 | |
|
23 | 23 | <% if @tracker.new_record? && @trackers.any? %> |
|
24 | 24 | <p><label><%= l(:label_copy_workflow_from) %></label> |
|
25 | 25 | <%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %></p> |
|
26 | 26 | <% end %> |
|
27 | 27 | <!--[eoform:tracker]--> |
|
28 | 28 | </div> |
|
29 | <%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %> | |
|
29 | 30 | </div> |
|
30 | 31 | |
|
31 | 32 | <div class="splitcontentright"> |
|
32 | 33 | <% if @projects.any? %> |
|
33 | 34 | <fieldset class="box" id="tracker_project_ids"><legend><%= l(:label_project_plural) %></legend> |
|
34 | 35 | <%= project_nested_ul(@projects) do |p| |
|
35 | 36 | content_tag('label', check_box_tag('tracker[project_ids][]', p.id, @tracker.projects.include?(p), :id => nil) + ' ' + h(p)) |
|
36 | 37 | end %> |
|
37 | 38 | <%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %> |
|
38 | 39 | <p><%= check_all_links 'tracker_project_ids' %></p> |
|
39 | 40 | </fieldset> |
|
40 | 41 | <% end %> |
|
41 | 42 | </div> |
@@ -1,6 +1,5 | |||
|
1 | 1 | <h2><%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=h @tracker %></h2> |
|
2 | 2 | |
|
3 | 3 | <% form_for :tracker, @tracker, :url => { :action => 'edit' }, :builder => TabularFormBuilder do |f| %> |
|
4 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | <%= submit_tag l(:button_save) %> | |
|
6 | 5 | <% end %> |
@@ -1,6 +1,5 | |||
|
1 | 1 | <h2><%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=l(:label_tracker_new)%></h2> |
|
2 | 2 | |
|
3 | 3 | <% form_for :tracker, @tracker, :url => { :action => 'new' }, :builder => TabularFormBuilder do |f| %> |
|
4 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | <%= submit_tag l(:button_create) %> | |
|
6 | 5 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now