@@ -1,40 +1,40 | |||||
1 | <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> |
|
1 | <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> | |
2 |
|
2 | |||
3 | <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>> |
|
3 | <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>> | |
4 | <% if @issue.safe_attribute_names.include?('is_private') %> |
|
4 | <% if @issue.safe_attribute_names.include?('is_private') %> | |
5 | <p style="float:right; margin-right:1em;"> |
|
5 | <p style="float:right; margin-right:1em;"> | |
6 | <label class="inline" for="issue_is_private"><%= f.check_box :is_private, :no_label => true %> <%= l(:field_is_private) %></label> |
|
6 | <label class="inline" for="issue_is_private" id="issue_is_private_label"><%= f.check_box :is_private, :no_label => true %> <%= l(:field_is_private) %></label> | |
7 | </p> |
|
7 | </p> | |
8 | <% end %> |
|
8 | <% end %> | |
9 | <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p> |
|
9 | <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p> | |
10 | <%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue }, |
|
10 | <%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue }, | |
11 | :update => :attributes, |
|
11 | :update => :attributes, | |
12 | :with => "Form.serialize('issue-form')" %> |
|
12 | :with => "Form.serialize('issue-form')" %> | |
13 |
|
13 | |||
14 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> |
|
14 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> | |
15 | <p><%= f.text_area :description, |
|
15 | <p><%= f.text_area :description, | |
16 | :cols => 60, |
|
16 | :cols => 60, | |
17 | :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), |
|
17 | :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), | |
18 | :accesskey => accesskey(:edit), |
|
18 | :accesskey => accesskey(:edit), | |
19 | :class => 'wiki-edit' %></p> |
|
19 | :class => 'wiki-edit' %></p> | |
20 | </div> |
|
20 | </div> | |
21 |
|
21 | |||
22 | <div id="attributes" class="attributes"> |
|
22 | <div id="attributes" class="attributes"> | |
23 | <%= render :partial => 'issues/attributes' %> |
|
23 | <%= render :partial => 'issues/attributes' %> | |
24 | </div> |
|
24 | </div> | |
25 |
|
25 | |||
26 | <% if @issue.new_record? %> |
|
26 | <% if @issue.new_record? %> | |
27 | <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> |
|
27 | <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> | |
28 | <% end %> |
|
28 | <% end %> | |
29 |
|
29 | |||
30 | <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> |
|
30 | <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> | |
31 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> |
|
31 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> | |
32 | <% @issue.project.users.sort.each do |user| -%> |
|
32 | <% @issue.project.users.sort.each do |user| -%> | |
33 | <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> |
|
33 | <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> | |
34 | <% end -%> |
|
34 | <% end -%> | |
35 | </p> |
|
35 | </p> | |
36 | <% end %> |
|
36 | <% end %> | |
37 |
|
37 | |||
38 | <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> |
|
38 | <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> | |
39 |
|
39 | |||
40 | <%= wikitoolbar_for 'issue_description' %> |
|
40 | <%= wikitoolbar_for 'issue_description' %> |
General Comments 0
You need to be logged in to leave comments.
Login now