Browse Source

Merge pull request #1554 from FlxAlbroscheit/develop-1

Issue #1504: Creating groups directly from the sidebar in contacts-page
pull/1562/head
Tobias Diekershoff 7 years ago
parent
commit
2dd8db7de8
  1. 2
      include/group.php
  2. 7
      view/templates/group_side.tpl

2
include/group.php

@ -270,6 +270,8 @@ function group_side($every="contacts",$each="group",$edit = false, $group_id = 0
'$title' => t('Groups'),
'$edittext' => t('Edit group'),
'$createtext' => t('Create a new group'),
'$creategroup' => t('Group Name: '),
'$form_security_token' => get_form_security_token("group_edit"),
'$ungrouped' => (($every === 'contacts') ? t('Contacts not in any group') : ''),
'$groups' => $groups,
'$add' => t('add'),

7
view/templates/group_side.tpl

@ -1,4 +1,3 @@
<div class="widget" id="group-sidebar">
<h3>{{$title}}</h3>
@ -22,7 +21,11 @@
</ul>
</div>
<div id="sidebar-new-group">
<a href="group/new">{{$createtext}}</a>
<a onclick="javascript:$('#group-new-form').fadeIn('fast');return false;">{{$createtext}}</a>
<form id="group-new-form" action="group/new" method="post" style="display:none;">
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
<input name="groupname" id="id_groupname" placeholder="{{$creategroup}}">
</form>
</div>
{{if $ungrouped}}
<div id="sidebar-ungrouped">

Loading…
Cancel
Save