From ac46130748c31f3052f7ac325f897637e7b326f5 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 20 May 2014 16:36:51 +0300 Subject: [PATCH] Allow set group avatar when create group. Not only edit page Signed-off-by: Dmitriy Zaporozhets --- app/views/groups/new.html.haml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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