2 {{* template incomming contact request and suggested contacts *}}
4 <div class="intro-wrapper media" id="intro-{{$intro_id}}">
7 <div class="intro-photo-wrapper dropdown pull-left">
8 <img id="photo-{{$intro_id}}" class="intro-photo media-object" src="{{$photo}}" title="{{$fullname}}" alt="{{$fullname}}" />
11 <div class="media-body">
12 <div class='intro-enty-name'><h4 class="media-heading"><a href="{{$zrl}}">{{$fullname}}</a></h4></div>
13 <div class="intro-desc"><span class="intro-desc-label">{{$str_notification_type}}</span> {{$str_type}}</div>
14 {{* if the contact was suggestested by another contact, the contact who made the suggestion is displayed*}}
15 {{if $madeby}}<div class="intro-madeby"><span class="intro-madeby-label">{{$lbl_madeby}}</span> <a href="{{$madeby_zrl}}">{{$madeby}}</a></div>{{/if}}
17 {{* Additional information of the contact *}}
18 <div class="intro-contact-info hidden-xs">
19 <div class="intro-url"><span class="intro-url-label">{{$lbl_url}}: </span><a href="{{$zrl}}">{{$url}}</a></div>
20 {{if $network}}<div class="intro-network"><span class="intro-network-label">{{$lbl_network}}</span> {{$network}}</div>{{/if}}
21 {{if $location}}<div class="intro-location"><span class="intro-location-label">{{$lbl_location}}</span> {{$location}}</div>{{/if}}
22 {{if $keywords}}<div class="intro-keywords"><span class="intro-keywords-label">{{$lbl_keywords}}</span> {{$keywords}}</div>{{/if}}
23 {{if $about}}<div class="intro-about"><span class="intro-about-label">{{$lbl_about}}</span> {{$about nofilter}}</div>{{/if}}
24 <div class="intro-knowyou"><span class="intro-knowyou-label">{{$lbl_knowyou}}</span>{{$knowyou}}</div>
25 <div class="intro-note intro-note-{{$intro_id}}">{{$note}}</div>
28 {{* Additional information of the contact for mobile view *}}
29 <div class="intro-contact-info xs hidden-lg hidden-md hidden-sm">
30 <div class="intro-url"><span class="intro-url-label">{{$lbl_url}}:</span><a href="{{$zrl}}">{{$url}}</a></div>
31 {{if $network}}<div class="intro-network"><span class="intro-network-label">{{$lbl_network}}</span>{{$network}}</div>{{/if}}
32 {{if $location}}<div class="intro-location"><span class="intro-location-label">{{$lbl_location}}</span>{{$location}}</div>{{/if}}
33 {{if $keywords}}<div class="intro-keywords"><span class="intro-keywords-label">{{$lbl_keywords}}</span>{{$keywords}}</div>{{/if}}
34 {{if $about}}<div class="intro-about"><span class="intro-about-label">{{$lbl_about}}</span>{{$about nofilter}}</div>{{/if}}
35 <div class="intro-knowyou"><span class="intro-knowyou-label">{{$lbl_knowyou}}</span>{{$knowyou}}</div>
36 <div class="intro-note intro-note-{{$intro_id}}">{{$note}}</div>
39 {{* On mobile touch devices we use buttons for approve, ignore && discard to have a better UX *}}
41 <form class="intro-form" action="notification/{{$intro_id}}" method="post">
42 <button class="btn btn-small btn-primary" type="button" onclick="addElmToModal('#intro-approve-wrapper-{{$intro_id}}');"><i class="fa fa-check" aria-hidden="true"></i> {{$approve}}</button>
44 <button class="btn btn-small btn-warning intro-submit-discard" type="submit" name="submit" value="{{$discard}}"><i class="fa fa-trash-o" aria-hidden="true"></i> {{$discard}}</button>
46 <button class="btn btn-small btn-danger intro-submit-ignore" type="submit" name="submit" value="{{$ignore}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$ignore}}</button>
49 {{* The intro actions like approve, ignore, discard intro*}}
50 <div class="intro-actions pull-right nav-pills preferences">
51 <button class="btn-link intro-action-link" onclick="addElmToModal('#intro-approve-wrapper-{{$intro_id}}');" aria-label="{{$approve}}" title="{{$approve}}" data-toggle="tooltip"><i class="fa fa-check" aria-hidden="true"></i></button>
53 <form class="intro-form" action="notification/{{$intro_id}}" method="post">
54 <button class="btn-link intro-submit-ignore intro-action-link" type="submit" name="submit" value="{{$ignore}}" aria-label="{{$ignore}}" title="{{$ignore}}" data-toggle="tooltip"><i class="fa fa-ban" aria-hidden="true"></i></button>
55 {{if $discard}}<button class="btn-link intro-submit-discard intro-action-link" type="submit" name="submit" value="{{$discard}}" aria-label="{{$discard}}" title="{{$discard}}" data-toggle="tooltip"><i class="fa fa-trash-o" aria-hidden="true"></i></button>{{/if}}
60 {{* This sections contains special settings for contact approval. We hide it by default and load this section in
61 a bootstrap modal in the case of approval *}}
62 <template id="intro-approve-wrapper-{{$intro_id}}" style="display: none;">
63 <h3 class="heading">{{$fullname}}{{if $addr}} ({{$addr}}){{/if}}</h3>
64 <form class="intro-approve-form" {{if $request}}action="{{$request}}" method="get"{{else}}action="{{$action}}" method="post"{{/if}}>
65 {{if $type != "friend_suggestion"}}
66 {{include file="field_checkbox.tpl" field=$hidden}}
67 <div role="radiogroup" aria-labelledby="connection_type">
68 <label id="connection_type">{{$lbl_connection_type}}</label>
69 {{include file="field_radio.tpl" field=$friend}}
70 {{include file="field_radio.tpl" field=$follower}}
72 <input type="hidden" name="dfrn_id" value="{{$dfrn_id}}">
73 <input type="hidden" name="intro_id" value="{{$intro_id}}">
74 <input type="hidden" name="contact_id" value="{{$contact_id}}">
76 {{if $note}}<div>{{$note}}</div>{{/if}}
77 <input type="hidden" name="url" value="{{$url}}">
78 <input type="hidden" name="dfrn-url" value="{{$dfrn_url}}">
80 <div class="pull-right">
81 <button class="btn btn-primary intro-submit-approve" type="submit" name="submit" value="{{$approve}}">{{$approve}}</button>
83 <div class="clear"></div>
88 <div class="intro-end"></div>