Commit ac46130748c31f3052f7ac325f897637e7b326f5
1 parent
761fbbfe
Exists in
spb-stable
and in
2 other branches
Allow set group avatar when create group. Not only edit page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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 | ... | ... |