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

_form.html.haml « notes « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ccb159f128c3edc0f88c0281da252c40cbb342f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%div
  = form_for [@project, @note], :remote => "true", :multipart => true do |f|
    -if @note.errors.any?
      .errors.error
        - @note.errors.full_messages.each do |msg|
          %div= msg

    = f.hidden_field :noteable_id
    = f.hidden_field :noteable_type

    %div
      = f.label :note
      %cite (255 symbols only)
      %br
      = f.text_area :note, :style => "width:97%;height:100px", :size => 255

    %div
      = f.label :attachment
      %cite (less than 10 MB)
      %br
      = f.file_field :attachment

      = check_box_tag :notify, 1, true
      = label_tag :notify, "Notify project team about your note"
      
    .clear
    %br
    = f.submit 'Add note', :class => "lbutton vm"