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

26 lines
731 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
2011-10-25 06:34:02 +02:00
.span-8
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-06 23:24:09 +01:00
.span-8
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-10-25 06:34:02 +02:00
.span-1
= f.label :critical, "Critical"
%br
= f.check_box :critical
2011-10-08 23:36:38 +02:00
- unless @issue.new_record?
2011-10-25 06:34:02 +02:00
.span-2.right
2011-10-08 23:36:38 +02:00
= f.label :closed
%br
= f.check_box :closed
%hr
.span-6
= f.submit 'Save', :class => "lbutton vm"