some docu for the contact templates

This commit is contained in:
rabuzarus 2016-04-20 03:15:35 +02:00
parent b59c0648bc
commit 7600bf7d94
3 changed files with 14 additions and 2 deletions

View file

@ -1,6 +1,7 @@
<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 mframe" id="contact-entry-photo-{{$contact.id}}" >
@ -33,6 +34,7 @@
</div>
<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-name" id="contact-entry-name-{{$contact.id}}" >
<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}}
</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 $multiselect}}
<div class="checkbox contact-entry-checkbox pull-right">
@ -54,6 +57,5 @@
</div>
{{/if}}
</div>
</div>

View file

@ -3,10 +3,12 @@
{{$tabs}}
{{* The page headding with it's contacts counter *}}
<h2 class="headding">{{$header}} {{if $total}} ({{$total}}) {{/if}}</h2>
{{if $finding}}<h4>{{$finding}}</h4>{{/if}}
{{* The search input field to search for contacts *}}
<div id="contacts-search-wrapper">
<form id="contacts-search-form" class="navbar-form" action="{{$cmd}}" method="get" >
<label for="contacts-search" class="contacts-search-desc">{{$desc}}</label><br/>
@ -22,7 +24,9 @@
<hr>
<div id="contacts-search-end"></div>
{{* we need the form container to make batch actions work *}}
<form action="{{$baseurl}}/contacts/batch/" method="POST">
{{* We put the contact batch actions in a dropdown menu *}}
<ul class="nav nav-pills preferences">
<li class="dropdown pull-right">
<a class="btn btn-link dropdown-toggle" type="button" id="BatchActionDropdownMenuTools" data-toggle="dropdown" aria-expanded="true">
@ -39,6 +43,7 @@
</ul>
<div class="clear">
{{* format each contact with the contact_template.tpl *}}
<ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
{{foreach $contacts as $contact}}
<li>{{include file="contact_template.tpl"}}</li>
@ -50,6 +55,8 @@
{{$paginate}}
</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-dialog">
<div class="modal-content">

View file

@ -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"}}
{{$tab_str}}