[icinga-checkins] icinga.org: icingaweb2/feature/setup-wizard-7163: Add refresh button to the requirements page

git at icinga.org git at icinga.org
Mon Nov 10 13:12:44 CET 2014


Module: icingaweb2
Branch: feature/setup-wizard-7163
Commit: 5c9d7d6548a8384c3c7bf5c11ca924ac1a05e7ed
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=5c9d7d6548a8384c3c7bf5c11ca924ac1a05e7ed

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Mon Nov 10 12:54:26 2014 +0100

Add refresh button to the requirements page

refs #7163
refs #7587

---

 .../views/scripts/form/setup-requirements.phtml      |   11 ++++++++++-
 public/css/icinga/setup.less                         |   18 ++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/application/views/scripts/form/setup-requirements.phtml b/application/views/scripts/form/setup-requirements.phtml
index 0116071..6cf9b77 100644
--- a/application/views/scripts/form/setup-requirements.phtml
+++ b/application/views/scripts/form/setup-requirements.phtml
@@ -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);
diff --git a/public/css/icinga/setup.less b/public/css/icinga/setup.less
index 92ae98c..78b01cc 100644
--- a/public/css/icinga/setup.less
+++ b/public/css/icinga/setup.less
@@ -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;
+          }
+        }
+      }
+    }
   }
 }
 



More information about the icinga-checkins mailing list