Fix icon identifer and capitalization

refs #4550
refs #4584
This commit is contained in:
Marius Hein 2013-08-23 10:58:58 +02:00
parent 895976550c
commit 2f610b70ac
5 changed files with 29 additions and 30 deletions

View File

@ -93,7 +93,7 @@ class DbBackendForm extends BaseBackendForm
)
);
$this->setSubmitLabel('{{SAVE_ICON}} Save backend');
$this->setSubmitLabel('{{SAVE_ICON}} Save Backend');
}
/**

View File

@ -65,7 +65,7 @@ class Zend_View_Helper_MonitoringCommands extends Zend_View_Helper_Abstract
$definition->shortDescription,
$definition->longDescription,
$definition->iconCls,
$definition->btnCls
($definition->btnCls) ? $definition->btnCls : 'btn-default'
);
if ($type === Meta::TYPE_FULL) {

View File

@ -30,24 +30,24 @@ $downtimes = $downtimes->fetchAll();
$this->sort,
array('class' => 'autosubmit'),
array(
'downtime_is_in_effect' => 'Is In Effect',
'object_type' => 'Service/Host',
'host_name' => 'Host Name',
'service_description' => 'Service Name',
'downtime_entry_time' => 'Entry Time',
'downtime_author_name' => 'Author',
'downtime_comment_data' => 'Comment',
'downtime_scheduled_start_time' => 'Start',
'downtime_scheduled_end_time' => 'End',
'downtime_trigger_time' => 'Trigger Time',
'downtime_internal_downtime_id' => 'Downtime ID',
'downtime_duration' => 'Duration',
)
'downtime_is_in_effect' => 'Is In Effect',
'object_type' => 'Service/Host',
'host_name' => 'Host Name',
'service_description' => 'Service Name',
'downtime_entry_time' => 'Entry Time',
'downtime_author_name' => 'Author',
'downtime_comment_data' => 'Comment',
'downtime_scheduled_start_time' => 'Start',
'downtime_scheduled_end_time' => 'End',
'downtime_trigger_time' => 'Trigger Time',
'downtime_internal_downtime_id' => 'Downtime ID',
'downtime_duration' => 'Duration',
)
);
?>
<noscript>
<button class="btn btn-small btn-default" >
<i>REFRESH ICON</i>
<i>{{REFRESH_ICON}}</i>
</button>
</noscript>
</form>
@ -90,14 +90,13 @@ $downtimes = $downtimes->fetchAll();
<?= ($downtime->downtime_is_in_effect == 0 ? 'False' : '<b>True</b>'); ?>
</td>
<td>
<div >
<div>
<?php if ($downtime->object_type == 'service'): ?>
<img title="Service" src="<?='../../img/classic/service.png'?>"/>
{{SERVICE_ICON}}
<?php endif; ?>
<?php if ($downtime->object_type == 'host'): ?>
<img title="Host" src="<?='../../img/classic/server.png'?>"/>
{{HOST_ICON}}
<?php endif; ?>
</div>
</td>

View File

@ -1,30 +1,30 @@
<?= $this->tabs->render($this); ?>
<?php
$formatter = $this->getHelper('MonitoringProperties');
$formatter = $this->getHelper('MonitoringProperties');
?>
<form method="get" action="<?=
$this->href(
'monitoring/list/notifications',
$this->notifications->getAppliedFilter()->toParams()
);
$this->href(
'monitoring/list/notifications',
$this->notifications->getAppliedFilter()->toParams()
);
?>">
<label>Sort By</label> <?=
$this->formSelect(
'sort',
$this->sort,
array(
'class' => 'autosubmit'
'class' => 'autosubmit'
),
array(
'notification_start_time' => 'Time'
'notification_start_time' => 'Time'
)
);
?>
<noscript>
<button class="btn btn-small btn-default">
<i>REFRESH ICON</i>
{{REFRESH_ICON}}
</button>
</noscript>
</form>
@ -42,7 +42,7 @@ echo $this->paginationControl($notifications, null, null, array('preserve' => $t
<th>Type</th>
<th>Time</th>
<th>Contact</th>
<th>Notification command</th>
<th>Notification Command</th>
<th>Information</th>
</tr>
</thead>

View File

@ -21,7 +21,7 @@
$row[] = '<button type="button" data-target="command" class="btn btn-warning"'
. ' data-command-id="29" data-command-info="'. $downtime->downtime_internal_downtime_id. '"'
. '><i class="icon-delete"></i> Delete'
. '>{{REMOVE_ICON}} Remove'
. '</button>';
$list[] = '<td>'. implode('</td><td>', $row). '</td>';