Patch #730 » ticketize-new-issue.patch
app/views/issues/_form.rhtml | ||
---|---|---|
1 | 1 |
<% if @issue.new_record? %> |
2 |
<div class="issue new"> |
|
2 | 3 |
<p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p> |
3 | 4 |
<%= observe_field :issue_tracker_id, :url => { :action => :new }, |
4 | 5 |
:update => :content, |
5 | 6 |
:with => "Form.serialize('issue-form')" %> |
7 |
<hr /> |
|
6 | 8 |
<% end %> |
7 | 9 | |
8 | 10 |
<div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>> |
... | ... | |
47 | 49 |
<p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> |
48 | 50 |
<%= image_to_function "add.png", "addFileField();return false" %></label> |
49 | 51 |
<%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> |
52 |
</div> |
|
50 | 53 |
<% end %> |
51 | 54 | |
52 | 55 |
<%= wikitoolbar_for 'issue_description' %> |
app/views/issues/new.rhtml | ||
---|---|---|
3 | 3 |
<% labelled_tabular_form_for :issue, @issue, |
4 | 4 |
:html => {:multipart => true, :id => 'issue-form'} do |f| %> |
5 | 5 |
<%= error_messages_for 'issue' %> |
6 |
<div class="box"> |
|
7 | 6 |
<%= render :partial => 'issues/form', :locals => {:f => f} %> |
8 |
</div> |
|
9 | 7 |
<%= submit_tag l(:button_create) %> |
10 | 8 |
<%= link_to_remote l(:label_preview), |
11 | 9 |
{ :url => { :controller => 'issues', :action => 'preview', :project_id => @project, :id => @issue }, |