Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/issues/_form.html.haml')
-rw-r--r--app/views/issues/_form.html.haml24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/views/issues/_form.html.haml b/app/views/issues/_form.html.haml
new file mode 100644
index 00000000000..71acdba1895
--- /dev/null
+++ b/app/views/issues/_form.html.haml
@@ -0,0 +1,24 @@
+%div
+ = form_for [@project, @issue], :remote => "true" do |f|
+ -if @issue.errors.any?
+ %ul
+ - @issue.errors.full_messages.each do |msg|
+ %li= msg
+
+ .span-6
+ = f.label :title
+ = f.text_field :title, :style => "width:450px"
+ .span-6
+ = f.label :content
+ = f.text_area :content, :style => "width:450px; height:130px"
+ .span-6.append-bottom
+ = f.label :assignee_id
+ = f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" })
+ - unless @issue.new_record?
+ .span-3.right
+ = f.label :closed
+ %br
+ = f.check_box :closed
+ %hr
+ .span-6
+ = f.submit 'Save', :class => "lbutton vm"