Mercurial > hg > soundsoftware-site
comparison app/views/trackers/_form.html.erb @ 908:c6c2cbd0afee redmine-1.3
Rename .rhtml files to .html.erb in preparation for merge
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 18:36:29 +0000 |
parents | app/views/trackers/_form.rhtml@513646585e45 |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
907:df51e8ff578d | 908:c6c2cbd0afee |
---|---|
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> |