2011-10-08 23:36:38 +02:00
|
|
|
%div
|
|
|
|
= form_for [@project, @issue], :remote => "true" do |f|
|
|
|
|
-if @issue.errors.any?
|
|
|
|
%ul
|
|
|
|
- @issue.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2011-11-07 19:21:42 +01:00
|
|
|
.form-row
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.label :title
|
2011-10-27 17:46:30 +02:00
|
|
|
= f.text_area :title, :style => "width:450px; height:100px", :maxlength => 255
|
2011-11-07 19:21:42 +01:00
|
|
|
.form-row
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.label :assignee_id
|
|
|
|
= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" })
|
2011-11-07 19:21:42 +01:00
|
|
|
.form-row
|
2011-10-25 06:34:02 +02:00
|
|
|
= f.label :critical, "Critical"
|
|
|
|
%br
|
|
|
|
= f.check_box :critical
|
2011-10-08 23:36:38 +02:00
|
|
|
- unless @issue.new_record?
|
2011-11-07 19:21:42 +01:00
|
|
|
.form-row
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.label :closed
|
|
|
|
%br
|
|
|
|
= f.check_box :closed
|
2011-11-07 19:21:42 +01:00
|
|
|
.form-row
|
2011-11-21 08:26:10 +01:00
|
|
|
= f.submit 'Save', :class => "grey-button"
|