diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-20 17:36:51 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-20 17:36:51 +0400 |
commit | ac46130748c31f3052f7ac325f897637e7b326f5 (patch) | |
tree | 92cdeb45efd59268fb03ab5ddcb67f741d1c9356 /app/views/groups/new.html.haml | |
parent | 761fbbfeea5653e8d01e2d3d7fc936031ad39385 (diff) |
Allow set group avatar when create group. Not only edit page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/groups/new.html.haml')
-rw-r--r-- | app/views/groups/new.html.haml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/groups/new.html.haml b/app/views/groups/new.html.haml index 955a107e542..ebf5e8571aa 100644 --- a/app/views/groups/new.html.haml +++ b/app/views/groups/new.html.haml @@ -13,6 +13,17 @@ .col-sm-10 = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4 + .form-group.group-description-holder + = f.label :avatar, "Group avatar", class: 'control-label' + .col-sm-10 + %a.choose-btn.btn.btn-small.js-choose-group-avatar-button + %i.icon-paper-clip + %span Choose File ... + + %span.file_name.js-avatar-filename File name... + = f.file_field :avatar, class: "js-group-avatar-input hidden" + .light The maximum file size allowed is 100KB. + .form-group .col-sm-2 .col-sm-10 |