Skip to content
This repository
Browse code

Added messages view that is different from problems view

  • Loading branch information...
commit 7c94d413deb566489a59b73499befaca97128fd1 1 parent 288f45f
Matthew Xi authored February 20, 2013
7  classes/lattice/initializer.php
@@ -55,6 +55,13 @@ public static function check($dependencies) {
55 55
          }
56 56
       }
57 57
       
  58
+      if(!count(self::$problems) && count(self::$messages)){
  59
+         $view = new View('initializationMessages');
  60
+         $view->problems = self::$problems;
  61
+         $view->messages = self::$messages;
  62
+         echo $view->render();
  63
+      }
  64
+
58 65
       if(count(self::$problems) || count(self::$messages)){
59 66
          $view = new View('initializationproblems');
60 67
          $view->problems = self::$problems;
2  resources
... ...
@@ -1 +1 @@
1  
-Subproject commit 6632a149962953ed013fde71cb9c2ec817069faf
  1
+Subproject commit 26fd40a7bbd195549ddfdd06dae8123b02d5af75
21  views/initializationMessages.php
... ...
@@ -0,0 +1,21 @@
  1
+<div class="modalContainer">
  2
+	<div class="header container_12">
  3
+		<h3>Initialization</h3>
  4
+	</div>
  5
+	<div class="modal container_12">
  6
+
  7
+		<ul>
  8
+		<?php foreach($messages as $message):?>
  9
+		<li><?php echo $message;?></li>
  10
+		<?php endforeach; ?>
  11
+		</ul>
  12
+
  13
+		<p class="message">
  14
+      Looks good!
  15
+			<a class="button" href="<?=url::base('http');?>cms">Continue</a>
  16
+		</p>
  17
+
  18
+	</div>
  19
+</div>
  20
+
  21
+

0 notes on commit 7c94d41

Please sign in to comment.
Something went wrong with that request. Please try again.