Author: david
Date: Tue Nov 24 14:15:31 2009
New Revision: 3954
Log:
Display global form validation errors.
Modified:
trunk/apps/qubit/modules/function/templates/editSuccess.php
Modified: trunk/apps/qubit/modules/function/templates/editSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/function/templates/editSuccess.php Tue Nov 24
14:15:01 2009 (r3953)
+++ trunk/apps/qubit/modules/function/templates/editSuccess.php Tue Nov 24
14:15:31 2009 (r3954)
@@ -23,7 +23,17 @@
<?php echo render_title($func) ?>
</div>
- <fieldset class="collapsible collapsed" id="identityArea">
+ <?php if ($form->hasGlobalErrors()): ?>
+ <div class="error">
+ <ul>
+ <?php foreach($form->getGlobalErrors() as $error): ?>
+ <li><?php echo $error ?></li>
+ <?php endforeach; ?>
+ </ul>
+ </div>
+ <?php endif; ?>
+
+ <fieldset class="collapsible" id="identityArea">
<legend><?php echo __('identity area'); ?></legend>
<?php echo $form->type->renderRow() ?>
@@ -31,7 +41,7 @@
<?php echo $form->authorizedFormOfName->label('authorized form(s) of
name')->renderRow() ?>
<?php //echo $form->parallelNames->renderRow() ?>
-
+
<?php //echo $form->otherNames->renderRow() ?>
<?php echo $form->classification->renderRow() ?>
@@ -41,7 +51,7 @@
<legend><?php echo __('context area'); ?></legend>
<?php echo $form->dates->renderRow() ?>
-
+
<?php echo $form->description->renderRow(array('class' => 'resizable')) ?>
<?php echo $form->history->renderRow(array('class' => 'resizable')) ?>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.