Revamped note form options.

This commit is contained in:
Riyad Preukschas 2012-12-03 22:34:50 +01:00
parent 4ed8278870
commit b47173da6a
4 changed files with 101 additions and 90 deletions

View file

@ -22,23 +22,22 @@
.clearfix
.note_options
.attachments.right
%h6.left Attachment:
%span.file_name File name...
.attachment
%h6 Attachment:
.file_name.js-attachment-filename File name...
%a.choose-btn.btn.small.js-choose-note-attachment-button Choose File ...
.hint Any file up to 10 MB
.input.input_file
%a.file_upload.btn.small Upload File
= f.file_field :attachment, class: "input-file"
%span.hint Any file less than 10 MB
= f.file_field :attachment, class: "js-note-attachment-input"
.notify_opts.right
%h6.left Notify via email:
.notify_options
%h6 Notify via email:
= label_tag :notify do
= check_box_tag :notify, 1, !@note.for_commit?
%span Project team
Project team
- if @note.notify_only_author?(current_user) # FIXME: put in JS
.js-notify-commit-author
= label_tag :notify_author do
= check_box_tag :notify_author, 1 , !@note.for_commit?
%span Commit author
Commit author
.clearfix