Author: jablko
Date: Fri Oct  2 17:00:39 2009
New Revision: 3656

Log:
Use <ul> to markup actions, like revision 2965

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

Modified: trunk/apps/qubit/modules/physicalobject/templates/editSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/templates/editSuccess.php   Fri Oct 
 2 16:35:51 2009        (r3655)
+++ trunk/apps/qubit/modules/physicalobject/templates/editSuccess.php   Fri Oct 
 2 17:00:39 2009        (r3656)
@@ -56,37 +56,14 @@
   </fieldset>
   <?php endif; ?>
 
-  <!-- include empty div at bottom of form to bump the fixed button-block and 
allow user to scroll past it -->
-  <div id="button-block-bump" />
+  <ul class="actions">
+    <?php if (isset($sf_request->next)): ?>
+      <li><?php echo link_to(__('Cancel'), $sf_request->next) ?></li>
+    <?php else: ?>
+      <li><?php echo link_to(__('Cancel'), array('module' => 'physicalobject', 
'action' => 'show', 'id' => $physicalObject->id)) ?></li>
+    <?php endif; ?>
+    <li><?php echo submit_tag(__('Save')) ?></li>
+    <li><?php echo link_to(__('Delete'), array('module' => 'physicalobject', 
'action' => 'delete', 'id' => $physicalObject->id, 'next' => 
$sf_request->next)) ?></li>
+  </ul>
 
-  <div id="button-block">
-    <div class="menu-action">
-        <?php if ($relatedInfoObjectCount == 0): ?>
-          <?php $deleteWarning = __('are you sure?') ?>
-        <?php elseif ($relatedInfoObjectCount == 1): ?>
-          <?php $deleteWarning = __('There is 1 %1% related to this item.  Are 
you sure you wish proceed with delete?',
-            array('%1%'=>sfConfig::get('app_ui_label_informationobject'))) ?>
-        <?php else: ?>
-          <?php $deleteWarning = __('There are %1% %2%s related to this item.  
Are you sure you wish to proceed with delete?',
-            array(
-              '%1%'=>$relatedInfoObjectCount,
-              '%2%'=>sfConfig::get('app_ui_label_informationobject')
-          )) ?>
-        <?php endif; ?>
-
-        <?php if($nextAction == null): ?>
-          &nbsp;<?php echo link_to(__('delete'), 
array('module'=>'physicalobject', 'action'=>'delete', 
'id'=>$physicalObject->getId(),
-                  array('post'=>true, 'confirm'=>$deleteWarning))) ?>
-          &nbsp;<?php echo link_to(__('cancel'), 
array('module'=>'physicalobject', 'action'=>'show', 
'id'=>$physicalObject->getId())); ?>
-        <?php else: ?>
-          &nbsp;<?php echo link_to(__('delete'),
-                  array('module' => 'physicalobject', 'action' => 'delete', 
'id' => $physicalObject->getId(), 'next' => $nextAction),
-                  array('post'=>true, 'confirm'=>$deleteWarning)
-                ) ?>
-          &nbsp;<a href="<?php echo $nextAction ?>"><?php echo __('cancel') 
?></a>
-        <?php endif; ?>
-
-        &nbsp;<?php echo submit_tag(__('save')) ?>
-    </div>
-  </div>
 </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