diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-10-21 10:25:09 +0400 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-10-21 10:25:09 +0400 |
commit | 11656fd423e25b23e76c92107841657be2574c29 (patch) | |
tree | 296bdcba7001b9fe30b41aacbce2a2502cac9a06 /app/views/admin/groups/_form.html.haml | |
parent | 5b3bf155cb60f279bacbe2e7622fe3f3f9a3f0a8 (diff) | |
parent | 01db264ffcaaa5579c63b1d33f97d446cc726c3e (diff) |
Merge pull request #8111 from cirosantilli/dry-group-avatar-button
Factor choose group avatar button
Diffstat (limited to 'app/views/admin/groups/_form.html.haml')
-rw-r--r-- | app/views/admin/groups/_form.html.haml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/admin/groups/_form.html.haml b/app/views/admin/groups/_form.html.haml index 7b55249bdca..6aca358a0c9 100644 --- a/app/views/admin/groups/_form.html.haml +++ b/app/views/admin/groups/_form.html.haml @@ -16,13 +16,7 @@ .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.fa.fa-paperclip - %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. + = render 'shared/choose_group_avatar_button', f: f - if @group.new_record? .form-group |