2017-04-21 14:04:29 +00:00
|
|
|
|
2017-05-11 12:54:26 +00:00
|
|
|
{{* This template is for the "group" module. It provides the user the possibility to
|
2017-04-21 14:04:29 +00:00
|
|
|
modify a specific contact group (remove contact group, edit contact group name,
|
|
|
|
add or remove contacts to the contact group.
|
|
|
|
*}}
|
|
|
|
|
|
|
|
<script type="text/javascript" src="view/theme/frio/js/mod_group.js"></script>
|
|
|
|
|
|
|
|
<div class="generic-page-wrapper">
|
2018-07-09 22:36:50 +00:00
|
|
|
{{if $editable == 1}}
|
2017-04-21 14:04:29 +00:00
|
|
|
{{* The buttons for editing the contact group (edit name / remove contact group) *}}
|
|
|
|
<div class="group-actions pull-right">
|
2018-07-09 22:36:50 +00:00
|
|
|
<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">
|
2017-04-21 14:04:29 +00:00
|
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
{{if $drop}}{{$drop}}{{/if}}
|
|
|
|
</div>
|
2018-07-09 22:36:50 +00:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="section-title-wrapper">
|
|
|
|
<div id="group-edit-header">
|
|
|
|
<h2>{{$title}}</h2>
|
|
|
|
</div>
|
2017-04-21 14:04:29 +00:00
|
|
|
|
2018-07-09 22:36:50 +00:00
|
|
|
{{* Edit the name of the group *}}
|
|
|
|
<div id="group-edit-wrapper">
|
2017-04-21 14:04:29 +00:00
|
|
|
|
2018-07-09 22:36:50 +00:00
|
|
|
<form action="group/{{$gid}}" id="group-edit-form" method="post">
|
2018-10-25 07:33:01 +00:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
|
2018-07-09 22:36:50 +00:00
|
|
|
<div class="pull-left">
|
|
|
|
{{include file="field_input.tpl" field=$gname label=false}}
|
|
|
|
</div>
|
|
|
|
<div id="group-edit-submit-wrapper" class="form-group pull-right">
|
2018-12-14 03:28:12 +00:00
|
|
|
<button class="btn btn-primary btn-small" type="submit" name="submit" value="{{$submit}}">
|
|
|
|
{{$submit}}
|
2018-07-09 22:36:50 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clear"></div>
|
2017-04-21 14:04:29 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The search input field to search for contacts *}}
|
|
|
|
<div id="contacts-search-wrapper">
|
2018-07-09 22:36:50 +00:00
|
|
|
<form id="contacts-search-form" class="navbar-form" role="search" method="get" >
|
2017-04-21 14:04:29 +00:00
|
|
|
<div class="row">
|
2018-07-09 22:36:50 +00:00
|
|
|
<div class="form-group form-group-search">
|
|
|
|
<input type="text" name="search" id="contacts-search" class="search-input form-control form-search" onfocus="this.select();" onkeyup="filterList(); return false;" />
|
|
|
|
<button class="btn btn-default btn-sm form-button-search" onclick="filterList(); return false;">{{$submit_filter}}</button>
|
2017-04-21 14:04:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-09 22:36:50 +00:00
|
|
|
</form>
|
2017-04-21 14:04:29 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="contacts-search-end"></div>
|
|
|
|
|
|
|
|
{{if $groupeditor}}
|
|
|
|
{{* The buttons to switch between the different view modes *}}
|
|
|
|
<div id="group-list-view-switcher" class="btn-group btn-group-sm pull-right">
|
|
|
|
<botton type="button" id="group-list-big" class="active group-list-switcher btn btn-default">
|
|
|
|
<i class="fa fa-align-justify" aria-hidden="true"></i>
|
|
|
|
</botton>
|
|
|
|
<button type="button" id="group-list-small" class="btn btn-default group-list-switcher">
|
|
|
|
<i class="fa fa-th-large" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
{{* The contact group list *}}
|
|
|
|
<div id="group-update-wrapper">
|
|
|
|
{{include file="groupeditor.tpl"}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|