git://git.onelab.eu
/
www-register-wizard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
report errors only if they are present
[www-register-wizard.git]
/
application
/
views
/
stage3_node_choose.php
diff --git
a/application/views/stage3_node_choose.php
b/application/views/stage3_node_choose.php
index
5a17ef3
..
ae443f3
100644
(file)
--- a/
application/views/stage3_node_choose.php
+++ b/
application/views/stage3_node_choose.php
@@
-20,7
+20,13
@@
function updateStaticFields()
<?= form_open("register/stage4_confirmnode/$pcu_id/$site_id") ?>
<table border=0 cellpadding=3>
<tbody>
<?= form_open("register/stage4_confirmnode/$pcu_id/$site_id") ?>
<table border=0 cellpadding=3>
<tbody>
- <?php if ( !empty($node_list) && !isset($error) ): ?>
+
+ <?php if ( isset($error) ): ?>
+ <p><strong>The following errors occured:</strong>
+ <font color='red' size='-1'><ul>
+ <li><?php echo $error ?></li>
+ </ul></font>
+ <?php else: ?>
<tr><td colspan='2'><h3>Choose a Node to Associate with PCU</h3></td></tr>
<tr><th>Node Name: </th><td>
<tr><td colspan='2'><h3>Choose a Node to Associate with PCU</h3></td></tr>
<tr><th>Node Name: </th><td>
@@
-41,11
+47,6
@@
function updateStaticFields()
</td>
</tr>
</tr>
</td>
</tr>
</tr>
- <?php else: ?>
- <p><strong>The following errors occured:</strong>
- <font color='red' size='-1'><ul>
- <li><?= $error ?></li>
- </ul></font>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
</tbody>
</table>