Bootstrap: issues, notes css

This commit is contained in:
Dmitriy Zaporozhets 2012-01-27 08:57:55 +02:00
parent d4ad362387
commit fbdb1da2ab
12 changed files with 104 additions and 171 deletions

View file

@ -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)
 
= 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"