parent
38c6d6aaf8
commit
48f49c56b2
|
@ -1,69 +1,59 @@
|
||||||
<?php
|
<?php $contactHelper = $this->getHelper('ContactFlags') ?>
|
||||||
$contactHelper = $this->getHelper('ContactFlags');
|
<div class="controls">
|
||||||
?>
|
<h1><?= $this->translate('Contact details') ?></h1>
|
||||||
<div style="margin-top: 0.5em;">
|
<div class="circular" style="margin-top: 1em; margin-left: 2em; width: 120px; height: 120px; float: left; background-image: url('<?=
|
||||||
<?php if ($contact): ?>
|
$this->href('static/gravatar', array('email' => $contact->contact_email))
|
||||||
<table style="border-spacing: 0.25em; border-collapse: separate;">
|
?>')"></div>
|
||||||
<thead>
|
|
||||||
<tr>
|
<?php if (! $contact): ?>
|
||||||
<th colspan="2" style="text-align: left">
|
<?= $this->translate('No such contact') ?>: <?= $contactName ?>
|
||||||
<?= $this->escape($contact->contact_name) ?><span style="font-weight: normal;"> (<?=
|
</div>
|
||||||
$this->escape($contact->contact_alias)
|
<?php return; endif ?>
|
||||||
?>)</span>
|
|
||||||
</th>
|
<table class="avp" style="width: 70%">
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= t('Email') ?></td>
|
<th style="width: 20%"></th>
|
||||||
<td><?php printf(
|
<td><strong><?= $this->escape($contact->contact_alias) ?></strong> (<?= $contact->contact_name ?>)</td>
|
||||||
'<a href="mailto:%1$s">%1$s</a>',
|
|
||||||
$this->escape($contact->contact_email)
|
|
||||||
); ?></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
<?php if ($contact->contact_email): ?>
|
||||||
|
<tr>
|
||||||
|
<th><?= t('Email') ?></th>
|
||||||
|
<td><?= sprintf('<a href="mailto:%1$s">%1$s</a>', $this->escape($contact->contact_email)) ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php endif ?>
|
||||||
<?php if ($contact->contact_pager): ?>
|
<?php if ($contact->contact_pager): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= t('Pager') ?></td>
|
<th><?= t('Pager') ?></th>
|
||||||
<td><?= $this->escape($contact->contact_pager) ?></td>
|
<td><?= $this->escape($contact->contact_pager) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endif; ?>
|
<?php endif ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= t('Flags (service)') ?></td>
|
<th><?= t('Hosts') ?></th>
|
||||||
<td><?= $this->escape($contactHelper->contactFlags($contact, 'service')) ?></td>
|
<td><?= $this->escape($contactHelper->contactFlags($contact, 'host')) ?><br />
|
||||||
|
<?= $this->escape($contact->contact_notify_host_timeperiod) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= t('Flags (host)') ?></td>
|
<th><?= t('Services') ?></th>
|
||||||
<td><?= $this->escape($contactHelper->contactFlags($contact, 'host')) ?></td>
|
<td><?= $this->escape($contactHelper->contactFlags($contact, 'service')) ?><br />
|
||||||
</tr>
|
<?= $this->escape($contact->contact_notify_service_timeperiod) ?></td>
|
||||||
<tr>
|
|
||||||
<td><?= t('Service notification period') ?></td>
|
|
||||||
<td><?= $this->escape($contact->contact_notify_service_timeperiod) ?></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?= t('Host notification period') ?></td>
|
|
||||||
<td><?= $this->escape($contact->contact_notify_host_timeperiod) ?></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<?php /* WTF?? */ ?>
|
||||||
<?php if (count($commands)): ?>
|
<?php if (count($commands)): ?>
|
||||||
<h4><?= $this->translate('Commands'); ?>:</h4>
|
<h1><?= $this->translate('Commands') ?>:</h1>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($commands as $command): ?>
|
<?php foreach ($commands as $command): ?>
|
||||||
<li><?= $command->command_name; ?></li>
|
<li><?= $command->command_name ?></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif ?>
|
||||||
|
<h1><?= $this->translate('Notifications sent to this contact') ?></h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<h4><?= $this->translate('Notifications'); ?>:</h4>
|
|
||||||
<?php if (count($notifications)): ?>
|
<?php if (count($notifications)): ?>
|
||||||
<?= $this->render('list/notifications.phtml') ?>
|
<?= $this->render('list/notifications.phtml') ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<p><?= $this->translate('No notifications for this contact'); ?></p>
|
<div class="content"><?= $this->translate('No notifications have been sent for this contact') ?></div>
|
||||||
<?php endif; ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php else: ?>
|
|
||||||
<?= $this->translate('No such contact'); ?>: <?= $contactName; ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
|
|
Loading…
Reference in New Issue