Skip to content

Commit

Permalink
Add refresh button to the requirements page
Browse files Browse the repository at this point in the history
refs #7163
refs #7587
  • Loading branch information
Johannes Meyer committed Nov 10, 2014
1 parent 2bb7217 commit 5c9d7d6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
11 changes: 10 additions & 1 deletion application/views/scripts/form/setup-requirements.phtml
Expand Up @@ -17,12 +17,21 @@ $requirements = $form->getRequirements();
); ?>"><?= $requirement->message; ?></td>
</tr>
<?php endforeach ?>
<tr>
<td></td>
<td></td>
<td class="btn-update">
<div class="buttons">
<a href="<?= $this->href(); ?>" class="button-like"><?= t('Update'); ?></a>
</div>
</td>
</tr>
</tbody>
</table>
<form id="<?= $form->getName(); ?>" name="<?= $form->getName(); ?>" enctype="<?= $form->getEncType(); ?>" method="<?= $form->getMethod(); ?>" action="<?= $form->getAction(); ?>">
<?= $form->getElement($form->getTokenElementName()); ?>
<?= $form->getElement($form->getUidElementName()); ?>
<div class="buttons">
<div class="buttons" style="margin: 0 0 1.5em;">
<?= $form->getElement(Wizard::BTN_PREV); ?>
<?php
$btn = $form->getElement(Wizard::BTN_NEXT);
Expand Down
18 changes: 18 additions & 0 deletions public/css/icinga/setup.less
Expand Up @@ -176,6 +176,24 @@
background-color: #fd7770;
}
}

&.btn-update {
padding-top: 0.3em;
text-align: center;

div.buttons {
margin: 0;

a.button-like {
padding: 0.2em 0.5em;
background-color: #888;

&:hover, &:focus {
background-color: #666;
}
}
}
}
}
}

Expand Down

0 comments on commit 5c9d7d6

Please sign in to comment.