gitlabhq/app/views/issues/_form.html.haml

25 lines
728 B
Plaintext
Raw Normal View History

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
.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
.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" })
.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?
.form-row
2011-10-08 23:36:38 +02:00
= f.label :closed
%br
= f.check_box :closed
.form-row
= f.submit 'Save', :class => "grey-button"