2014-09-06 00:14:25 +02:00
|
|
|
|
2017-04-21 16:04:29 +02:00
|
|
|
{{* Template for the contact group list *}}
|
|
|
|
|
2018-07-10 00:36:50 +02:00
|
|
|
{{if $editable == 1}}
|
2017-04-21 16:04:29 +02:00
|
|
|
{{* The contacts who are already members of the contact group *}}
|
2013-04-23 13:47:57 +02:00
|
|
|
<div id="group">
|
2017-04-21 16:04:29 +02:00
|
|
|
<h3>{{$groupeditor.label_members}}</h3>
|
|
|
|
<div id="group-members" class="contact_list">
|
|
|
|
|
|
|
|
{{if $groupeditor.members }}
|
|
|
|
|
|
|
|
{{foreach $groupeditor.members as $c}}
|
|
|
|
{{* If there are too many contacts we use another view mode *}}
|
|
|
|
{{if $shortmode}}
|
|
|
|
<div class="contact-block-textdiv mpgroup">
|
|
|
|
<a class="contact-block-link mpgroup fakelink" target="redir" onclick="groupChangeMember({{$c.change_member.gid}},{{$c.change_member.cid}},'{{$c.change_member.sec_token}}'); return true;" title="{{$c.name}} [{{$c.itemurl}}]" alt="{{$c.name}}">
|
|
|
|
{{$c.name}}"
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{* The normal view mode *}}
|
|
|
|
<div class="contact-block-div mpgroup">
|
|
|
|
<a class="contact-block-link mpgroup fakelink" target="redir" onclick="groupChangeMember({{$c.change_member.gid}},{{$c.change_member.cid}},'{{$c.change_member.sec_token}}'); return true;">
|
|
|
|
<img class="contact-block-img mpgroup " src="{{$c.thumb}}" title="{{$c.name}} [{{$c.itemurl}}]" alt="{{$c.name}}">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/foreach}}
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
{{$groupeditor.group_is_empty}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="group-members-end"></div>
|
|
|
|
<hr id="group-separator" />
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|
2018-07-10 00:36:50 +02:00
|
|
|
{{/if}}
|
2013-04-23 13:47:57 +02:00
|
|
|
|
2017-04-21 16:04:29 +02:00
|
|
|
{{* The contacts who are not members of the contact group *}}
|
2013-04-23 13:47:57 +02:00
|
|
|
<div id="contacts">
|
2017-04-21 16:04:29 +02:00
|
|
|
<h3>{{$groupeditor.label_contacts}}</h3>
|
|
|
|
<div id="group-all-contacts" class="contact_list">
|
|
|
|
{{foreach $groupeditor.contacts as $m}}
|
|
|
|
<div class="contact-block-textdiv mpall">
|
2018-07-10 00:36:50 +02:00
|
|
|
{{if $editable == 1}}
|
2017-04-21 16:04:29 +02:00
|
|
|
<a class="contact-block-link mpall fakelink" target="redir" onclick="groupChangeMember({{$m.change_member.gid}},{{$m.change_member.cid}},'{{$m.change_member.sec_token}}'); return true;" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
|
2018-07-10 00:36:50 +02:00
|
|
|
{{else}}
|
|
|
|
<a class="contact-block-link mpall" href="{{$m.url}}" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
|
|
|
|
{{/if}}
|
|
|
|
{{* If there are too many contacts we use another view mode *}}
|
|
|
|
{{if $shortmode}}
|
|
|
|
{{$m.name}}
|
|
|
|
{{else}}
|
|
|
|
<img class="contact-block-img mpall " src="{{$m.thumb}}" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
|
|
|
|
{{/if}}
|
2017-04-21 16:04:29 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{/foreach}}
|
|
|
|
</div>
|
|
|
|
<div id="group-all-contacts-end"></div>
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|