Add messagegroup

Messagegroups are a new kind of group. Every user can join and leave such a
group on her own. They are useful to create topics for mails.

E.g. if there is a weekly newsletter we can create a new messagegroup for
it and every user which is interested in receiving the newsletter can join
the corresponding group.
This commit is contained in:
Patrick Gansterer 2016-02-17 12:26:21 +01:00 committed by wvengen
parent b30b4e46d8
commit 01cf6431a9
15 changed files with 172 additions and 9 deletions

View file

@ -0,0 +1,14 @@
- title t '.title'
- content_for :actionbar do
= link_to t('.new_messagegroup'), new_admin_messagegroup_path, class: 'btn btn-primary'
- content_for :sidebar do
%p= t('.first_paragraph', url: link_to(t('.new_messagegroups'), new_admin_messagegroup_path)).html_safe
.well.well-small
= form_tag admin_messagegroups_path, :method => :get, :remote => true,
'data-submit-onchange' => true, class: 'form-search' do
= text_field_tag :query, params[:query], class: 'input-medium search-query',
placeholder: t('admin.search_placeholder')
#messagegroups
= render "messagegroups"