Permalink
Browse files

Added messages view that is different from problems view

  • Loading branch information...
1 parent 288f45f commit 7c94d413deb566489a59b73499befaca97128fd1 Deepwinter committed Feb 21, 2013
Showing with 29 additions and 1 deletion.
  1. +7 −0 classes/lattice/initializer.php
  2. +1 −1 resources
  3. +21 −0 views/initializationMessages.php
@@ -55,6 +55,13 @@ public static function check($dependencies) {
}
}
+ if(!count(self::$problems) && count(self::$messages)){
+ $view = new View('initializationMessages');
+ $view->problems = self::$problems;
+ $view->messages = self::$messages;
+ echo $view->render();
+ }
+
if(count(self::$problems) || count(self::$messages)){
$view = new View('initializationproblems');
$view->problems = self::$problems;
@@ -0,0 +1,21 @@
+<div class="modalContainer">
+ <div class="header container_12">
+ <h3>Initialization</h3>
+ </div>
+ <div class="modal container_12">
+
+ <ul>
+ <?php foreach($messages as $message):?>
+ <li><?php echo $message;?></li>
+ <?php endforeach; ?>
+ </ul>
+
+ <p class="message">
+ Looks good!
+ <a class="button" href="<?=url::base('http');?>cms">Continue</a>
+ </p>
+
+ </div>
+</div>
+
+

0 comments on commit 7c94d41

Please sign in to comment.