summaryrefslogtreecommitdiff
path: root/app/views/notes/_form.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-01-27 08:57:55 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-01-27 08:57:55 +0200
commitfbdb1da2ab450a49357feb8306dcced6ce61ab50 (patch)
tree9bb12aef57cee0ff5f9ded475053b986707920cd /app/views/notes/_form.html.haml
parentd4ad362387d94e78a4722e070d7a267414bff6b2 (diff)
downloadgitlab-ce-fbdb1da2ab450a49357feb8306dcced6ce61ab50.tar.gz
Bootstrap: issues, notes css
Diffstat (limited to 'app/views/notes/_form.html.haml')
-rw-r--r--app/views/notes/_form.html.haml42
1 files changed, 19 insertions, 23 deletions
diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml
index d67ab45e8f4..29cd3d3b0fc 100644
--- a/app/views/notes/_form.html.haml
+++ b/app/views/notes/_form.html.haml
@@ -1,4 +1,5 @@
%div
+ %h3 Leave a note
= form_for [@project, @note], :remote => "true", :multipart => true do |f|
-if @note.errors.any?
.errors.error
@@ -7,30 +8,25 @@
= f.hidden_field :noteable_id
= f.hidden_field :noteable_type
+ = f.text_area :note, :size => 255
- %div
- = f.label :note
- %cite.cgray markdown supported
- %br
- %br
- = f.text_area :note, :size => 255
+ .row
+ .span6
+ %h5 Notify via email:
+ .clearfix
+ = label_tag :notify do
+ = check_box_tag :notify, 1, @note.noteable_type != "Commit"
+ %span Project team
- %div.attach_holder
- %br
- = f.label :attachment
- %cite.cgray (less than 10 MB)
- &nbsp;
- = f.file_field :attachment
-
- %p.notify_controls
- %span Notify:
- = check_box_tag :notify, 1, @note.noteable_type != "Commit"
- = label_tag :notify, "Project team"
+ -if @note.noteable_type == "Commit"
+ = label_tag :notify_author do
+ = check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
+ %span Commit author
+ .span6
+ %h5 Attachment:
+ .clearfix
+ = f.label :attachment, "Any file, < 10 MB"
+ .input= f.file_field :attachment, :class => "input-file"
- -if @note.noteable_type == "Commit"
- = check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
- = label_tag :notify_author, "Commit author"
- .clear
- %br
- = f.submit 'Add note', :class => "positive-button", :id => "submit_note"
+ = f.submit 'Add note', :class => "btn primary", :id => "submit_note"