]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/group_edit.tpl
fix scroll position in stream while ajax update
[friendica.git] / view / theme / frio / templates / group_edit.tpl
1
2 {{* This template is for the "group" module. It provides the user the possibility to
3     modify a specific contact group (remove contact group, edit contact group name,
4     add or remove contacts to the contact group.
5 *}}
6
7 <script type="text/javascript" src="view/theme/frio/js/mod_group.js"></script>
8
9 <div class="generic-page-wrapper">
10
11         {{* The buttons for editing the contact group (edit name / remove contact group) *}}
12         <div class="group-actions pull-right">
13                 <button type="button" id="group-rename" class="btn btn-clear" onclick="openClose('group-edit-wrapper'); return false;" title="{{$edit_name}}" data-toggle="tooltip">
14                         <i class="fa fa-pencil" aria-hidden="true"></i>
15                 </button>
16                 {{if $drop}}{{$drop}}{{/if}}
17         </div>
18
19         {{include file="section_title.tpl"}}
20
21         {{* Edit the name of the group *}}
22         <div id="group-edit-wrapper" class="panel panel-inline">
23                 <form action="group/{{$gid}}" id="group-edit-form" method="post">
24                         <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
25
26                         {{include file="field_input.tpl" field=$gname}}
27                         <div id="group-edit-submit-wrapper" class="form-group pull-right">
28                                 <button class="btn btn-primary btn-small" type="submit" name="submit" value="{{$submit|escape:'html'}}">
29                                         {{$submit|escape:'html'}}
30                                 </button>
31                         </div>
32                         <div id="group-edit-select-end" class="clear"></div>
33                 </form>
34         </div>
35
36         {{* The search input field to search for contacts *}}
37         <div id="contacts-search-wrapper">
38                 <div id="contacts-search-form" class="navbar-form" role="search">
39                         <div class="row">
40                                 <div class="col-md-2"></div>
41                                 <div class="col-md-8 ">
42                                         <div class="form-group form-group-search">
43                                                 <input type="text"
44                                                         name="filter"
45                                                         id="contacts-search"
46                                                         class="search-input form-control form-search"
47                                                         onkeyup="filterList(); return false;"
48                                                         onfocus="this.select(); return false;"
49                                                 />
50                                         </div>
51                                 </div>
52                                 <div class="col-md-2"></div>
53                         </div>
54                 </div>
55         </div>
56
57         <hr>
58         <div id="contacts-search-end"></div>
59
60         {{if $groupeditor}}
61         {{* The buttons to switch between the different view modes *}}
62         <div id="group-list-view-switcher" class="btn-group btn-group-sm pull-right">
63                 <botton type="button" id="group-list-big" class="active group-list-switcher btn btn-default">
64                         <i class="fa fa-align-justify" aria-hidden="true"></i>
65                 </botton>
66                 <button type="button" id="group-list-small" class="btn btn-default group-list-switcher">
67                         <i class="fa fa-th-large" aria-hidden="true"></i>
68                 </button>
69         </div>
70         <div class="clear"></div>
71
72         {{* The contact group list *}}
73         <div id="group-update-wrapper">
74                 {{include file="groupeditor.tpl"}}
75         </div>
76         {{/if}}
77 </div>