Commit de8c43f6f6e483495968f42b6165581c99ff9ba3

Authored by Dmitriy Zaporozhets
2 parents babfc068 ac461307

Merge branch 'new-group-avatar' into 'master'

Ability to upload avatar when create new group

Before this change you dont know you can upload avatar for group until you visit group edit page.

After this change you are able to upload avatar during group creation
Showing 1 changed file with 11 additions and 0 deletions   Show diff stats
app/views/groups/new.html.haml
... ... @@ -13,6 +13,17 @@
13 13 .col-sm-10
14 14 = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4
15 15  
  16 + .form-group.group-description-holder
  17 + = f.label :avatar, "Group avatar", class: 'control-label'
  18 + .col-sm-10
  19 + %a.choose-btn.btn.btn-small.js-choose-group-avatar-button
  20 + %i.icon-paper-clip
  21 + %span Choose File ...
  22 +  
  23 + %span.file_name.js-avatar-filename File name...
  24 + = f.file_field :avatar, class: "js-group-avatar-input hidden"
  25 + .light The maximum file size allowed is 100KB.
  26 +
16 27 .form-group
17 28 .col-sm-2
18 29 .col-sm-10
... ...