]> git.mxchange.org Git - friendica.git/commitdiff
Add a group with one click
authorFlxAlbroscheit <felix@artplantation.de>
Tue, 12 May 2015 12:09:51 +0000 (14:09 +0200)
committerFlxAlbroscheit <felix@artplantation.de>
Tue, 12 May 2015 12:09:51 +0000 (14:09 +0200)
view/templates/group_side.tpl

index b304be3b994b37888b8fb9fd01f68332cb5b7ae1..fa3a111480982731b821fafef7569f0e65d8c998 100644 (file)
@@ -1,4 +1,3 @@
-
 <div class="widget" id="group-sidebar">
 <h3>{{$title}}</h3>
 
        </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">