Skip to content

Commit

Permalink
[*] change reload behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Veres committed May 3, 2017
1 parent 18fd74b commit 61d0530
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
8 changes: 5 additions & 3 deletions app/View/Elements/host_browser_menu.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
// confirmation.

?>
<a href="#" data-original-title="<?php echo __('Reset check time'); ?>" data-placement="bottom" rel="tooltip"
class="btn btn-default btn-sm" data-toggle="modal" data-target="#nag_command_reschedule">
<?php if($this->request->params['action'] == 'browser' && $this->request->params['controller'] == 'hosts'): ?>
<span data-original-title="<?php echo __('Reset check time'); ?>" data-placement="bottom" rel="tooltip"
class="btn btn-default btn-sm" data-toggle="modal" data-target="#nag_command_reschedule">
<i class="fa fa-refresh fa-lg"></i>
</a>
</span>
<?php endif; ?>
<?php if ($this->Acl->hasPermission('view', 'documentations') && $host['Host']['host_type'] == GENERIC_HOST): ?>
<span style="position:relative;">
<a href="/documentations/view/<?php echo $host['Host']['uuid']; ?>/host"
Expand Down
12 changes: 5 additions & 7 deletions app/View/Elements/service_browser_menu.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@
// License agreement and license key will be shipped with the order
// confirmation.
?>
<?php
echo $this->Form->create('nag_command', ['class' => 'pull-left']);
echo $this->Form->input('satellite_id', ['type' => 'hidden', 'value' => $service['Host']['satellite_id']]); ?>
<span class="btn btn-default btn-sm nag_command submitRescheduleService" style="margin-right: 5px;">
<i class="fa fa-refresh fa-lg"></i>
</span>
<?php echo $this->Form->end(); ?>
<?php if($this->request->params['action'] == 'browser' && $this->request->params['controller'] == 'services'): ?>
<span class="btn btn-default btn-sm nag_command submitRescheduleService">
<i class="fa fa-refresh fa-lg"></i>
</span>
<?php endif; ?>
<?php if ($this->Acl->hasPermission('view', 'documentations') && $service['Service']['service_type'] == GENERIC_SERVICE): ?>
<span style="position:relative;">
<a href="/documentations/view/<?php echo $service['Service']['uuid']; ?>/service"
Expand Down
2 changes: 0 additions & 2 deletions app/View/Services/browser.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -490,13 +490,11 @@
</div>
<?php else: ?>
<h5><?php
echo $this->Form->create('nag_command');
echo $this->Form->input('satellite_id', ['type' => 'hidden', 'value' => $service['Host']['satellite_id']]); ?>
<span class="nag_command submitRescheduleService">
<i class="fa fa-refresh"></i>
<?php echo __('Reset check time'); ?>
</span>
<?php echo $this->Form->end(); ?>
</h5>
<h5><span class="nag_command" data-toggle="modal" data-target="#nag_command_passive_result"><i
class="fa fa-download"></i> <?php echo __('Passive transfer of check results') ?> </span><br/>
Expand Down

0 comments on commit 61d0530

Please sign in to comment.