$a->page['aside'] = '';
return replace_macros(get_markup_template('contact_drop_confirm.tpl'), array(
- '$contact' => _contact_detail_for_template($orig_record[0]),
+ '$header' => t('Drop contact'),
+ '$contact' => _contact_detail_for_template($orig_record[0]),
'$method' => 'get',
'$message' => t('Do you really want to delete this contact?'),
'$extra_inputs' => $inputs,
-<h1>{{"Drop contact"|t}}</h1>\r
+<h1>{{$header}}</h1>\r
\r
{{include file="contact_template.tpl" no_contacts_checkbox=True}}\r
\r
#directory-search-wrapper{
padding: 10px 0;
}
+#contact-drop-confirm .contact-actions,
+#contact-drop-confirm .contact-photo-overlay,
+#contact-drop-confirm .contact-photo-menu {
+ display: none;
+}
+#contact-drop-confirm #confirm-form {
+ margin-top: 20px;
+}
/* directory page */
#directory-search-heading {
--- /dev/null
+
+<form action="{{$confirm_url}}" id="confirm-form" method="{{$method}}">
+
+ <div id="confirm-message">{{$message}}</div>
+ {{foreach $extra_inputs as $input}}
+ <input type="hidden" name="{{$input.name}}" value="{{$input.value|escape:'html'}}" />
+ {{/foreach}}
+
+ <div class="form-group pull-right settings-submit-wrapper" >
+ <button type="submit" name="{{$confirm_name}}" id="confirm-submit-button" class="btn btn-primary confirm-button" value="{{$confirm|escape:'html'}}">{{$confirm|escape:'html'}}</button>
+ <button type="submit" name="canceled" id="confirm-cancel-button" class="btn confirm-button" data-dismiss="modal">{{$cancel|escape:'html'}}</button>
+ </div>
+
+</form>
--- /dev/null
+<div id="contact-drop-confirm">\r
+ <h2 class="heading">{{$header}}</h2>\r
+\r
+ {{include file="contact_template.tpl" no_contacts_checkbox=True}}\r
+\r
+ {{include file="confirm.tpl"}}\r
+\r
+ <div class="clear"></div>\r
+</div>\r
{{if $contact.photo_menu.poke}}<a class="contact-action-link" onclick="addToModal('{{$contact.photo_menu.poke.1}}')" data-toggle="tooltip" title="{{$contact.photo_menu.poke.0}}"><i class="fa fa-heartbeat" aria-hidden="true"></i></a>{{/if}}
{{if $contact.photo_menu.network}}<a class="contact-action-link" href="{{$contact.photo_menu.network.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.network.0}}"><i class="fa fa-cloud" aria-hidden="true"></i></a>{{/if}}
{{if $contact.photo_menu.edit}}<a class="contact-action-link" href="{{$contact.photo_menu.edit.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.edit.0}}"><i class="fa fa-pencil" aria-hidden="true"></i></a>{{/if}}
- {{if $contact.photo_menu.drop}}<a class="contact-action-link" href="{{$contact.photo_menu.drop.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.drop.0}}"><i class="fa fa-user-times" aria-hidden="true"></i></a>{{/if}}
+ {{if $contact.photo_menu.drop}}<a class="contact-action-link" onclick="addToModal('{{$contact.photo_menu.drop.1}}')" data-toggle="tooltip" title="{{$contact.photo_menu.drop.0}}"><i class="fa fa-user-times" aria-hidden="true"></i></a>{{/if}}
{{if $contact.photo_menu.follow}}<a class="contact-action-link" href="{{$contact.photo_menu.follow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.follow.0}}"><i class="fa fa-user-plus" aria-hidden="true"></i></a>{{/if}}
{{if $contact.photo_menu.hide}}<a class="contact-action-link" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}"><i class="fa fa-times" aria-hidden="true"></i></a>{{/if}}
</div>