Patch #730 » ticketize.r1184.diff
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? %>> |
... | ... | |
45 | 47 | |
46 | 48 |
<% if @issue.new_record? %> |
47 | 49 |
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p> |
50 |
</div> |
|
48 | 51 |
<% end %> |
49 | 52 | |
50 | 53 |
<%= 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 }, |
- « Previous
- 1
- 2
- Next »