some docu for the contact templates
This commit is contained in:
parent
b59c0648bc
commit
7600bf7d94
3 changed files with 14 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
<div class="contact-wrapper media" id="contact-entry-wrapper-{{$id}}" >
|
<div class="contact-wrapper media" id="contact-entry-wrapper-{{$id}}" >
|
||||||
|
|
||||||
|
{{* This is a wrapper for the contact picture and the dropdown menu with contact relating actions *}}
|
||||||
<div class="contact-photo-wrapper dropdown pull-left" >
|
<div class="contact-photo-wrapper dropdown pull-left" >
|
||||||
<div class="contact-photo mframe" id="contact-entry-photo-{{$contact.id}}" >
|
<div class="contact-photo mframe" id="contact-entry-photo-{{$contact.id}}" >
|
||||||
|
|
||||||
|
@ -33,6 +34,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
|
{{* The contact description (e.g. Name, Network, kind of connection and so on *}}
|
||||||
<div class="contact-entry-desc">
|
<div class="contact-entry-desc">
|
||||||
<div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >
|
<div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >
|
||||||
<h4 class="media-heading">{{$contact.name}}
|
<h4 class="media-heading">{{$contact.name}}
|
||||||
|
@ -46,6 +48,7 @@
|
||||||
{{if $contact.network}}<div class="contact-entry-details" id="contact-entry-network-{{$contact.id}}" >{{$contact.network}}</div>{{/if}}
|
{{if $contact.network}}<div class="contact-entry-details" id="contact-entry-network-{{$contact.id}}" >{{$contact.network}}</div>{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
|
||||||
{{* if !$no_contacts_checkbox *}}
|
{{* if !$no_contacts_checkbox *}}
|
||||||
{{if $multiselect}}
|
{{if $multiselect}}
|
||||||
<div class="checkbox contact-entry-checkbox pull-right">
|
<div class="checkbox contact-entry-checkbox pull-right">
|
||||||
|
@ -55,5 +58,4 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,10 +3,12 @@
|
||||||
|
|
||||||
{{$tabs}}
|
{{$tabs}}
|
||||||
|
|
||||||
|
{{* The page headding with it's contacts counter *}}
|
||||||
<h2 class="headding">{{$header}} {{if $total}} ({{$total}}) {{/if}}</h2>
|
<h2 class="headding">{{$header}} {{if $total}} ({{$total}}) {{/if}}</h2>
|
||||||
|
|
||||||
{{if $finding}}<h4>{{$finding}}</h4>{{/if}}
|
{{if $finding}}<h4>{{$finding}}</h4>{{/if}}
|
||||||
|
|
||||||
|
{{* The search input field to search for contacts *}}
|
||||||
<div id="contacts-search-wrapper">
|
<div id="contacts-search-wrapper">
|
||||||
<form id="contacts-search-form" class="navbar-form" action="{{$cmd}}" method="get" >
|
<form id="contacts-search-form" class="navbar-form" action="{{$cmd}}" method="get" >
|
||||||
<label for="contacts-search" class="contacts-search-desc">{{$desc}}</label><br/>
|
<label for="contacts-search" class="contacts-search-desc">{{$desc}}</label><br/>
|
||||||
|
@ -22,7 +24,9 @@
|
||||||
<hr>
|
<hr>
|
||||||
<div id="contacts-search-end"></div>
|
<div id="contacts-search-end"></div>
|
||||||
|
|
||||||
|
{{* we need the form container to make batch actions work *}}
|
||||||
<form action="{{$baseurl}}/contacts/batch/" method="POST">
|
<form action="{{$baseurl}}/contacts/batch/" method="POST">
|
||||||
|
{{* We put the contact batch actions in a dropdown menu *}}
|
||||||
<ul class="nav nav-pills preferences">
|
<ul class="nav nav-pills preferences">
|
||||||
<li class="dropdown pull-right">
|
<li class="dropdown pull-right">
|
||||||
<a class="btn btn-link dropdown-toggle" type="button" id="BatchActionDropdownMenuTools" data-toggle="dropdown" aria-expanded="true">
|
<a class="btn btn-link dropdown-toggle" type="button" id="BatchActionDropdownMenuTools" data-toggle="dropdown" aria-expanded="true">
|
||||||
|
@ -39,6 +43,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<div class="clear">
|
<div class="clear">
|
||||||
|
|
||||||
|
{{* format each contact with the contact_template.tpl *}}
|
||||||
<ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
|
<ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
|
||||||
{{foreach $contacts as $contact}}
|
{{foreach $contacts as $contact}}
|
||||||
<li>{{include file="contact_template.tpl"}}</li>
|
<li>{{include file="contact_template.tpl"}}</li>
|
||||||
|
@ -50,6 +55,8 @@
|
||||||
{{$paginate}}
|
{{$paginate}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{* The modals for Poke and Messages
|
||||||
|
this needs to be removed and do it with js *}}
|
||||||
<div class="modal" id="PokeModal" tabindex="-1" role="dialog" aria-labelledby="PokeModal" aria-hidden="true">
|
<div class="modal" id="PokeModal" tabindex="-1" role="dialog" aria-labelledby="PokeModal" aria-hidden="true">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
|
||||||
|
{{* This is the standard template for showing contact lists. It is used e.g.
|
||||||
|
at the suggest page and also at many other places *}}
|
||||||
|
|
||||||
{{include file="section_title.tpl"}}
|
{{include file="section_title.tpl"}}
|
||||||
|
|
||||||
{{$tab_str}}
|
{{$tab_str}}
|
||||||
|
|
Loading…
Reference in a new issue