gitlabhq/app/views/issues/_form.html.haml
2011-10-27 18:46:30 +03:00

29 lines
856 B
Plaintext

%div
= form_for [@project, @issue], :remote => "true" do |f|
-if @issue.errors.any?
%ul
- @issue.errors.full_messages.each do |msg|
%li= msg
.span-8
= f.label :title
= f.text_area :title, :style => "width:450px; height:100px", :maxlength => 255
-#.span-8
-#= f.label :content
-#= f.text_area :content, :style => "width:450px; height:130px"
.span-8.append-bottom
= f.label :assignee_id
= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" })
.span-1
= f.label :critical, "Critical"
%br
= f.check_box :critical
- unless @issue.new_record?
.span-2.right
= f.label :closed
%br
= f.check_box :closed
%hr
.span-6
= f.submit 'Save', :class => "lbutton vm"