Author: david
Date: Thu Sep 17 10:16:41 2009
New Revision: 3366

Log:
Customize user/edit template for creating new user.

Modified:
   trunk/apps/qubit/modules/user/templates/editSuccess.php

Modified: trunk/apps/qubit/modules/user/templates/editSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/editSuccess.php     Thu Sep 17 
10:05:32 2009        (r3365)
+++ trunk/apps/qubit/modules/user/templates/editSuccess.php     Thu Sep 17 
10:16:41 2009        (r3366)
@@ -33,7 +33,12 @@
   <?php echo render_field($form->email, $user) ?>
 
   <div class="form-item">
+    <?php if (isset($sf_request->id)): ?>
     <?php echo $form->password->label(__('change password'))->renderLabel() ?>
+    <?php else: ?>
+    <?php echo $form->password->label(__('password'))->renderLabel() ?>
+    <?php endif; ?>
+
     <?php echo $form->password->render() ?>
   </div>
 </fieldset>
@@ -125,13 +130,17 @@
 <div id="button-block-bump"></div>
 
 <ul class="actions">
-    <li><?php echo link_to(__('Cancel'), array('module' => 'user', 'action' => 
'show', 'id' => $user->getId())) ?></li>
+  <?php if (isset($sf_request->id)): ?>
+  <li><?php echo link_to(__('Cancel'), array('module' => 'user', 'action' => 
'show', 'id' => $user->getId())) ?></li>
+  <?php else: ?>
+  <li><?php echo link_to(__('Cancel'), array('module' => 'user', 'action' => 
'list')) ?></li>
+  <?php endif; ?>
 
-    <?php if ($user->getId()): ?>
-      <li><?php echo submit_tag(__('Save')) ?></li>
-    <?php else: ?>
-      <li><?php echo submit_tag(__('Create')) ?></li>
-    <?php endif; ?>
+  <?php if ($user->getId()): ?>
+    <li><?php echo submit_tag(__('Save')) ?></li>
+  <?php else: ?>
+    <li><?php echo submit_tag(__('Create')) ?></li>
+  <?php endif; ?>
 </ul>
 
 </form>

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to