2006-07-29 23:54:22 +04:00
|
|
|
<h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%= @issue.subject %></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<%= error_messages_for 'issue' %>
|
|
|
|
<%= start_form_tag :action => 'edit', :id => @issue %>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<div class="box">
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[form:issue]-->
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><%=l(:field_status)%>: <b><%= @issue.status.name %></b></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<div style="float:left;margin-right:10px;">
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><label for="issue_priority_id"><%=l(:field_priority)%> <span class="required">*</span></label><br/>
|
2006-06-28 22:11:03 +04:00
|
|
|
<select name="issue[priority_id]">
|
|
|
|
<%= options_from_collection_for_select @priorities, "id", "name", @issue.priority_id %></p>
|
|
|
|
</select></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="float:left;margin-right:10px;">
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><label for="issue_assigned_to_id"><%=l(:field_assigned_to)%></label><br/>
|
2006-06-28 22:11:03 +04:00
|
|
|
<select name="issue[assigned_to_id]">
|
|
|
|
<option value=""></option>
|
|
|
|
<%= options_from_collection_for_select @issue.project.members, "user_id", "name", @issue.assigned_to_id %></p>
|
|
|
|
</select></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><label for="issue_category_id"><%=l(:field_category)%></label><br/>
|
2006-06-28 22:11:03 +04:00
|
|
|
<select name="issue[category_id]">
|
|
|
|
<option value=""></option>
|
|
|
|
<%= options_from_collection_for_select @project.issue_categories, "id", "name", @issue.category_id %></p>
|
|
|
|
</select></p>
|
|
|
|
</div>
|
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><label for="issue_subject"><%=l(:field_subject)%></label><span class="required">*</span><br/>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'issue', 'subject', :size => 60 %></p>
|
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><label for="issue_description"><%=l(:field_description)%></label><span class="required">*</span><br/>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_area 'issue', 'description', :cols => 60, :rows => 10 %></p>
|
2006-07-29 23:54:22 +04:00
|
|
|
|
|
|
|
<p><label for="issue_due_date"><%=l(:field_due_date)%></label><br />
|
|
|
|
<%= date_select 'issue', 'due_date', :start_year => Date.today.year, :include_blank => true %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-31 23:52:08 +04:00
|
|
|
<% for @custom_value in @custom_values %>
|
|
|
|
<p><%= custom_field_tag_with_label @custom_value %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% end %>
|
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><label for="issue_fixed_version"><%=l(:field_fixed_version)%></label><br/>
|
2006-06-28 22:11:03 +04:00
|
|
|
<select name="issue[fixed_version_id]">
|
|
|
|
<option value="">--none--</option>
|
|
|
|
<%= options_from_collection_for_select @project.versions, "id", "name", @issue.fixed_version_id %>
|
|
|
|
</select></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[eoform:issue]-->
|
2006-07-29 13:32:58 +04:00
|
|
|
</div>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= submit_tag l(:button_save) %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= end_form_tag %>
|