Author: david
Date: Thu Sep  3 14:59:26 2009
New Revision: 3165

Log:
Don't show delete button for locked terms (show template).

Modified:
   trunk/apps/qubit/modules/term/templates/showSuccess.php

Modified: trunk/apps/qubit/modules/term/templates/showSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/showSuccess.php     Thu Sep  3 
14:50:59 2009        (r3164)
+++ trunk/apps/qubit/modules/term/templates/showSuccess.php     Thu Sep  3 
14:59:26 2009        (r3165)
@@ -165,7 +165,10 @@
   <?php if (SecurityPriviliges::editCredentials($sf_user, 'term')): ?>
     <li><?php echo link_to(__('Add New'), array('module' => 'term', 'action' 
=> 'create', 'taxonomyId' => $term->getTaxonomy()->id)) ?></li>
     <li><?php echo link_to (__('Edit'), array('module' => 'term', 'action' => 
'edit', 'id' => $term->id)) ?></li>
+
+    <?php if (!$term->isProtected()): ?>
     <li><?php echo link_to (__('Delete'), array('module' => 'term', 'action' 
=> 'delete', 'id' => $term->id), array('post' => true, 'confirm' => 
$deleteConfirm)) ?></li>
+    <?php endif; ?>
   <?php endif; ?>
   <li><?php echo link_to(__('List'), array('module' => 'term', 'action' => 
'list', 'taxonomyId' => $term->taxonomyId)) ?></li>
 </ul>

--~--~---------~--~----~------------~-------~--~----~
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