| 1 |
|
| 2 |
<table class='right_default_table' cellspacing=0px> |
| 3 |
|
| 4 |
<% form_for :ticketfilter, :url => project_tickets_path(@project.slug), :html => {:method => :get, :name => 'ticketfilter', :id => 'input'} do |f| %> |
| 5 |
|
| 6 |
<tr><th colspan=2>Filter</th></tr> |
| 7 |
|
| 8 |
<tr><td> |
| 9 |
|
| 10 |
<table> |
| 11 |
|
| 12 |
<tr style='line-height: 1.5em; font-size: 0.9em'> |
| 13 |
<td> |
| 14 |
<%= check_box(:ticketfilter, :ttype_defect, {:checked => ticket_value_checked?(:ttype_defect)}, "1", "0") %>Defect<br /> |
| 15 |
<%= check_box(:ticketfilter, :ttype_enhancement, {:checked => ticket_value_checked?(:ttype_enhancement)}, "1", "0") %>Enhancement<br /> |
| 16 |
<%= check_box(:ticketfilter, :ttype_task, {:checked => ticket_value_checked?(:ttype_task)}, "1", "0") %>Task<br /> |
| 17 |
</td> |
| 18 |
<td> |
| 19 |
<%= check_box(:ticketfilter, :impact_low, {:checked => ticket_value_checked?(:impact_low)}, "1", "0") %>Low Impact<br /> |
| 20 |
<%= check_box(:ticketfilter, :impact_high, {:checked => ticket_value_checked?(:impact_high)}, "1", "0") %>High Impact<br /> |
| 21 |
<%= check_box(:ticketfilter, :impact_security, {:checked => ticket_value_checked?(:impact_security)}, "1", "0") %>Security Impact<br /> |
| 22 |
</td> |
| 23 |
</tr> |
| 24 |
|
| 25 |
<tr style='line-height: 1.5em; font-size: 0.9em'> |
| 26 |
<td> |
| 27 |
<%= check_box(:ticketfilter, :status_proposed, {:checked => ticket_value_checked?(:status_proposed)}, "1", "0") %>Proposed<br /> |
| 28 |
<%= check_box(:ticketfilter, :status_open, {:checked => ticket_value_checked?(:status_open)}, "1", "0") %>Open<br /> |
| 29 |
<%= check_box(:ticketfilter, :status_closed, {:checked => ticket_value_checked?(:status_closed)}, "1", "0") %>Closed<br /> |
| 30 |
</td> |
| 31 |
<td> |
| 32 |
<%= check_box(:ticketfilter, :priority_none, {:checked => ticket_value_checked?(:priority_none)}, "1", "0") %>No Priority<br /> |
| 33 |
<%= check_box(:ticketfilter, :priority_low, {:checked => ticket_value_checked?(:priority_low)}, "1", "0") %>Low Priority<br /> |
| 34 |
<%= check_box(:ticketfilter, :priority_high, {:checked => ticket_value_checked?(:priority_high)}, "1", "0") %>High Priority<br /> |
| 35 |
<%= check_box(:ticketfilter, :priority_critical, {:checked => ticket_value_checked?(:priority_critical)}, "1", "0") %>Critical<br /> |
| 36 |
</td> |
| 37 |
</tr> |
| 38 |
|
| 39 |
</table> |
| 40 |
|
| 41 |
<table> |
| 42 |
|
| 43 |
<tr style='font-size: 0.9em'> |
| 44 |
<td> |
| 45 |
Milestone: |
| 46 |
</td> |
| 47 |
<td> |
| 48 |
<select id='ticketfilter_milestone_id' name='ticketfilter[milestone_id]'> |
| 49 |
<option value=''>All</option> |
| 50 |
<%= options_from_collection_for_select @filter_milestones, 'id', 'name', @selected_milestone.to_i %> |
| 51 |
</select> |
| 52 |
</td> |
| 53 |
</tr> |
| 54 |
|
| 55 |
<tr style='font-size: 0.9em'> |
| 56 |
<td> |
| 57 |
Assignee: |
| 58 |
</td> |
| 59 |
<td> |
| 60 |
<select id='ticketfilter_assignee_id' name='ticketfilter[assignee_id]'> |
| 61 |
<option value=''>All</option> |
| 62 |
<%= options_from_collection_for_select @filter_assignees, 'id', 'fullname', @selected_assignee.to_i %> |
| 63 |
</select> |
| 64 |
</td> |
| 65 |
</tr> |
| 66 |
|
| 67 |
<tr style='font-size: 0.9em'> |
| 68 |
<td> |
| 69 |
Submitter: |
| 70 |
</td> |
| 71 |
<td> |
| 72 |
<select id='ticketfilter_submitter_id' name='ticketfilter[submitter_id]'> |
| 73 |
<option value=''>All</option> |
| 74 |
<%= options_from_collection_for_select @filter_submitters, 'id', 'fullname', @selected_submitter.to_i %> |
| 75 |
</select> |
| 76 |
</td> |
| 77 |
</tr> |
| 78 |
|
| 79 |
</table> |
| 80 |
|
| 81 |
<table width='100%'> |
| 82 |
<tr><td style='line-height: 1.0em'> |
| 83 |
<br /> |
| 84 |
<center><a href='javascript:document.ticketfilter.submit();' class='function'>Update</a></center><br /> |
| 85 |
</td></tr> |
| 86 |
</table> |
| 87 |
|
| 88 |
</td></tr> |
| 89 |
|
| 90 |
<% end %> |
| 91 |
|
| 92 |
</table> |