2016-07-27 17:53:22 +00:00
|
|
|
|
2018-06-14 15:05:23 +00:00
|
|
|
{{* template incomming contact request and suggested contacts *}}
|
|
|
|
|
|
|
|
<div class="intro-wrapper media" id="intro-{{$intro_id}}" >
|
2016-07-27 17:53:22 +00:00
|
|
|
|
|
|
|
{{* Contact Photo *}}
|
|
|
|
<div class="intro-photo-wrapper dropdown pull-left" >
|
2018-06-14 15:05:23 +00:00
|
|
|
<img id="photo-{{$intro_id}}" class="intro-photo media-object" src="{{$photo}}" title="{{$fullname|escape:'html'}}" alt="{{$fullname|escape:'html'}}" />
|
2016-07-27 17:53:22 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="media-body">
|
|
|
|
{{* The intro actions like approve, ignore, discard intro*}}
|
2016-08-04 09:36:31 +00:00
|
|
|
<div class="intro-actions pull-right nav-pills preferences">
|
2018-06-14 15:05:23 +00:00
|
|
|
<button class="btn-link intro-action-link" onclick="addElmToModal('#intro-approve-wrapper-{{$intro_id}}');" aria-label="{{$approve|escape:'html'}}" title="{{$approve|escape:'html'}}" data-toggle="tooltip"><i class="fa fa-check" aria-hidden="true"></i></button>
|
2016-08-04 09:36:31 +00:00
|
|
|
|
2016-07-27 17:53:22 +00:00
|
|
|
<form class="intro-form" action="notifications/{{$intro_id}}" method="post">
|
2018-04-06 20:42:38 +00:00
|
|
|
<button class="btn-link intro-submit-ignore intro-action-link" type="submit" name="submit" value="{{$ignore|escape:'html'}}" aria-label="{{$ignore|escape:'html'}}" title="{{$ignore|escape:'html'}}" data-toggle="tooltip"><i class="fa fa-ban" aria-hidden="true"></i></button>
|
|
|
|
{{if $discard}}<button class="btn-link intro-submit-discard intro-action-link" type="submit" name="submit" value="{{$discard|escape:'html'}}" aria-label="{{$discard|escape:'html'}}" title="{{$discard|escape:'html'}}" data-toggle="tooltip"><i class="fa fa-trash-o" aria-hidden="true"></i></button>{{/if}}
|
2016-07-27 17:53:22 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2018-11-25 18:56:26 +00:00
|
|
|
<div class='intro-enty-name'><h4 class="media-heading"><a href="{{$zrl}}">{{$fullname|escape}}</a></h4></div>
|
2018-06-14 15:05:23 +00:00
|
|
|
<div class="intro-desc"><span class="intro-desc-label">{{$str_notifytype}}</span> {{$notify_type}}</div>
|
|
|
|
{{* if the contact was suggestested by another contact, the contact who made the suggestion is displayed*}}
|
|
|
|
{{if $madeby}}<div class="intro-madeby"><span class="intro-madeby-label">{{$lbl_madeby}}</span> <a href="{{$madeby_zrl}}">{{$madeby}}</a></div>{{/if}}
|
2016-07-27 17:53:22 +00:00
|
|
|
|
|
|
|
{{* Additional information of the contact *}}
|
2016-08-04 09:36:31 +00:00
|
|
|
<div class="intro-contact-info hidden-xs">
|
|
|
|
<div class="intro-url"><span class="intro-url-label">{{$lbl_url}}: </span><a href="{{$zrl}}">{{$url}}</a></div>
|
|
|
|
{{if $network}}<div class="intro-network"><span class="intro-network-label">{{$lbl_network}}</span> {{$network}}</div>{{/if}}
|
|
|
|
{{if $location}}<div class="intro-location"><span class="intro-location-label">{{$lbl_location}}</span> {{$location}}</div>{{/if}}
|
|
|
|
{{if $gender}}<div class="intro-gender"><span class="intro-gender-label">{{$lbl_gender}}</span> {{$gender}}</div>{{/if}}
|
|
|
|
{{if $keywords}}<div class="intro-keywords"><span class="intro-keywords-label">{{$lbl_keywords}}</span> {{$keywords}}</div>{{/if}}
|
|
|
|
{{if $about}}<div class="intro-about"><span class="intro-about-label">{{$lbl_about}}</span> {{$about}}</div>{{/if}}
|
|
|
|
<div class="intro-knowyou"><span class="intro-knowyou-label">{{$lbl_knowyou}}</span>{{$knowyou}}</div>
|
2018-06-14 15:05:23 +00:00
|
|
|
<div class="intro-note intro-note-{{$intro_id}}">{{$note}}</div>
|
2016-08-04 09:36:31 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* Additional information of the contact for mobile view *}}
|
|
|
|
<div class="intro-contact-info xs hidden-lg hidden-md hidden-sm">
|
|
|
|
<div class="intro-url"><span class="intro-url-label">{{$lbl_url}}:</span><a href="{{$zrl}}">{{$url}}</a></div>
|
|
|
|
{{if $network}}<div class="intro-network"><span class="intro-network-label">{{$lbl_network}}</span>{{$network}}</div>{{/if}}
|
|
|
|
{{if $location}}<div class="intro-location"><span class="intro-location-label">{{$lbl_location}}</span>{{$location}}</div>{{/if}}
|
|
|
|
{{if $gender}}<div class="intro-gender"><span class="intro-gender-label">{{$lbl_gender}}</span>{{$gender}}</div>{{/if}}
|
|
|
|
{{if $keywords}}<div class="intro-keywords"><span class="intro-keywords-label">{{$lbl_keywords}}</span>{{$keywords}}</div>{{/if}}
|
|
|
|
{{if $about}}<div class="intro-about"><span class="intro-about-label">{{$lbl_about}}</span>{{$about}}</div>{{/if}}
|
|
|
|
<div class="intro-knowyou"><span class="intro-knowyou-label">{{$lbl_knowyou}}</span>{{$knowyou}}</div>
|
2018-06-14 15:05:23 +00:00
|
|
|
<div class="intro-note intro-note-{{$intro_id}}">{{$note}}</div>
|
2016-08-04 09:36:31 +00:00
|
|
|
</div>
|
2016-07-27 17:53:22 +00:00
|
|
|
|
|
|
|
{{* This sections contains special settings for contact approval. We hide it by default and load this section in
|
|
|
|
a bootstrap modal in the case of approval *}}
|
2018-06-14 15:05:23 +00:00
|
|
|
<div id="intro-approve-wrapper-{{$intro_id}}" style="display: none;">
|
2016-07-27 17:53:22 +00:00
|
|
|
|
2018-11-25 18:56:26 +00:00
|
|
|
<h3 class="heading">{{$fullname|escape}}{{if $addr}} ({{$addr}}){{/if}}</h3>
|
2018-06-14 15:05:23 +00:00
|
|
|
<form class="intro-approve-form" {{if $request}}action="{{$request}}" method="get"{{else}}action="dfrn_confirm" method="post"{{/if}}>
|
2016-07-27 17:53:22 +00:00
|
|
|
{{include file="field_checkbox.tpl" field=$hidden}}
|
2018-06-14 15:05:23 +00:00
|
|
|
{{if $type != "friend_suggestion"}}
|
2016-07-27 17:53:22 +00:00
|
|
|
<input type="hidden" name="dfrn_id" value="{{$dfrn_id}}" >
|
|
|
|
<input type="hidden" name="intro_id" value="{{$intro_id}}" >
|
|
|
|
<input type="hidden" name="contact_id" value="{{$contact_id}}" >
|
2018-06-14 15:05:23 +00:00
|
|
|
{{/if}}
|
2016-07-27 17:53:22 +00:00
|
|
|
|
|
|
|
{{$dfrn_text}}
|
|
|
|
|
|
|
|
<div class="pull-right">
|
2016-08-04 09:36:31 +00:00
|
|
|
<button class="btn btn-primary intro-submit-approve" type="submit" name="submit" value="{{$approve|escape:'html'}}">{{$approve|escape:'html'}}</button>
|
2016-07-27 17:53:22 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-04 09:36:31 +00:00
|
|
|
|
|
|
|
{{* On mobile touch devices we use buttons for approve, ingnore && discard to have a better UX *}}
|
|
|
|
{{if $APP->is_mobile}}
|
|
|
|
<div class="intro-action-buttons">
|
|
|
|
<form class="intro-form pull-left" action="notifications/{{$intro_id}}" method="post">
|
|
|
|
<button class="btn btn-small btn-default intro-submit-ignore" type="submit" name="submit" value="{{$ignore|escape:'html'}}">{{$ignore|escape:'html'}}</button>
|
2017-04-28 08:36:10 +00:00
|
|
|
{{if $discard}}<button class="btn btn-small btn-default intro-submit-discard" type="submit" name="submit" value="{{$discard|escape:'html'}}">{{$discard|escape:'html'}}</button> {{/if}}
|
2016-08-04 09:36:31 +00:00
|
|
|
</form>
|
2018-06-14 15:05:23 +00:00
|
|
|
<button class="btn btn-small btn-primary intro-submit-approve pull-right" onclick="addElmToModal('#intro-approve-wrapper-{{$intro_id}}')">{{$approve|escape:'html'}}</button>
|
2016-08-04 09:36:31 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
{{/if}}
|
2016-07-27 17:53:22 +00:00
|
|
|
</div>
|
|
|
|
<div class="intro-end"></div>
|