Author: david
Date: Thu Aug 13 11:03:47 2009
New Revision: 3026

Log:
Remove 'add new' and 'list' buttons from term edit page.  Add 'add new' button 
to show term page, and move 'edit' button to the left of 'delete'.

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

Modified: trunk/apps/qubit/modules/term/templates/editSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/editSuccess.php     Thu Aug 13 
08:44:05 2009        (r3025)
+++ trunk/apps/qubit/modules/term/templates/editSuccess.php     Thu Aug 13 
11:03:47 2009        (r3026)
@@ -166,11 +166,4 @@
     <?php echo submit_tag(__('create')) ?>
   <?php endif; ?>
   </div>
-
-  <div class="menu-extra">
-    <?php echo link_to(__('add new'), array('module' => 'term', 'action' => 
'create', 'taxonomyId' => $term->getTaxonomy()->id)) ?>
-    <?php echo link_to(__('list'), array('module' => 'term', 'action' => 
'list', 'taxonomyId' => $term->getTaxonomy()->id)) ?>
-  </div>
-</div>
-
 </form>

Modified: trunk/apps/qubit/modules/term/templates/showSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/showSuccess.php     Thu Aug 13 
08:44:05 2009        (r3025)
+++ trunk/apps/qubit/modules/term/templates/showSuccess.php     Thu Aug 13 
11:03:47 2009        (r3026)
@@ -147,11 +147,9 @@
 
 <ul class="actions">
   <?php if (SecurityPriviliges::editCredentials($sf_user, 'term')): ?>
-    <li><?php echo link_to (__('Delete'), array('module' => 'term', 'action' 
=> 'delete', 'id' => $term->id),
-      array('post' => true, 'confirm' => __('Are you sure?'))) ?></li>
-  <?php endif; ?>
-  <?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>
+    <li><?php echo link_to (__('Delete'), array('module' => 'term', 'action' 
=> 'delete', 'id' => $term->id), array('post' => true, 'confirm' => __('Are you 
sure?'))) ?></li>
   <?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