mirror of
https://github.com/friendica/friendica
synced 2024-12-21 17:14:54 +01:00
Merge pull request #1554 from FlxAlbroscheit/develop-1
Issue #1504: Creating groups directly from the sidebar in contacts-page
This commit is contained in:
commit
2dd8db7de8
2 changed files with 7 additions and 2 deletions
|
@ -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'),
|
||||
|
|
|
@ -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…
Reference in a new issue