To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 3b / 3bdc9be57907c77b3244c04ca134e43fe57a10c8.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.9 KB)
| 1 |
<%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %>
|
|---|---|
| 2 |
|
| 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') %>
|
| 5 |
<p style="float:right; margin-right:1em;"> |
| 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> |
| 8 |
<% end %> |
| 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 },
|
| 11 |
:update => :attributes, |
| 12 |
:with => "Form.serialize('issue-form')" %>
|
| 13 |
|
| 14 |
<p><%= f.text_field :subject, :size => 80, :required => true %></p> |
| 15 |
<p><%= f.text_area :description, |
| 16 |
:cols => 60, |
| 17 |
:rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), |
| 18 |
:accesskey => accesskey(:edit), |
| 19 |
:class => 'wiki-edit' %></p> |
| 20 |
</div> |
| 21 |
|
| 22 |
<div id="attributes" class="attributes"> |
| 23 |
<%= render :partial => 'issues/attributes' %> |
| 24 |
</div> |
| 25 |
|
| 26 |
<% if @issue.new_record? %> |
| 27 |
<p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
|
| 28 |
<% end %> |
| 29 |
|
| 30 |
<% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> |
| 31 |
<p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> |
| 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> |
| 34 |
<% end -%> |
| 35 |
</p> |
| 36 |
<% end %> |
| 37 |
|
| 38 |
<%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %>
|
| 39 |
|
| 40 |
<%= wikitoolbar_for 'issue_description' %> |