annotate .svn/pristine/dc/dc7232e1275188beb11e7b5bab2e7b415d28d6b9.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents dffacf8a6908
children
rev   line source
Chris@1517 1 <%= error_messages_for 'tracker' %>
Chris@1517 2
Chris@1517 3 <div class="splitcontentleft">
Chris@1517 4 <div class="box tabular">
Chris@1517 5 <!--[form:tracker]-->
Chris@1517 6 <p><%= f.text_field :name, :required => true %></p>
Chris@1517 7 <p><%= f.check_box :is_in_roadmap %></p>
Chris@1517 8
Chris@1517 9 <p>
Chris@1517 10 <label><%= l(:field_core_fields) %></label>
Chris@1517 11 <% Tracker::CORE_FIELDS.each do |field| %>
Chris@1517 12 <label class="block">
Chris@1517 13 <%= check_box_tag 'tracker[core_fields][]', field, @tracker.core_fields.include?(field), :id => nil %>
Chris@1517 14 <%= l("field_#{field}".sub(/_id$/, '')) %>
Chris@1517 15 </label>
Chris@1517 16 <% end %>
Chris@1517 17 </p>
Chris@1517 18 <%= hidden_field_tag 'tracker[core_fields][]', '' %>
Chris@1517 19
Chris@1517 20 <% if IssueCustomField.all.any? %>
Chris@1517 21 <p>
Chris@1517 22 <label><%= l(:label_custom_field_plural) %></label>
Chris@1517 23 <% IssueCustomField.all.each do |field| %>
Chris@1517 24 <label class="block">
Chris@1517 25 <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.to_a.include?(field), :id => nil %>
Chris@1517 26 <%=h field.name %>
Chris@1517 27 </label>
Chris@1517 28 <% end %>
Chris@1517 29 </p>
Chris@1517 30 <%= hidden_field_tag 'tracker[custom_field_ids][]', '' %>
Chris@1517 31 <% end %>
Chris@1517 32
Chris@1517 33 <% if @tracker.new_record? && @trackers.any? %>
Chris@1517 34 <p><label for="copy_workflow_from"><%= l(:label_copy_workflow_from) %></label>
Chris@1517 35 <%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %></p>
Chris@1517 36 <% end %>
Chris@1517 37 <!--[eoform:tracker]-->
Chris@1517 38 </div>
Chris@1517 39 <%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %>
Chris@1517 40 </div>
Chris@1517 41
Chris@1517 42 <div class="splitcontentright">
Chris@1517 43 <% if @projects.any? %>
Chris@1517 44 <fieldset class="box" id="tracker_project_ids"><legend><%= l(:label_project_plural) %></legend>
Chris@1517 45 <%= render_project_nested_lists(@projects) do |p|
Chris@1517 46 content_tag('label', check_box_tag('tracker[project_ids][]', p.id, @tracker.projects.to_a.include?(p), :id => nil) + ' ' + h(p))
Chris@1517 47 end %>
Chris@1517 48 <%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %>
Chris@1517 49 <p><%= check_all_links 'tracker_project_ids' %></p>
Chris@1517 50 </fieldset>
Chris@1517 51 <% end %>
Chris@1517 52 </div>