]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/group_edit.tpl
Merge pull request #5563 from MrPetovan/bug/5470-fix-various-notices
[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         {{if $editable == 1}}
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="showHide('group-edit-wrapper'); showHide('group-edit-header'); 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         {{/if}}
19
20         <div class="section-title-wrapper">
21                 <div id="group-edit-header">
22                         <h2>{{$title}}</h2>
23                 </div>
24
25                 {{* Edit the name of the group *}}
26                 <div id="group-edit-wrapper">
27
28                         <form action="group/{{$gid}}" id="group-edit-form" method="post">
29
30                                 <div class="pull-left">
31                                 {{include file="field_input.tpl" field=$gname label=false}}
32                                 </div>
33                                 <div id="group-edit-submit-wrapper" class="form-group pull-right">
34                                         <button class="btn btn-primary btn-small" type="submit" name="submit" value="{{$submit|escape:'html'}}">
35                                                 {{$submit|escape:'html'}}
36                                         </button>
37                                 </div>
38                         </form>
39                 </div>
40
41                 <div class="clear"></div>
42         </div>
43
44         {{* The search input field to search for contacts *}}
45         <div id="contacts-search-wrapper">
46                 <form id="contacts-search-form" class="navbar-form" role="search" method="get" >
47                         <div class="row">
48                                 <div class="form-group form-group-search">
49                                         <input type="text" name="search" id="contacts-search" class="search-input form-control form-search" onfocus="this.select();" onkeyup="filterList(); return false;" />
50                                         <button class="btn btn-default btn-sm form-button-search" onclick="filterList(); return false;">{{$submit_filter}}</button>
51                                 </div>
52                         </div>
53                 </form>
54         </div>
55
56         <div id="contacts-search-end"></div>
57
58         {{if $groupeditor}}
59         {{* The buttons to switch between the different view modes *}}
60         <div id="group-list-view-switcher" class="btn-group btn-group-sm pull-right">
61                 <botton type="button" id="group-list-big" class="active group-list-switcher btn btn-default">
62                         <i class="fa fa-align-justify" aria-hidden="true"></i>
63                 </botton>
64                 <button type="button" id="group-list-small" class="btn btn-default group-list-switcher">
65                         <i class="fa fa-th-large" aria-hidden="true"></i>
66                 </button>
67         </div>
68         <div class="clear"></div>
69
70         {{* The contact group list *}}
71         <div id="group-update-wrapper">
72                 {{include file="groupeditor.tpl"}}
73         </div>
74         {{/if}}
75 </div>